algozinitech

Pivot Extension Strategy AZT

Calculating Pivot Points

By definition, a pivot point is a point of rotation. The prices used to calculate the pivot point are the previous period’s high, low and closing price for a security. Prices can be taken from daily stock charts, Another way of calculating Pivot Point is using the hourly charts of stock market.

However most traders prefer to take the pivots, as well as the support and resistance levels, off of the daily charts and then apply those to the intraday charts (i.e., hourly, every 30 minutes or every 15 minutes). When calculated using price information from a shorter time-frame, tends to reduce both accuracy and significance.

The calculation for a pivot point is as follows:

Central Pivot Point (P) = (High + Low + Close) / 3

The formula used for primary resistance and support is as follow:

First Resistance (R1) = (2*P) – Low

First Support (S1) = (2*P) – High

The formula used for secondary resistance and support is as follows:

Second Resistance (R2) = P + (R1-S1)

Second Support (S2) = P – (R1- S1)

Strategy Rules

LE Rules: When a input Price value is found that meets the requirement of a pivot point at low, a long entry order is placed for the next bar.

LX Rules: A low pivot bar is defined by this strategy. As a bar that is preceded by Left Strength (Input) number of higher Price values and followed by Right Strength (Input) number of higher Price values. Long exit takes place

SE Rules: When a Price (Input) value is found that meets the requirement of a pivot point at high, a short entry order is placed for the next bar.

SX Rules: A high pivot bar is defined by this strategy as a bar that is preceded by Left Strength (Input) number of lower Price values and followed by Right Strength (Input) number of lower Price values, short exit takes place.

Setting Up Alert

Before setting up alert make sure that You have selected desired script, timeframe, strategy settings, apibridge is configured and running. Click in settings add alert and paste {{strategy.order.comment}} in message box.

Important: do not change any settings during live trading.
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?