New to CALDO Rookie Q : Get latest candle close info

Created at 04 Dec 2022, 06:42
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!
CT

ctid1909360

Joined 04.12.2022

New to CALDO Rookie Q : Get latest candle close info
04 Dec 2022, 06:42


Hey,

 

Just started learning CALGO and found this : 

 

Trying to print the latest candle I use the code below

  1.             Print("Previous Candle Close: ", MarketSeries.Close.Last(1));

 

When I build this it gives me an error that it's outdated and to use bars but I can't work out / see any documentation on how to do so?


@ctid1909360
Replies

ctid1909360
04 Dec 2022, 06:47

RE:

ctid1909360 said:  worked it out 

 

Bars.ClosePrices.Last(0));

 

Hey,

 

Just started learning CALGO and found this : 

 

Trying to print the latest candle I use the code below

  1.             Print("Previous Candle Close: ", MarketSeries.Close.Last(1));

 

When I build this it gives me an error that it's outdated and to use bars but I can't work out / see any documentation on how to do so?

 


@ctid1909360