OPEN-SOURCE SCRIPT
Aggiornato [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
Note di rilascio
Direct implementation of standard MA´s for a "standalone mode"Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.