OPEN-SOURCE SCRIPT

PH - Magic Indicator

Von paress82
Explanation:
EMA Calculations:

EMAs for the periods 5, 10, 20, 30, 50, and 100 are calculated using ta.ema(close, period).
Signal Conditions:

Signal 1: All EMAs must be in order (EMA 5 > EMA 10 > EMA 20 > EMA 30 > EMA 50 > EMA 100).
Signal 2: Similar to Signal 1 but without the condition for EMA 50 > EMA 100.
Plotting the Signals:

Blue triangle is plotted under the first candle that meets Signal 1 conditions (plotshape with color=color.blue).
Orange triangle is plotted under the first candle that meets Signal 2 conditions but not Signal 1 (plotshape with color=color.orange).
Plotting the EMAs:

Each EMA is plotted with a distinct color for visual clarity.
Key Features:
The signals only appear on the first candle that meets the respective condition using and not signalX[1] to avoid repetitive signals.
EMAs are plotted on the chart to give you a clear visualization of their movement.
Moving Averages

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss