PureBytes Links
Trading Reference Links
|
You are including todays's price in your history ... try
GM_52W_NH = C >= Ref(HHV( Close, 260),-1);
----- Original Message -----
From: "marketmonk777" <RedEyes777@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, September 27, 2008 10:21 AM
Subject: [amibroker] ATC Creation
> Hi,
>
> I am trying to create various forms of New High New Low indicators
> from my general market ATC symbols. Here is the code:
>
> GM_52W_NH = C >= HHV( Close, 260);
> AddToComposite(GM_52W_NH, "~GM_52W_NH", "X" );
>
> GM_52W_NL = C <= LLV( Close, 260);
> AddToComposite(GM_52W_NL, "~GM_52W_NL", "X" );
>
> GM_NHL = (GM_52W_NH / GM_52W_NL)*100;
> AddToComposite(GM_NHL, "~GM_NHL", "X" );
>
> Buy = 0;
>
> I get zeros for the ~GM_NHL ATC symbol. If I replace the division
> symbol with an addition symbol it correctly adds the number of new
> highs and new lows. Yet division does not work.
>
> I know it is something simple but can't put my finger on it.
>
> What am I doing wrong?
>
> Regards,
> MM
>
>
> ------------------------------------
>
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> *********************
> TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> *********************
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> *********************************
> Yahoo! Groups Links
>
>
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|