MT5 In-built functions (ie. iCCI, iStdDev, iMA) do not work. Please help!
To further isolate the issue, the back testing was run over this very simple EA 'test 00.mq5' and prints values for the above per tick. These values do not match the visual on-chart indicators at all.
A few details (could be irrelevant) about my account and configurations for backtesting:
- Account Type: Demo on AdmiralMarkets-Demo
- Timeframe: 15 minute
- Date: Custom period - 2023.04.01 - 2024.01.30
- Forward: No
- Delays: 20 ms
- Modelling: Every tick based on real ticks
- Deposit: 10000, Leverage: 1:50
- Optimization: Disabled, Visual Mode: Yes
They also return the same values over time in Journal, snippet of Journal is attached below. Here is a sample message:
This is the script.
I was hoping some of you experts could answer my questions:
- What are the in-built functions dependent on? (ie. "Quality" of broker data?)
- Why do they keep outputting the same values over time?
- How can I fix this issue?
Upon reading the documentation, I believe I've correctly applied the use of these methods in OnTick(). Do you have any other feedback that could be helpful?
Cheers.
double SMA = iMA
This is giving warnings (on MQL5):
To further isolate the issue, the back testing was run over this very simple EA 'test 00.mq5' and prints values for the above per tick. These values do not match the visual on-chart indicators at all.
A few details (could be irrelevant) about my account and configurations for backtesting:
They also return the same values over time in Journal, snippet of Journal is attached below. Here is a sample message:
"2024.02.02 15:00:27.503 2023.04.05 00:12:41 cciValue: 10.0 stdDev: 11.0 SMA: 12.0")This is the script.
I was hoping some of you experts could answer my questions: