PureBytes Links
Trading Reference Links
|
Looping and optimizing a set of sequential numbers is easy. But how does one loop or optimize through a large set of non sequential numbers, that have no defined step value or relation?
Without getting too bogged down in tangential details, I have a DLL that created a new function in AmiBroker. That function spits out thousands of possible buy/sell conditions. Those conditions were then optimized in a separate AFL, and I ended up with hundreds of "good" conditions that I now want to step through, for backtesting purposes.
For e.g.:
for
(a = step through all the numbers below)
condition65 = ...stuff condition126 = ...stuff condition867 = ...stuff condition 1023 = ...stuff
[... a few hundred more]
Buy
= VarGet("condition"+NumToStr(a,1.0,0));
__._,_.___
**** 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
*********************************
__,_._,___
|