algozinitech

MACD Strategy AZT

MACD Pine script Strategy for TradingView


Strategy Premise
Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price MACD is calculated by subtracting the long-term EMA (26 periods) from the short-term EMA (12 periods) The MACD has a positive value whenever the 12-period EMA is above the 26-period EMA and a negative value when the 12-period EMA is below the 26-period EMA.

Strategy Logic
Long Entry: When 12 Period EMA is above the 26- Period EMA Send LE

Long Exit: Either when SL or Target is hit. If SL/TGT is not hit and 12-period EMA is below the 26-period EMA. Send LX, SE

Short Entry: When 12-period EMA is below the 26-period EMA. Send SE

Short Exit: Either when SL or Target is hit. If SL/TGT is not hit and 12 Period EMA is above the 26- Period EMA Send SX, LE

MACD Strategy Parameters for TradingView Charts

FastLength : 12-period EMA

SlowLength : 26-period EMA

Intraday Trade Session : Entry Trade Will be Taken only on this session.

EXIT Session : Trades will be squared off in this timeframe

Quantity: This is used to specify the trade quantity

Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit

Custom Target in Points: Movement in chart price against the momentum which will trigger exit

Geschütztes Skript
Dieses Skript wird als Closed-Source veröffentlicht und Sie können es frei verwenden. Sie können es favorisieren, um es auf dem Chart zu verwenden. Sie können den Quellcode nicht einsehen oder verändern.
Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?