不能正确显示合约SubscribeBar(CB_Info[0][0], frequency, BegindateTime);
Vars dic<array<String>> CB_Info(\"TB_BOND_CVBASE\"); //可转债基本信息,一维字符型数组 Numeric Equivalent_Vol; //转股数量,=100/转股价 Numeric Equivalent_price; //折合股价 Numeric Premium; //溢价率 Numeric DoubleLow_index; //双低指数=可转债价+溢价率*100Events OnInit() { SubscribeBar(CB_Info[0][0], frequency, BegindateTime); } OnBar(ArrayRef<Integer> indexs) { Equivalent_Vol=100/Value(CB_Info[0][1]); Equivalent_price=Close/Equivalent_Vol; Premium=(Equivalent_price-data1.close)/data1.close; DoubleLow_index=close+Premium*100; Commentary(\"正股代码=\"+CB_Info[0][0]); Commentary(\"转股价=\"+CB_Info[0][1]); Commentary(\"折合股价=\"+Text(Equivalent_price)); Commentary(\"溢价率=\"+Text(Premium)); Commentary(\"双低指数=\"+Text(DoubleLow_index)); Commentary(\"到期日=\"+CB_Info[0][2]); Commentary(\"剩余数量(亿)=\"+CB_Info[0][3]); Commentary(\"最后交易日=\"+CB_Info[0][4]); //PlotAuto(\"溢价率\", Premium); //PlotAuto(\"双低指数\",DoubleLow_index); }Vars dic<array<String>> CB_Info(\"TB_BOND_CVBASE\"); //可转债基本信息,一维字符型数组 Numeric Equivalent_Vol; //转股数量,=100/转股价 Numeric Equivalent_price; //折合股价 Numeric Premium; //溢价率 Numeric DoubleLow_index; //双低指数=可转债价+溢价率*100Events OnInit() { SubscribeBar(CB_Info[0][0], frequency, BegindateTime); } OnBar(ArrayRef<Integer> indexs) { Equivalent_Vol=100/Value(CB_Info[0][1]); Equivalent_price=Close/Equivalent_Vol; Premium=(Equivalent_price-data1.close)/data1.close; DoubleLow_index=close+Premium*100; Commentary(\"正股代码=\"+CB_Info[0][0]); Commentary(\"转股价=\"+CB_Info[0][1]); Commentary(\"折合股价=\"+Text(Equivalent_price)); Commentary(\"溢价率=\"+Text(Premium)); Commentary(\"双低指数=\"+Text(DoubleLow_index)); Commentary(\"到期日=\"+CB_Info[0][2]); Commentary(\"剩余数量(亿)=\"+CB_Info[0][3]); Commentary(\"最后交易日=\"+CB_Info[0][4]); //PlotAuto(\"溢价率\", Premium); //PlotAuto(\"双低指数\",DoubleLow_index); }Vars dic<array<String>> CB_Info(\"TB_BOND_CVBASE\"); //可转债基本信息,一维字符型数组 Numeric Equivalent_Vol; //转股数量,=100/转股价 Numeric Equivalent_price; //折合股价 Numeric Premium; //溢价率 Numeric DoubleLow_index; //双低指数=可转债价+溢价率*100Events OnInit() { SubscribeBar(CB_Info[0][0], frequency, BegindateTime); } OnBar(ArrayRef<Integer> indexs) { Equivalent_Vol=100/Value(CB_Info[0][1]); Equivalent_price=Close/Equivalent_Vol; Premium=(Equivalent_price-data1.close)/data1.close; DoubleLow_index=close+Premium*100; Commentary(\"正股代码=\"+CB_Info[0][0]); Commentary(\"转股价=\"+CB_Info[0][1]); Commentary(\"折合股价=\"+Text(Equivalent_price)); Commentary(\"溢价率=\"+Text(Premium)); Commentary(\"双低指数=\"+Text(DoubleLow_index)); Commentary(\"到期日=\"+CB_Info[0][2]); Commentary(\"剩余数量(亿)=\"+CB_Info[0][3]); Commentary(\"最后交易日=\"+CB_Info[0][4]); //PlotAuto(\"溢价率\", Premium); //PlotAuto(\"双低指数\",DoubleLow_index); }