OPEN-SOURCE SCRIPT
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/PTFeeder/wiki/appsettings.json---Offset-Groups
LTC: LYHj4WDN7BPu5294cSpqK3SgWSWdDX56Qt
BTC: 1NPVzeDSsenaCS9QdPro877hkMk93nRLcD
- 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/PTFeeder/wiki/appsettings.json---Offset-Groups
LTC: LYHj4WDN7BPu5294cSpqK3SgWSWdDX56Qt
BTC: 1NPVzeDSsenaCS9QdPro877hkMk93nRLcD
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.