Example sur un RSI 14 périodes.
Version PRT 10.3:
defparam drawonlastbaronly = true
//X = starting price
X = rsi [ 14 ]
//a = angle
a = 45
//Y = next price
Y = square (sqrt (X)+ a/ 180 )
//plot the next price
drawline (barindex ,X,barindex + 1 ,Y)
return X as "price/indi value"
version PRT v11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
defparam drawonlastbaronly = true
//X = starting price
X = rsi [ 14 ]
//a = angle
a = 45
//Y = next price
Y = square (sqrt (X)+ a/ 180 )
//plot the next price
drawsegment (barindex ,X,barindex + 10 ,Y) coloured (255 ,200 ,0 ) style (line ,3 )
drawpoint (barindex ,X,3 ) coloured (255 ,0 ,0 )
drawpoint (barindex + 10 ,Y,3 ) coloured (255 ,0 ,0 )
return X as "price/indi value"