PureBytes Links
Trading Reference Links
|
The composites created by "for loop" and "if else" or "switch()" are
different from the ones created by changing "nn" manually and scanning.
A "for loop" may be too fast for AddToComposite() and start creating
the next composite before the previous one is written.
How do I pause and sequentially create composites ?
for( nn = 0; nn < 3; nn++ )
{
if ( nn == 0 )
{
Buy = 0;
aa = Close;
AddToComposite( aa, "~ATCa", "X" );
}
else
if ( nn == 1 )
{
Buy = 0;
bb = Foreign( "~ATCa", "Close", 0 ) + Close;
AddToComposite( bb, "~ATCb", "X" );
}
else
if ( nn == 2 )
{
Buy = 0;
cc = Foreign( "~ATCb", "Close", 0 ) * Close;
AddToComposite( cc, "~ATCc", "X" );
}
}
------------------------------------
Please note that this group is for discussion between users only.
To get 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/
|