0
Follow
1
Followers
TypeError: not a function at main (**FILE**:20) Bitte helfen Sie, dieses Problem zu lösen. . Der Code lautet wie folgt
Created 2022-01-10 12:58:07
1
1040
function main() {
for(var i in exchanges){
var e = exchanges[i];
var trade = new Trade(i);
//Log(typeof(P_vol_p), typeof(P_level));
trade.level = getPara(P_level, i);
trade.vol_u = P_vol_u;
trade.contract_value = getPara(P_contract_value, i);
trade.precision_price = getPara(P_precision_price, i);
trade.precision_vol = getPara(P_precision_vol, i);
trade.pos_vol = 0
trade.pos_price = 0;
tradeArr.push(trade);
e.SetContractType("swap");
e.SetMarginLevel(P_level);
if(!IsVirtual() ){
if(!symbolArr)
var symbolArr = $.get_symbol_arr(e);
trade.precision_price = symbolArr[e.GetCurrency()].precision_price;
trade.precision_vol = symbolArr[e.GetCurrency()].precision_vol;
trade.contract_value = symbolArr[e.GetCurrency()].contract_value;
trade.min_qty = symbolArr[e.GetCurrency()].min_qty;
trade.min_val = symbolArr[e.GetCurrency()].min_val;
}
e.SetPrecision(trade.precision_price, trade.precision_vol)
Log("设置精度", trade.precision_price, trade.precision_vol);
e.SetMaxBarLen(500)
}
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engine
Comment
All comments (1)
- 1
