OPEN-SOURCE SCRIPT
Dynamic_Retracement_Target

Hello.
This script uses 3 moving averages. I used the ALMA moving averages with 34 , 144 and 610 periods.
The script chooses the highest moving average as well the lowest moving averge.
As the distance between the highest and lowest is known it calculate the targets superior end inferior as well the levels of retracement considering the highest and lowest moving average.
The periods, levels and targets can be set as you wish. I ask you to keep the diference among periods from 4x to 4.24x.
Lines inclined up and price above L.sup, look for a oportunity to buy untill the superior target, wich is your exit point
Lines inclined down and price under L.inf, look for a oportunity to sell untill the inferior target, wich is your exit point.
Enjoy ,coment
This script uses 3 moving averages. I used the ALMA moving averages with 34 , 144 and 610 periods.
The script chooses the highest moving average as well the lowest moving averge.
As the distance between the highest and lowest is known it calculate the targets superior end inferior as well the levels of retracement considering the highest and lowest moving average.
The periods, levels and targets can be set as you wish. I ask you to keep the diference among periods from 4x to 4.24x.
Lines inclined up and price above L.sup, look for a oportunity to buy untill the superior target, wich is your exit point
Lines inclined down and price under L.inf, look for a oportunity to sell untill the inferior target, wich is your exit point.
Enjoy ,coment
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.