OPEN-SOURCE SCRIPT

[MAD] PID

Actualizado
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
Notas de prensa
Direct implementation of standard MA´s for a "standalone mode"
pid_controllerTrend Analysis

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad