I have attached the FORCEINDEX indicator, and would like someone to add code that will show me a change in colour when the line is ABOVE ZERO and a different colour when it is BELOW Zero for thinkorswim platform
Is this the latest version of this indicator? I'm starting to play with it, but I find that it will change colors in real time but then revert the color if the next bar over crosses back the other way. This happens almost all the time if the cross is not very large, say less than +/- 0.2. I've seen it done as high as +/- 0.5.
For example, assuming calculate on bar close = TRUE, the force index crosses from long to short -0.2 on bar 1. The color now is red. The next bar closes and the force index crosses back to long 0.5. The color now is blue. You would expect the index to have gone red and then blue in the history of the graph, but I keep seeing it as just blue! As if it never went red...
This is a real issue for me as it's screwing me up on backtesting and throwing "fake" signals live, although I'm trying to compensate for it in some way. Any advice is deeply appreciated!!!
PS. here's a screenshot of what I mean, notice on the RIGHT SIDE how the index went well below 0, but the next bar over crossed up again and the red color is gone.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).