Je voulais m’amuser à modifier un KST, et là encore une erreur mystique que je ne comprends pas.
Je colle le code dessous.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
X1 = 10
P1 = 10
ROC1 = ROC [ X1] (Close )
// AVG1 - Period 1
a1avg1 = EXP (- 1.414 * 3.14159 / P1)
b1avg1 = 2 * a1avg1 * COS (1.414 * 180 / P1)
coef2avg1 = b1avg1
coef3avg1 = - a1avg1 * a1avg1
coef1avg1 = 1 - coef2avg1 - coef3avg1
AVG1 = coef1avg1 * ROC1 + coef2avg1 * AVG1[ 1 ] + coef3avg1 * AVG1[ 2 ]
RETURN coef1avg1 AS "coef1avg1" , ROC1 as "ROC1" , AVG1 AS "AVG1"
En gros AVG1 n’est jamais affiché sur le graphique. Indicateur vide. Alors que je sais que coef1avg1 est bon et ROC1 est bon.
Quelqu’un à une idée du problème ??