For example, in any particular timeframe, when the 20 turns a negative arctan, it signifies that on a shorter timeframe (than the current timeframe) is turning downwards in price. When 50, 100 and 200 turn negative, it confirms the trend reversal. Similarly the 20 will be the first one to turn "Up" or positive to indicate a possible trend reversal on the upside.
The angle of the means will oscillate between +pi/2 and -pi/2.
0 means - is flat
+pi/2 means - almost vertical price rise
-pi/2 means - almost vertical price fall
Between -pi/2 and 0 means is sloped downwards. Moving from -pi/2 to 0 means slope is turning up. Moving from 0 to -pi/2 means slope is falling down even lower and faster.
Between 0 and +pi/2 means is slopped upwards. Moving from +pi/2 to 0 means slope is falling down. Moving from 0 to +pi/2 means slope is turning up even higher and faster.
- Removed restrictions to change EMA lengths
- Added Leading Trend EMA - shortest EMA to singal in advance about a possible trend change
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.