OPEN-SOURCE SCRIPT

Options Flavour by Raushan Shrivastava

Zaktualizowano
This script is for a trading strategy which combines Pivot Points and a Simple Moving Average.

It calculates support and resistance levels based on the monthly pivot point and plots them on the chart.

The script also creates conditions for entering bullish and bearish trades based on the relationship between the price and moving average.

Breakdown of the main components of the script :-

Pivot Point Calculation:

The script calculates the monthly pivot point and its associated support (S1, S2, S3) and resistance (R1, R2, R3) levels.

These levels are used to determine potential areas of interest on the chart.

Moving Average:

A simple moving average (SMA) is plotted with a length defined by the user (length_ma), used to spot trends.

Conditions for Bullish and Bearish Signals:

Bullish condition: The label appears when the market crosses the moving average upward and is above the pivot, or when the market crosses the pivot upward and is above the moving average.

Bearish condition: The label appears when the market crosses the moving average downward and is below the pivot, or when the market crosses the pivot downward and is below the moving average.

Plotting Shapes:

The pivot point, support, resistance, and previous month's high/low values are plotted on the chart as circles.

The moving average is plotted as a black line.

Labels:

Labels are placed to indicate when a bullish or bearish condition occurs. These labels appear when the conditions are met, helping visualize trading signals.

This strategy can be useful for traders who wish to combine multiple technical indicators to make more informed decisions. You can adjust the parameter for moving average length to fine-tune the strategy for different time frames and market conditions.


Informacje o Wersji
Monthly Pivot Points :-
It calculates the monthly high, low, and close, and then computes the pivot point and three levels of support and resistance (R1, R2, R3, S1, S2, S3).

Moving Average :-
A simple moving average (SMA) with a configurable length (length_ma), which by default is set to 140 periods.

Bullish/Bearish Labels :-
Bullish condition: The close price crosses above both the moving average and the monthly pivot point. If a bullish signal is generated, the label "- PE" is placed at the second closest support level.
Bearish condition: The close price crosses below both the moving average and the monthly pivot point. If a bearish signal is generated, the label "- CE" is placed at the second closest resistance level.

Plotting :-
Monthly pivot, support, and resistance levels are plotted as circles on the chart.
The previous month's high and low are also plotted.
Bullish and bearish signals are shown with labels.

Labels on Support/Resistance Lines :-
A label "- PE" will appear on the S2 line (support level) with a green color when the bullish condition is met.
A label "- CE" will appear on the R2 line (resistance level) with a red color when the bearish condition is met.

Customisation :-
Moving Average Length: You can modify the length_ma input to adjust the period of the moving average.

Disclaimer :- Not a Buy or Sell recommendation. Only for educational purpose.
Informacje o Wersji
New update :- Moving average line changes colour based on the bullish and bearish signals
levelspivotPivot points and levelsSupport and ResistancetrendTrend Analysis

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?


Również na:

Wyłączenie odpowiedzialności