Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey jed.... i'm not in the divergence crowd but perhaps you could use the metastock 'divergence' function.... it's easy to use as an indicator and just as easy to create explorations with...
again, divergences are not my cup of tea but perhaps something similar to below might be a start... the indicator uses the input to vary the % change and the exploration uses hard coded 2,3,4,5,6,7 %'s.... each column uses 1 for buy and -1 for sell......
divergence's come and go.... price rules.....h
indicator of sorts
----------------------------------------
a:=Input("percent",1,20,2);
Divergence( AD(),C,a)
---------------------------------------
exploration
---------------------------------------
Exploration notes Col A: 2 % a:=Divergence( AD(),C,2); If(a=1,1,If(a=-1,-1,0)); Col B: 3 % a:=Divergence( AD(),C,3); If(a=1,1,If(a=-1,-1,0)); Col C: 4 % a:=Divergence( AD(),C,4); If(a=1,1,If(a=-1,-1,0)); Col D: 5 % a:=Divergence( AD(),C,5); If(a=1,1,If(a=-1,-1,0)); Col E: 6 % a:=Divergence( AD(),C,6); If(a=1,1,If(a=-1,-1,0)); Col F: 7% a:=Divergence( AD(),C,7); If(a=1,1,If(a=-1,-1,0)); Filter colA OR colB OR colC OR colD OR colE OR colF Filter enabled Yes Periodicity Daily Records required 1000
----------------------------------------
|