I can't get Previous Bar's Low Price

Created at 26 May 2016, 08:47
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!
SH

shammijoly

Joined 26.05.2016

I can't get Previous Bar's Low Price
26 May 2016, 08:47


Dear,

I am new in cAlgo language. I am try to develop a cBot. But i am facing one problem. I want to get bar Low/High value and i am using a Zig_ indicator and i want to get value by Bar, but i can't, i write code but not working. 

Print(MarketSeries.Low[1] + "   " + _zigZag.Result[1]);

 

Above code i want previous bar low value and ZigZag value. but i do get wrong data. 

 

 

Above image you will see previous low data not match with my chart previous bar low value, also Zig_ value also 0. Please someone help me

 

Thanks 

 


@shammijoly
Replies

Spotware
26 May 2016, 10:12

Dear Trader,

Please have a look at the Last() method.


@Spotware