Highest & Lowest price.

Created at 18 Oct 2015, 07:37
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!
SA

SaifBD

Joined 05.01.2014

Highest & Lowest price.
18 Oct 2015, 07:37


How can I collect Highest & Lowest price of some Bars in cAlgo?

MQL4 example:

High[iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,BarCount,1)];
Low[iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,BarCount,1)];

 


@SaifBD
Replies

KABUM
18 Oct 2015, 20:22

 MarketData.GetSeries(TimeFrame.Daily).High.Last(index);

 MarketData.GetSeries(TimeFrame.Daily).Low.Last(index);

Where index = 0 is current bar. TimeFrame to change as you wish

 


@KABUM