PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxxxxxxxxxxxxx, "aukcspore" <aukcspore@xxx> wrote:
>
> 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.
> // 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;
>
Hello aukcspore,
You don't need to use the Backtester.
Scan or Explore will do the job.
Use Explore and addtextcolumns or addcolumns if you want to see the
results.
Just add Buy = 1 for scan or Filter = 1 for Explore.
Otherwise the code looks good; without trying it myself.
> // start of program.....
> Filter = 1;//run in Explorer
> list = CategoryGetSymbols( categoryMarket, 0 );
>
> for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
> {
> if ((StrLen(sym)> 3) && (StrRight(sym,1)=="W"))
> CategoryAddSymbol( sym, categoryMarket, 3 );
>
>
> }
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/
|