Stamp Open&Close bar price

Created at 10 Dec 2022, 12:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CE

Cesare_Spani

Joined 12.08.2022

Stamp Open&Close bar price
10 Dec 2022, 12:33


Hello everybody,
I need help printing the opening and closing values ​​of a bar previous to the current one, therefore

Bars.Count[-1]

How can I access its opening and closing prices?


@Cesare_Spani
Replies

PanagiotisChar
12 Dec 2022, 10:47

Hi there,

Bars.OpenPrices.Last(1)
Bars.ClosePrices.Last(1)

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar