during consolidation phases there are many crossovers between moving averages, and even more problematic for me, the space is very compressed between moving averages (in blue).
When we're out of consolidation, the moving averages start to "breath" a little bit (green) and this is better for my strategy.
Is there a way to detect / analyze the compressed (blue) areas in ninjascript? I have been trying to compare percentages of prices between the MA, but this is not really great and highly subjective with the price of the instrument.
Let me know if you have any idea! Thanks and have a great day.

Comment