[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: ATC Creation



PureBytes Links

Trading Reference Links

MM

you need quotes as modified below:

NH = Foreign("~GM_52W_NH"," X");

is it just a typo??

----- Original Message ----- 
From: "marketmonk777" <RedEyes777@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, September 27, 2008 3:24 PM
Subject: [amibroker] Re: ATC Creation


> Hi Ara,
>
> Thanks for pointing that out.  I changed the ATC formulas to include
> the Ref.
>
> GM_NHL still is a bunch of zeros.  I think what is going on is that
> the ATC sums up the number of new highs, where as GM_52W_NH is just a
> logical true false item per stock.
>
> So I am trying this code:
> NH = Foreign(~GM_52W_NH, X);
> NL = Foreign(~GM_52W_NL, X);
>
> GM_NHL = (NH / NL)*100;
>
> But I get an error just before the tilde that states syntex error,
> expecting a ")" or a ","
>
> Still stumped.
> MM
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>>
>> You are including todays's price in your history ... try
>> GM_52W_NH = C >=   Ref(HHV( Close, 260),-1);
>>
>>
>> ----- Original Message ----- 
>> From: "marketmonk777" <RedEyes777@xxx>
>> 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
>
>
>


------------------------------------

**** 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/