PureBytes Links
Trading Reference Links
|
hello,
I have written it in a plugin,
it seems to match your Ms code
you can plot it with
Plot( C ,"",1,64);
Plot( scVWMA(OBV(),21),"",3,1);
I have added this code to the trailingstop plugin, you'll find it in
file section under plugin
stephane
> to understand the setup for this idea, imagine a downward moving
OBV
> plot, then imagine a mov avg of it. the MA will be above. now
draw a
> horizontal line from the last point of the MA back to the OBV. plot
> the close on that day the line touches the OBV. this should be
similar
> to a VWAP support/resistance line.
>
> now, with some help from Equis, this is what the formula looks
like in
> metastock (for 21 day period):
>
> If(OBV(C)<Mov(OBV(C),21,S),
> ValueWhen(1,OBV(C)>LastValue(Mov(OBV(C),21,S)+PREV-PREV),C),
> ValueWhen(1,OBV(C)<LastValue(Mov(OBV(C),21,S)+PREV-PREV),C));
>
> don't try to figure it out. the +PREV-PREV used with LASTVALUE is
a
> workaround for a non-existent function. obviously, i would like to
> convert this to AFL, but can't figure it out.
|