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
i would appreciate help from anyone but Mr. moderator! who is too busy labeling and judging amateurs.
There is no labelling or judgement.
Check your indicators calls and the parameters value.
Warnings may seem unimportant, but they can be the source of runtime errors.
So, always pay attention and fix your compile warnings and errors so you get a clean compilation.
— Documentation on MQL5: Timeseries and Indicators Access / Organizing Data Access
So, it has nothing to do with it being an external or internal indicator, but about the parameters that you are using.
So obviously, if its value is invalid (example being set to 0), then it will throw a parameter error for it.
The same goes for the other indicator calls if you use invalid values.
So, check the validity of those parameter values before calling the indicator functions.
Thank u so much. I defined initial value for rsi_p as you said, so everything seemed fine after debugging and both MA & RSI are loaded correctly. however, i still have problem backtesting.
strategy tester still shows 4002 error for MA (attached file), I checked the initial values for MA and nothing seems wrong :(
Warnings may seem unimportant, but they can be the source of runtime errors.
So, always pay attention and fix your compile warnings and errors so you get a clean compilation.
— Documentation on MQL5: Timeseries and Indicators Access / Organizing Data Access
So, it has nothing to do with it being an external or internal indicator, but about the parameters that you are using.
So obviously, if its value is invalid (example being set to 0), then it will throw a parameter error for it.
The same goes for the other indicator calls if you use invalid values.
So, check the validity of those parameter values before calling the indicator functions.
We cannot take your "word" that the initial values are correct. You should "show" that they are correct.
Show your new code where you have fixed all the problems, including the verification of the inputs as being valid.
Also, show the actual parameter values being used and reported in the Strategy Tester Journal log.