int OnInit(){ ⋮ Print("FAILED TO INIT ATR INDICATOR"); return (INVALID_HANDLE);
Invalid return code.
Perhaps you should read the manual. OnInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
return(INIT_SUCCEEDED);Correct return code.
Invalid return code.
Perhaps you should read the manual. OnInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Thank you for pointing out this error. I have already fixed it, but my issue still remains. I hoped that someone would help me find my mistake causing this behavior.
Thank you for pointing out this error. I have already fixed it, but my issue still remains. I hoped that someone would help me find my mistake causing this behavior.
ArraySetAsSeries(indicator1, true); ArraySetAsSeries(indicator2, true);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to backtest one indicator named StableFX. But when I try to run the test "0" buffer of the StableFX indicator is -134, for example, but 0 buffer pulled with iCustom() is -65 on the same date. So the value showed by indicator and value pulled by iCustom is always different. I checked everything and , parameters are matched, buffer indexes to read from are correct, I am trying to detect crossover of the 0 and 1st buffers, but as I mentioned above values are not what indicator is showing in the window. I think I am missing something but can't seem to detect it. I have provided all the code that might be required. I Also attached screenshot with selected values to show what I mean. Please can someone point what I am doing wrong?
here how I am getting signal :