Multiple stock trading with one or multiple strategies

Can I do trading on multiple stocks with one strategies or do trading on multiple stocks with multiple strategies simultaneously.

Suppose there are Four stock named as A, B, C and D.
Can I use the strategy A1 on all the stock simultaneously. If yes, then how can I do the same?

The second situation is that if there are four strategies named as A1, B1, C1 and D1. Can implement the strategy A1 for stock A, strategy B1 for stock B and so on. If yes, then how to do the same?

Thanks in advance for your reply.

Please read the manual: http://www.amibroker.com/guide/h_portfolio.html

It explains how to apply strategy to multiple stocks (portfolio).

You can also have different strategy for different stocks like this:

n = Name();

switch( Name() )
{
   case "SymbolA":
    // strategy A
    Buy = ...;
    Sell = ...;
    break;

   case "SymbolB":
    // strategy B
    Buy = ...;
    Sell = ...;
    break;

   case "SymbolC":
    // strategy C
    Buy = ...;
    Sell = ...;
    break;

   case "SymbolD":
    // strategy D
    Buy = ...;
    Sell = ...;
    break;
}

2 Likes