I am new to here and new to mc. After studying the manual for several times, I¡¯m still confused with how to realize such stratagem just like as I can do simply in Wealthlab:
One day interval, in one portfolio, with an initial capital of 100000 dollars, though there maybe more than dosons entries, to to choose only one trade for one position per day with fixed 10000 dollars.
Another thing is if I check the trade size dollars per trade in portfolio stratagem properties, there will pops out an error saying ¡°divided by zero¡± when starting to test. Attached is my test signal.
Variables: dinge(10000),ShareSize(0),RiskPercent(0.1),
TotalEquity(0.0),initCapital(100000);
TotalEquity=initCapital+Portfolio_NetProfit+Portfoli

penPositionProfit;
//ShareSize=TotalEquity*RiskPercent/Close;
ShareSize=dinge/Close;
buy {sharesize shares }this bar close;
//PortfolioEntriesPriority=(-c);
sell {all shares} next bar open;
As I know, this post is the right base of MC to solve MC problems, so here I am. Thanks a lot.