PureBytes Links
Trading Reference Links
|
Hi,
I happy to have found AB but all the symbols for the market I am
trading is lumped together under 1 market and I want to split stocks
and warrants into separate market categories.
How do I move symbols from 1 market to another.
Initially all symbols were grouped under the first market category and
I have created another in market 3.
Market 0 = stocks (the first one)
Market 3 = warrants.
All warrants have symbols ending in "W" and the symbols have 4
characters.
Here is what I have done and try to run it in the backtester but it
did not result in moving the symbols. See below.
I hope some can throw some light.
Maybe if someone can let me know where I can learn to debug an AFL
program I will be happy too.
Thanks.
// start of program.....
list = CategoryGetSymbols( categoryMarket, 0 );
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
if ((StrLen(sym)> 3) && (StrRight(sym,1)=="W"))
CategoryAddSymbol( sym, categoryMarket, 3 );
}
// The simple system just to get backtest to run and execute the above
code.
// MA parameters could be optimized too...
p1 = 10;
p2 = 22;
// simple MA crossover
Short=Cross( MA(C,p1) , MA(C,p2) );
Buy=Cross( MA(C,p2) , MA(C,p1) );
// always in the market
Sell=Short;
Cover=Buy;
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/
|