OPEN-SOURCE SCRIPT
Updated [MAD] PID

This is a basic Proportional Integral Differential controller,
BUT with a modification to reduce the i portion via a recentering speed variable.
Here is its operating principle:
Place a standard MA (sma/ema,...).
Add this indicator and connect the output of the MA to the input.
The result is the "control/correction" parameter which is based on it.
Parameter:
kP = immediate effect of a change in value
kI = long-term impact of a change in value
kIc = reduction of the value at each tick
kD = value of the differential (damping)
on close = subtraction of the close from the output value
InputModule = the data source input indicator
exponent = the power factor of the output
smoother = final smoothing
You will see some updates here when I have some ideas what to do with this indicator :-)
Have fun
BUT with a modification to reduce the i portion via a recentering speed variable.
Here is its operating principle:
Place a standard MA (sma/ema,...).
Add this indicator and connect the output of the MA to the input.
The result is the "control/correction" parameter which is based on it.
Parameter:
kP = immediate effect of a change in value
kI = long-term impact of a change in value
kIc = reduction of the value at each tick
kD = value of the differential (damping)
on close = subtraction of the close from the output value
InputModule = the data source input indicator
exponent = the power factor of the output
smoother = final smoothing
You will see some updates here when I have some ideas what to do with this indicator :-)
Have fun
Release Notes
Direct implementation of standard MA´s for a "standalone mode"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.