OPEN-SOURCE SCRIPT

[MAD] PID

Zaktualizowano
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
Informacje o Wersji
Direct implementation of standard MA´s for a "standalone mode"
pid_controllerTrend Analysis

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Wyłączenie odpowiedzialności