A tick seems to occur every second or several times a second in MetaTrader 4. And every tick OnCalculate() is called. However, OnCalculate's parameters such as high[i] are such that each index in high represents one minute of data minimally (by setting time frame to 1M).
So what is the deal? How can you get the highest res tick information? What am I not understanding?
int counted = IndicatorCounted();
int lookback = ... // iMA(period) has look back of period.
// buffer[i+2] has look back of 2
// use maximum of all.
for(int iBar = Bars - MathMax(lookback, counted); iBar >= 0; --iBar) ...
To add comments, please log in or register