Buonasera volevo chiedervi se qualcuno sa come (se si può fare) spostare il batteplan sul grafico dei prezzi solamente muovendolo con il mouse
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
start = close [ 200 ]
inf = lowest [ 200 ] (low )
sup= highest [ 200 ] (high )
cyclelength= 2
trend= 0
Ncicli= 2
if date >= start then
a= a+ 1
x= (360 / cyclelength)* a
phase= - 90
pi= 3.1415926535
w1= Sin (((8 * x+ phase)* pi)/ 180 )
w2= 2 * sin (((4 * x+ phase)* pi)/ 180 )
w3= 3 * sin (((2 * x+ phase)* pi)/ 180 )
w4= 4 * sin (((x+ phase)* pi)/ 180 )
if (Ncicli= 3 ) then
w1= sin (((12 * x+ phase)* pi)/ 180 )
w2= 2 * sin (((6 * x+ phase)* pi)/ 180 )
w3= 3 * sin (((3 * x+ phase)* pi)/ 180 )
w4= 4 * sin (((x+ phase)* pi)/ 180 )
endif
ccycle= (w1+ w2+ w3+ w4)
grc= 0.01029
c= (grc* trend* 1 )
b= b+ c
Hurst= (ccycle+ b+ 10 )* ((sup- inf)/ 15 )+ inf
endif
return hurst as "Batteplan"