指定
need 2 codes
one mql4
one sierrachart .dll ' see file enclosed easy to modify ? )
step one
modify ZZ study to
htt://www.sierrachart.com/userimages/upload_2/1321537739705.png
idea is a zz with only one point of reference per candel !
only one point for each candel not 2 high n low
that one point of equilibrium !
1/ system look if candel is bull or bear
if bull point is (open+high) /2
if bear point is ( open+low )2
2/ then build zz
sierra zz type 1 and % filter
system draw the line point live ......on the actual candel
2/ visual point
in the menu of ZZ i can select display hh lh ll hl
instead of that just change it to a choice in the menu
hh = star
lh = diamond
ll = dash
hl = point
n choice of color and SIZE
where to draw this stuff ?
not over or under but = where the wave end
so regardding display it will be at the star of sup/res lines the first point of those lines
like that
*-----------------------
3/ ZZ sup/res lines
based on zz special point ** only one point per candel
with choice in menu:
a) all points
b) filtered by BB
bb settings imputable
+
points/lines if zz
hh lh >= high BB band
ll hl <= low BB band
4/ ratio of zz waves very simple in fact !
simply use data coming from zz wave in pips
w1 50 pips
w2 25 pips
ratio 25/50 = 0.5 ratio is last wave / previous wave in pips
and so on
display in the menu like if i want to display hh lh ll hl
but
over or under
i display this ratio over or under the turn of ZZ ( like if i display HH in standart zz )
ratio is
last wave in pips divided by previous wave in pips ....
display
at
end of last wave
ratio can be positive or negative
http://www.sierrachart.com/userimages/upload_2/1321439943963.png
very simple very basic
5/ alerts
Alert choice in the menu when candel close above zz last support or resistance line