How to get indicator [index -1 ] value?

Created at 20 Mar 2015, 16:36
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!
metalsing's avatar

metalsing

Joined 06.03.2015

How to get indicator [index -1 ] value?
20 Mar 2015, 16:36


I  just use indicator in cbots.  can only get lastvalue now,like:

var Dragon = QK.DragonLine.LastValue;

but no idea to get dragon[index -1] in cbots,how can i solve that?

 

 


@metalsing
Replies

AlexanderRC
26 Mar 2015, 12:20

QK.DragonLine.Last(zero_based_count_from_the_end)


@AlexanderRC