What are you getting? Why are you getting? Why are you ignoring the result?
PlotIndexGetInteger(2,PLOT_ARROW,160); PlotIndexGetInteger(3,PLOT_ARROW,160); PlotIndexGetInteger(7,PLOT_ARROW,160); PlotIndexGetInteger(8,PLOT_ARROW,160);
Erik Bakker: Can someone please help me understand why I don't get any Drawing on my chart with this mql5 custom indicator. The arrays show de necessary values... Please help.. I am missing something...
Then please show screenshots of what you are getting and explain in detail what you are expecting.
Also, why are you using this ...
if(iHigh(NULL,PERIOD_CURRENT,3)<iClose(_Symbol,PERIOD_CURRENT,2) && iHigh(NULL,PERIOD_CURRENT,3)<iLow(_Symbol,PERIOD_CURRENT,1)) { Start_FVG_Bull[i] = iTime(NULL,PERIOD_CURRENT,3);
... when the data has already been passed to you by the OnCalculte() parameters ...
if( high[3] < close[2] && high[3] < low[1] ) { Start_FVG_Bull[i] = time[3];
Also, use Prints() very sparingly and in a controlled way in Indicators, or preferably use the Debugger in MetaEditor.
The way you are doing it is going to make your indicator extremely slow and fill up the logs quickly and create tremendously large log files.
Have you started with MQL5/Indicators/Examples/Fractals? If not start with this code and change it step by step to your requiremebts.
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
Can someone please help me understand why I don't get any Drawing on my chart with this mql5 custom indicator. The arrays show de necessary values... Please help.. I am missing something...