PureBytes Links
Trading Reference Links
|
<FONT color=#000000
size=2>Hello,
Can anyone help me with an
indicator I am trying to program.
It is Robert Krausz's Weekly
Balance Step. It is a five-week moving average of the weekly closes
(Friday-to-Friday only) and is displayed on a daily chart.
I couldn't think of how to
write it in MS language to use just the weekly Friday close, but came up with
this:
If(( DayOfWeek()=5 ),
Mov(CLOSE, 22, S) , PREVIOUS ) (This is a close
approximation)
Here is what I came upwith for
Amibroker, but it doesn't function:
graph0 =close;graph1 =
IIF(( Dayofweek()=5 ),ma(CLOSE, 22) , PREVIOUS
);graph0style=4+128;graph0color=36;graph1color=5;graph1style=4+512;
There doesn't seem to be a
PREVIOUS fn available.
Can anyone
help?
Thanks,
Larry
<A
href="">
<A href=""
> <A
href="">
<A target=_top
href="">
|