fill结构体输出函数
bool print_fill(fill ordfill)
    {
        print("--------");
        print("经济公司ID:"+text(ordfill.brokerId));
        print("资金账户ID:"+ordfill.accountId);
        print("交易日:"+text(ordfill.tradingDay));
        print("账户下标索引:"+text(ordfill.accountIndex));
        print("合约代码:"+ordfill.symbol);
        print("成交索引:"+ordfill.fillId);
        print("交易所成交时间:"+DateTimeToString(ordfill.fillDateTime));
        print("成交量:"+text(ordfill.fillVolume));
        print("成交价:"+text(ordfill.fillPrice));
        print("报单索引:"+text(ordfill.orderId));
        print("用户注释:"+ordfill.userNote);
        print("报单编号(交易所):"+ordfill.exchOrderId);
        print("报单委托时间:"+text(ordfill.createDateTime));
        print("委托量:"+text(ordfill.volume));
        print("委托价:"+text(ordfill.price));
        print("理论价:"+text(ordfill.theoryPrice));
    
        If(ordfill.side == Enum_Buy) print("买卖方向:"+"买入");
        else If(ordfill.side == Enum_Sell) print("买卖方向:"+"卖出");
        
        If(ordfill.combOffset == Enum_Entry) print("开平标志:"+"开仓");
        else If(ordfill.combOffset == Enum_Sell) print("开平标志:"+"平仓");
        else If(ordfill.combOffset == Enum_ExitToday) print("开平标志:"+"平今");
        /*
        If(ordfill.priceType == Enum_PriceType_Limit) print("价格类型:"+"限价");
        else If(ordfill.priceType == Enum_PriceType_Market) print("价格类型:"+"市价");
        else If(ordfill.priceType == Enum_PriceType_OwnBest) print("价格类型:"+"本方最优");
        else If(ordfill.priceType == Enum_PriceType_OpponentBest) print("价格类型:"+"对手最优");
        else If(ordfill.priceType == Enum_PriceType_BestToCancel) print("价格类型:"+"优五档即时成交剩余撤单");
        else If(ordfill.priceType == Enum_PriceType_BestToLimit) print("价格类型:"+"最优五档即时成交剩余转限价");
        else If(ordfill.priceType == Enum_PriceType_TotalFilledOrCancel) print("价格类型:"+"全成交或撤单");
        else If(ordfill.priceType == Enum_PriceType_FixPrice) print("价格类型:"+"盘后固定价交易");
       
        If(ordfill.hedge == Enum_HedgeType_Speculatio) print("投机套保:"+"投机"));
        else If(ordfill.hedge == Enum_HedgeType_Arbitrage) print("投机套保:"+"套利"));
        else If(ordfill.hedge == Enum_HedgeType_Hedge) print("投机套保:"+"套保"));
        else If(ordfill.hedge == Enum_HedgeType_MarketMaker) print("投机套保:"+"市商"));
        */
        If(ordfill.createId == Enum_Trade_Source_Extra) print("报单源ID:"+"非本机");
        else If(ordfill.createId == Enum_Trade_Source_Manual) print("报单源ID:"+"手工");
        else If(ordfill.createId == Enum_Trade_Source_Program) print("报单源ID:"+"程序");
        else If(ordfill.createId == Enum_Trade_Source_TBPY) print("报单源ID:"+"TBPY");
        else If(ordfill.createId == Enum_Trade_Source_Algo) print("报单源ID:"+"算法");
        else If(ordfill.createId == Enum_Trade_Source_Helper) print("报单源ID:"+"交易助手");
        else If(ordfill.createId == Enum_Trade_Source_Monitor) print("报单源ID:"+"头寸监控");
        else If(ordfill.createId == Enum_Trade_Source_Model) print("报单源ID:"+"模式单");
            
        print("报单源:"+ordfill.createSource);
        print("手续费:"+text(ordfill.commission));
        print("标识信息:"+text(ordfill.flag));
        
        return true;
    }


tick结构体
内嵌结构体CodeProperty:合约属性
内嵌结构体属性信息的获取
期权的Position结构体
请教!!! 内嵌结构体中的Order
Events中FillRef结构体的文档在哪找
tbpy触发on_fill函数
驱动区域和变量声明结构体应用的不同
内嵌结构体,合约属性CodeProperty中的交易时段dealTimes怎么用?
请教!!!关于内嵌结构体

抄抄抄

👍