Il codice adattato di seguito dovrebbe restituire il punto anziché le linee rette per tracciare il canale frattale:
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
/////////// FRACTALS BILL WILLIAMS
//Variable:
//cp = 2 (default)
if high [ cp] >= highest [ 2 * cp+ 1 ] (high ) then
LH = 1
else
LH= 0
endif
if low [ cp] <= lowest [ 2 * cp+ 1 ] (low ) then
LL= - 1
else
LL= 0
endif
if LH= 1 then
hil = high [ cp]
endif
if LL = - 1 then
LOL= low [ cp]
endif
return lol coloured (255 ,0 ,0 ) style (point ,2 ) as "Low Fractal" ,hil coloured (0 ,255 ,0 ) style (point ,2 ) as "High Fractal"
/////////////end
Il canale frattale non è un indicatore MT4 predefinito e ci sono molte versioni su Internet, se hai in mente qualcosa di preciso, ti preghiamo di pubblicare schermate.