RodrigoMariani: but its not showing in the chart.
if((Close[1]<iMA(NULL,0,5,0,MODE_EMA,PRICE_OPEN,1))&&(iMA(NULL,0,5,0,MODE_EMA,PRICE_OPEN,1)<iMA(NULL,0,14,0,MODE_LWMA,PRICE_OPEN,1))&&(iMA(NULL,0,14,0,MODE_LWMA,PRICE_OPEN,1)<iMA(NULL,0,20,0,MODE_SMA,PRICE_OPEN,1))&&(Close[1]<Open[2] )&&(Open[1]>Close[1]) &&(Close[2]>Open[2])) { CrossUp[i]=Low[i]-Range*0.5;
You are processing bar i. So why is your test only using bars one and two?
whroeder1:
You are processing bar i. So why is your test only using bars one and two?
Thanks, now Im using i+1, i+2... and works!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi, Im trying to make an arrow indicator , but its not showing in the chart. Can anyone help ?