+1 888 340 6572

Portfolio Trader Strategy Examples: Difference between revisions

From MultiCharts
No edit summary
Line 301: Line 301:
if 0 > MoneyCostForInvestPerCtrct then
if 0 > MoneyCostForInvestPerCtrct then
raiseruntimeerror( text("Error! Price = ", potential_entry_price:0:6, "PMargin = ", Portfolio_GetMarginPerContract, "PMaxPLoss = ", Portfolio_GetMarginPerContract) );
raiseruntimeerror( text("Error! Price = ", potential_entry_price:0:6,
 
"PMargin = ", Portfolio_GetMarginPerContract, "PMaxPLoss = ", Portfolio_GetMarginPerContract) );
// MoneyCostForInvestPerCtrct in currency of the symbol. Convert it to portfolio currency ...
// MoneyCostForInvestPerCtrct in currency of the symbol. Convert it to portfolio currency ...
Line 333: Line 335:
<syntaxhighlight>once if 1 <> getappinfo(aiisportfoliomode)
<syntaxhighlight>once if 1 <> getappinfo(aiisportfoliomode)


then raiseruntimeerror("Portfolio Rank Money Management Signal can be applied for MCPortfolio application only.");
then raiseruntimeerror("Portfolio Rank Money Management Signal can be applied to MCPortfolio application only.");


once if pmms_strategies_count() > 10000
once if pmms_strategies_count() > 10000