Bonjour,
J’utilise ce code de screener en MTF (c’est l’intérêt du Screener). J’aimerais le transformer en indicateur de type histogramme. Comme il y a un compte, il faudrait un histogramme avec différents niveaux positifs et négatifs… Comment faire ? Voici le code screener :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TIMEFRAME(Daily)
Flame=WilderAverage[6](Close)
Spine=WilderAverage[240](Close)
IF(Flame>Flame[1])THEN
Count=Count+1
ELSIF(Flame<Flame[1])THEN
Count=Count-1
ENDIF
IF(Close>Flame)THEN
Count=Count+1
ELSIF(Close<Flame)THEN
Count=Count-1
ENDIF
IF(Spine>Spine[1])THEN
Count=Count+1
ELSIF(Spine<Spine[1])THEN
Count=Count-1
ENDIF
IF(Close>Spine)THEN
Count=Count+1
ELSIF(Close<Spine)THEN
Count=Count-1
ENDIF
//-------------------- Direction --------------------
IFClose>OpenTHEN
Count=Count+1
ELSIFClose<OpenTHEN
Count=Count-1
ENDIF
//-------------------- Control --------------------
De façon générale, pour transformer un screener en indicateur, il faut mettre “RETURN” à la place de “SCREENER”, comme suit :
1
RETURNCountas"Count"
Après, il faut paramétrer l’affichage de l’indicateur “Count” en histogramme. Il prendra donc la valeur +1 ou -1, tu peux même changer la couleur en fonction.
Je n’ai pas testé ton code, mais à priori ça doit fonctionner.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok