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

RE: [amibroker] code help



PureBytes Links

Trading Reference Links

thanks, William

you code works find...

i sent a bug report...and i was using the same version as u...

-john
----- Original Message ----- 
From: "William Peters" <williampeters@xxxxxxxxxxx>
To: "john gibb" <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, July 02, 2004 2:14 PM
Subject: Re: [amibroker] crash when concatenating SectorID for ATC


John,

Yes there is a problem I'm experiencing the same result (version 4.57 beta).
It seems to happen when the scanned ticker doesn't belong to a sector.

Here is a solution for now and you might like to lodge a bug report
with AmiBroker bugs@xxxxxxxxxxxxx


if ( SectorID(0) > -1 )
{
sym = "~Sector" + SectorID(1);
AddToComposite( L, sym,"L",1+2+8+16);
AddToComposite( O, sym,"O",1+2+8+16 );
AddToComposite( H, sym,"H",1+2+8+16 );
AddToComposite( C, sym,"C",1+2+8+16 );
AddToComposite( V, sym, "V",1+2+8+16);
Buy=0;
}


Regards,
William Peters
www.amitools.com


Friday, July 2, 2004, 2:40:53 PM, you wrote:

jg> Hi,

jg> with this code, I got a repeatable crash when Scanning "all stocks" for
"n last days" = 1

jg> <clip>
jg> sym = "~Sector" + SectorID(1);
jg> AddToComposite( L, sym,"L",1+2+8+16);
jg> AddToComposite( O, sym,"O",1+2+8+16 );
jg> AddToComposite( H, sym,"H",1+2+8+16 );
jg> AddToComposite( C, sym,"C",1+2+8+16 );
jg> AddToComposite( V, sym, "V",1+2+8+16);
jg> Buy==0;
jg> <clip>

jg> anyone else have the same experience?
jg>
jg> if so, anyone have any suggestions?
jg>
jg> -john



jg> Check AmiBroker web page at:
jg> http://www.amibroker.com/

jg> Check group FAQ at:
jg> http://groups.yahoo.com/group/amibroker/files/groupfaq.html


jg> Yahoo! Groups SponsorADVERTISEMENT



jg> Yahoo! Groups Links
jg> To visit your group on the web, go to:
jg> http://groups.yahoo.com/group/amibroker/
jg> To unsubscribe from this group, send an email to:
jg> amibroker-unsubscribe@xxxxxxxxxxxxxxx
jg> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

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