I am trying to create indicator which displays up arrow when MACD histogram changes direction to go up, and down arrow when change to down. I run with no errors but it giving incorrect arrows on chart and missing out many changes...
Any help much appreciated! :)
Sorry I dont know why it didnt insert properly the first time...
Wow thank you so much Rakic, very much appreciated!!! :)
Out of interest do you know what was wrong with the approach I used to code this and why it didnt work, as opposed to what you have done?
Thankyou again Rakic very helpful!
I am trying to understand your code so I can work with it but I am struggling with a few parts, specifically the use of 0:0:, EmptyValue, and the if statement (below only).. any guidance on this I would be very greatful for!
Also I am trying to get the arrow to display on the current candle '0', ( so after close of previous rather than on it) - I have tried changing CrossUp[i] to CrossUp[i-1] but had no luck... any thoughts on how I could do this...
This line is equivalent to :
Do you know how I can get arrow to display on current candle - I have tried changing "for(int i=limit; i>-0; i--)" to "for(int i=limit; i>=0; i--)" but this did not work... any thoughts please...? :)