QuantTherapy

PT Feeder - HighLowPricePercentage

Yet another script to help people set the Addon PT Feeder for a trading bot Profit Trailer. Same rule applies if you do not own this the following explanation will not help you.

- Add the script to your favourites
- Edit Minutes for short term and long term for both indicators
- Set candle size you are using default is 5 Minutes

HighLowPricePercentage (Source PT Feeder Wiki)
"This is a property to try and check the variance of the price from the norm and is over the MinutesToMeasureTrend time window. The math is:

firstVariance = (high.ActualPrice - low.ActualPrice) / 2
medianVariance = high.ActualPrice - firstVariance
highLowPercentage = (latestActualPrice - medianVariance) / latestActualPrice * 100".

LongerTermHighLowPricePercentage (Source PT Feeder Wiki)
"This is a property to try and check the variance of the price from the norm and is over the LongerTermMinutesToMeasureTrend time window. The math is the same as the HighLowPricePercentage".

Sources:
PT Feeder Wiki - github.com/mehtadone...json---Offset-Groups

LTC: LYHj4WDN7BPu5294cSpqK3SgWSWdDX56Qt
BTC: 1NPVzeDSsenaCS9QdPro877hkMk93nRLcD

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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?