Looking for ClosePrice

Created at 27 Jun 2020, 18:58
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!
EL

eliezer_barros

Joined 21.12.2018

Looking for ClosePrice
27 Jun 2020, 18:58


Hi

I looking for the Close Price for specific hours but the result appear one hour after.

   Print("Close", " ", Bars.ClosePrices.Last(1));

Please, someone can help me and show why this expression below is not correct?

Tks


@eliezer_barros
Replies

genappsforex
28 Jun 2020, 13:44

Print("Close", " ", Bars.ClosePrices.Last(1));
Will give you the price of the last closed bar.
So if it's 9:30 and your timeframe is 1 hour then it will give the closing price of the bar that ended just before 09:00


@genappsforex