PureBytes Links
Trading Reference Links
|
If you are like me
you placed you AddToComposite()s ahead of the code that uses the Composites.
This is easy as it keeps things together however it also means that when you
perform a Scan most of the other code is executed as well and this can slow
down your Scan significantly. You can prevent this by using a simple if(scan){}
, this executes Scan code only when scanning and skips the Scan code when
running Backtests or Explorations. I found this really speeds up my
code.
<FONT
face=Arial size=2>
<FONT
color=#ff0000>Buy=<FONT
color=#ff0000>Sell=<FONT
color=#ff0000>Short=<FONT
color=#ff0000>Cover=<FONT
color=#ff00ff>0<FONT
color=#000000>; Scan = Status<FONT
color=#000000>("Action"<FONT
color=#000000>)==3;
<FONT face=Arial color=#000000
size=2>
<FONT face=Arial
size=2>... preperatory code
if<FONT
face=Arial size=2>(Scan) {
AddToComposite()
AddToComposite();
} else<FONT
face=Arial> { <SPAN
class=290531812-09122003>.<SPAN
class=290531812-09122003>..systems and
explorations} //
End els<SPAN
class=290531812-09122003>e
Yahoo! Groups Sponsor
ADVERTISEMENT
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|