Hello. Happy New year! Is it possible in Amibroker to test this distribution? Describe the essence of the problem. Have N number of systems (for example 3) and the score (for example 1 000 000). The account is divided by the number of systems not in equal parts, and modified, some more, some less (for example, buy1 – 20%, buy2 30%, and buy3 – 50%). There is a list of stocks, begin to touch on the presence of a signal buy1. On the first transaction is conducted and then go to the system buy2. It also enumerates the presence of a signal but if the signal appeared in the action, which already has a deal buy1, skip this Issuer and move on. Similarly with other systems, market entry occurs in issuers that are not occupied by the upstream systems to the corresponding systems of the account. Is it possible to do so?
SetCustomBacktestProc("");
if( Status("action") == actionPortfolio )
{
bo = GetBacktesterObject();
bo.PreProcess();
...............................
...............................
...............................
}
bo.PostProcess();
}
buy1 = C > Ref(H,-1);
sell1 = Day() != Ref(Day(),1);
buy2 = Cross(EMA(C,5), EMA(C,10));
sell2 = Cross(EMA(C,10), EMA(C,5));
buy3 = C > Ref(H,-1);
sell3 = Day() != Ref(Day(),1);
Buy = buy1 OR buy2 OR buy3;
Sell = sell1 OR sell2 OR sell3;