https://www.prorealcode.com/prorealtime-indicators/dynamic-zone-elasticity/
I cant seem to make this work in prooder.
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
//DYNAMIC ZONE ELASTICITY///
once smoothing = max (1 , smoothing+ 1 )
once period = max (1 , Period)
// Coeficient, change if required
once coef = 0.8
// Signal line
x = std [ Period] (close )
signam = 1 + (- 1 * ( ((average [ period] (close ) + (x* 2 )) - close ) / x ) / 2 )
// Dynamic Zones
sq = square (signam)
mean = average [ period] (signam)
vsqrt = sqrt ( average [ period] (sq) - square (mean) )
//top = mean + coef * vsqrt
btm = mean - coef * vsqrt
result = average [ smoothing] (signam)
////////////////////////////////////
buycond = result crosses over btm
if buycond then
buy 1 contract at market
set stop %loss 1
set target %profit 1
endif
graph buycond
Please can someone tell me what im missing?
Thanks in advance