697
edits
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 | 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 |