OPEN-SOURCE SCRIPT

Trend 30 Tick Movement

68
This TradingView script, titled "Trend 30 Tick Movement", is designed to help traders identify significant price movements following crossover and crossunder events of specific Exponential Moving Averages (EMAs). The script is implemented using Pine Script version 5.

Features:
Input Parameters:

The script takes the close price as the input source for calculations.
Exponential Moving Averages (EMAs):

EMA 12: Calculated using a period of 12.
EMA 26: Calculated using a period of 26.
EMA 50: Calculated using a period of 50.
Signal Detection:

Crossover Signal: Detected when EMA 12 crosses above EMA 50.
Crossunder Signal: Detected when EMA 12 crosses below EMA 50.
Entry Price:

The script stores the price at the time of a crossover or crossunder event.
Price Movement Calculation:

The script calculates the price movement from the entry price following a crossover or crossunder event.
Significant Movement Detection:

Significant Move Up: Detected when the price movement is 30 ticks or more above the entry price.
Significant Move Down: Detected when the price movement is 30 ticks or more below the entry price.
Flags for Significant Movements:

The script uses boolean flags to track if a significant move up or down has been detected.
Plotting:

EMAs: Plots EMA 12, EMA 26, and EMA 50 on the chart.
Crossover and Crossunder Events: Plots green and red cross shapes above and below bars to indicate crossover and crossunder events, respectively.
Significant Movements: Plots green and red circles on the chart to indicate significant moves up and down after crossover/crossunder events.
Reset Mechanism:

The entry price is reset to the new price at the occurrence of each crossover or crossunder event.
Usage:
This script can be used by traders to visually identify and analyze significant price movements following key EMA crossover and crossunder events. By highlighting these significant movements, traders can make more informed decisions on potential entry and exit points in their trading strategies.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.