Inputs:
SYMBOL_NAME(StringSimple),
FIELD_DATE(NumericSimple),
FIELD_TIME(NumericSimple),
TRADER_TYPE(NumericSimple),
FIELD_SIDE(NumericSimple), // 1:Long, 2:Short
FIELD_TRADE(NumericSimple),
FIELD_VOLUME(NumericSimple); // 1:Contracts, 2:Amount
external: "MCExtendQuote64.dll", int, "Init", IEasyLanguageObject;
external: "MCExtendQuote64.dll", int, "Deinit", IEasyLanguageObject ;
external: "MCExtendQuote64.dll", double, "get_chip", int, string, int, int, int, int, int, int;
#events
OnCreate = Init;
OnDestroy = Deinit;
#end ;
if TRADER_TYPE >=4 and FIELD_TRADE=2 and FIELD_VOLUME=2 then
GetChip = get_chip(1, SYMBOL_NAME, FIELD_DATE, FIELD_TIME, TRADER_TYPE, FIELD_SIDE, FIELD_TRADE, FIELD_VOLUME)*0.0001
else
GetChip = get_chip(1, SYMBOL_NAME, FIELD_DATE, FIELD_TIME, TRADER_TYPE, FIELD_SIDE, FIELD_TRADE, FIELD_VOLUME);
GetChip(SYMBOL_NAME, FIELD_DATE, FIELD_TIME, TRADER_TYPE, FIELD_SIDE, FIELD_TRADE, FIELD_VOLUME)
getchip("TXF",20190621,150000,3,1,2,1)
台指期外資多單口數
getchip("TXF",20190621,150000,3,2,2,1)
台指期外資空單口數