PureBytes Links
Trading Reference Links
|
Hope this is what you are looking for
D1 =
abs
(O-H);
D2 =
abs
(O-L);
Diff =
IIf
(D1 <= D2, D1, D2);
SmaDiff =
MA
(Diff,
10
);
Plot(SmaDiff
,
"SmaDiff
",
colorBlack,styleLine);
Jim Hutchison
At 06:20 AM 8/29/2009, you wrote:
I need help writing an indicator:
The 10 period SMA of the absolute difference between the open and either
the high or low, whichever difference is smaller.
Any advice appreciated.
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|