龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-2 11:46

【pmms_calc_contracts_for_entry】

[code]Inputs: percent(NumericSimple), strategy_index(NumericSimple);

var: MoneyForInvest(0), MoneyCostForInvestPerCtrct(0);
MoneyForInvest = Portfolio_Equity * percent / 100;

MoneyCostForInvestPerCtrct = pmms_get_strategy_named_num(strategy_index, "MoneyCostForInvestPerCtrct");

if 0 < MoneyCostForInvestPerCtrct then
        pmms_calc_contracts_for_entry = IntPortion( MoneyForInvest / MoneyCostForInvestPerCtrct )
else
        pmms_calc_contracts_for_entry = 0;
[/code]

页: [1]