I hope someone can help with this basic coding. I'm not sure how to work with numbers in Ninjascript.
I want the price alert indicator to be plotted on the chart at 3 pips above a price level once price closes 15 pips greater than that price level. This is for forex.
The levels are 00 25 50 and 75 or x.xx00 x.xx25 x.xx50 x.xx75
The USDJPY would be xx.00 xx.25 xx.50 xx.75
Example EURUSD, if price penetrates 1.3675 by 15 pips (1.3690) the price alert indicator is plotted at 1.3678
Also for the reverse of that, so if price penetrates 15 pips lower than a level the price alert indicator is plotted 3 pips below that level.
Also if price doesn't pull back and touch the price alert indicator but instead goes beyond the next level then it automatically moves it up to the next level. So basically it follows price as it continues higher or lower and not having a price alert indicator plotted at every level, just the one. I've attached an image for clarity.
Thanks
Comment