Changes

Jump to navigation Jump to search

Portfolio Trader Strategy Examples

8 bytes added, 14:16, 29 September 2014
<syntaxhighlight>once if 1 <> getappinfo(aiisportfoliomode)
 
then raiseruntimeerror("Portfolio Rank Money Management Signal can be applied for MCPortfolio application only.");
once if pmms_strategies_count() > 10000  then raiseruntimeerror ("Portfolio Rank Money Management Signal too much instruments, max value = " + numtostr(100000, 0)); once if pmms_strategies_count() < BuyBestN + SellWorseN
once if pmms_strategies_count() < BuyBestN + SellWorseN then raiseruntimeerror ("Portfolio Rank Money Management Signal, please check inputs, BuyBestN + SellWorseN should be less or equal to tradable Instruments number");
</syntaxhighlight>
if TraceOutput then
print("CurrentBar = ", currentbar:0:0, ".  Allow LONG for symbol ", pmms_strategy_symbol(strIdx), ", Contracts = ", ContractsForEntry[strIdx]);
end;
</syntaxhighlight>

Navigation menu