Forum

Custom Indicator: OnCalculate Function Query

I am testing an MQL5 custom indicator on historical data using Strategy Tester. See below: int OnCalculate ( const int rates_total, // size of input time series const int prev_calculated, // bars handled in previous call const datetime & time[], // Time

OnTick() EA Function Skips Ticks

Newbie query: Can anyone help me with my understanding of the EA OnTick Function? I have developed a simple custom indicator and I access this indicator from within a custom EA I have also developed. I am using the OnTick function to process each tick and assess aganist the indicator values to