Custom indicator not displaying arrows...
You reset index 'i', but then change the value of 'i-TF/Period()+1'
CrossUp[i] = EMPTY_VALUE; CrossDown[i] = EMPTY_VALUE; if (i<Bars-TF/Period()-1 && direction[i]!=direction[i+TF/Period()]) { if (direction[i]== 1) CrossUp[i-TF/Period()+1] = Low[i-TF/Period()+1] - iATR(NULL,0,10,i-TF/Period()+1); if (direction[i]==-1) CrossDown[i-TF/Period()+1] = High[i-TF/Period()+1] + iATR(NULL,0,10,i-TF/Period()+1); }
THanks for reply knave - little confused what you mean - please advise how to go ahead... thanks! :)

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
Hello, I originally made this indicator just to display an arrow on the following bar after MACD histogram changes direction, I would now like these arrows to filtered using two MAs ie. fast is above slow.
I have edited my code and it is running with no errors but it will not display anything anymore - can anyone help please I don't know whats wrong?
Many Thanks! :)