I need to backtest The COG Indicator but in mt4 it's only possible to test EA not indicators, can somebody help me to convert this to a EA it's
for backtest only.
Tot left of the strategy tester settings window, you can choose between Expert Advisor and Indicator. (click on the arrow.)
Otavio Barreto: can somebody help me to convert this to a EA
Don't try to do that. There are no buffers, no IndicatorCounted()
or
prev_calculated. No way to know if older bars have changed or been added (history update.) Just get the value(s) of the indicator(s) into the EA (using iCustom) and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 programming forum
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register