Salve
vorrei sapere se è possibile portare in primo piano la linea della REGRESSION FORCE dell’indicatore BUY & SELL PRESSURE XeLMod
di cui posto il codice
grazie …saluti
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
// Fixed Variables
Cl = close
Hi = high
Lo = low
Vo = volume
IF Vo = 0 THEN
Vo = 1
ENDIF
Hm = max (Hi,Cl[ 1 ] )
Lm = min (Lo,Cl[ 1 ] )
// XeL Rate Of Change MoD (Regressional)
SProc = abs ((Hm- Cl)/ Hm)
BProc = abs ((Cl- Lm)/ Lm)
SPprc = Hm- Cl
BPprc = Cl- Lm
BPa = Average [ P] (BProc)
BPap = Average [ P] (BPprc)
SPa = Average [ P] (SProc)
SPap = Average [ P] (SPprc)
BPn = (BProc/ BPa)* 12
SPn = (SProc/ SPa)* 12
BPnp = (BPprc/ BPap)* 12
SPnp = (SPprc/ SPap)* 12
Va = Average [ 55 ] (Vo)
Vn = Vo/ Va
BPo = linearregression [ 9 ] (BPn * Vn)
SPo = linearregression [ 9 ] (SPn * Vn)
nbf = Average [ 9 ] (BPnp * Vn)
nsf = Average [ 9 ] (SPnp * Vn)
lrBPh = (BPo - SPo)
// PLOT DIRECTIVES
RETURN lrBPh AS "Regression Force" , nbf COLOURED (0 ,255 ,0 ) AS "BP" , nsf COLOURED (255 ,0 ,0 ) AS "SP"