Hello,
I created a basic indicator that shows % change of SMA since last bar and inverses the currency pairs to all be going in the same direction (see image - for instance the “GBP tracking panel” tracks all currencies against the GBP…if the lines are above zero, it means GBP is generally appreciating against all currencies and vice-versa. If they are mixed its price action as normal).
The issue i am having is some buggy-ness in the code. Sometimes it works fine, however other times it doesn’t. I am self-taught in coding. Any hints?
Script file link is here:
https://forum.ninjatrader.com/forum/ninjatrader-8/indicator-development/1343176-fx-momentum-tracking-indicator#post1343179