谨慎尝试,我的电脑是运行不动,直接无响应!
看有高人来尝试后说说效果!!!
{公式名称: 分笔XXXXX}
{公式默认周期: 分笔 }
{========= 公式内容 开始 =========}
只能用于分笔成交图分析
复制原码,记事本用了“自动换行”,要重新连上断了的句。
VAR1:=STRTONUM(NUMTOSTR(CLOSE));
VAR2:=STRTONUM(NUMTOSTR(BIDPRICE(1)));
VAR3:=STRTONUM(NUMTOSTR(BIDPRICE(2)));
VAR4:=STRTONUM(NUMTOSTR(BIDPRICE(3)));
VAR_委买量1:=BIDVOL(1);
VAR_委买量2:=BIDVOL(2);
VAR_委买量3:=BIDVOL(3);
VAR5:=STRTONUM(NUMTOSTR(REF(BIDPRICE(1),1)));
VAR6:=STRTONUM(NUMTOSTR(REF(BIDPRICE(2),1)));
VAR7:=STRTONUM(NUMTOSTR(REF(BIDPRICE(3),1)));
VAR8:=REF(VAR_委买量1,1);
VAR9:=REF(VAR_委买量2,1);
VAR10:=REF(VAR_委买量3,1);
VAR11:=STRTONUM(NUMTOSTR(ASKPRICE(1)));
VAR12:=STRTONUM(NUMTOSTR(ASKPRICE(2)));
VAR13:=STRTONUM(NUMTOSTR(ASKPRICE(3)));
VAR_委卖量1:=ASKVOL(1);
VAR_委卖量2:=ASKVOL(2);
VAR_委卖量3:=ASKVOL(3);
VAR14:=STRTONUM(NUMTOSTR(REF(ASKPRICE(1),1)));
VAR15:=STRTONUM(NUMTOSTR(REF(ASKPRICE(2),1)));
VAR16:=STRTONUM(NUMTOSTR(REF(ASKPRICE(3),1)));
VAR17:=REF(VAR_委卖量1,1);
VAR18:=REF(VAR_委卖量2,1);
VAR19:=REF(VAR_委卖量3,1);
VAR20:=IF(VAR14=VAR11 AND VAR17-VAR_委卖量1>=0,VAR17-VAR_委卖量1,0);
VAR21:=IF(VAR15=VAR12 AND VAR18-VAR_委卖量2>=0,VAR18-VAR_委卖量2,0);
VAR22:=IF(VAR16=VAR13 AND VAR19-VAR_委卖量3>=0,VAR19-VAR_委卖量3,0);
VAR23:=IF(VAR5=VAR2 AND VAR8-VAR_委买量1>=0,VAR8-VAR_委买量1,0);
VAR24:=IF(VAR6=VAR3 AND VAR9-VAR_委买量2>=0,VAR9-VAR_委买量2,0);
VAR25:=IF(VAR7=VAR4 AND VAR10-VAR_委买量3>=0,VAR10-VAR_委买量3,0);
VAR26:=IF(VAR17+VAR18+VAR19+VAR_委卖量1+VAR_委卖量2+VAR_委卖量3=0 AND VAR8>0,VOL,0);
VAR27:=IF(VAR8+VAR9+VAR10+VAR_委买量1+VAR_委买量2+VAR_委买量3=0 AND VAR17>0,VOL,0);
VAR28:=IF(VAR27+VAR26=0 AND VAR8>0 AND VAR_委买量1+VAR_委买量2+VAR_委买量3=0,VOL,0);
VAR29:=IF(VAR27+VAR26+VAR28=0 AND VAR17>0 AND VAR_委卖量1+VAR_委卖量2+VAR_委卖量3=0,VOL,0);
VAR30:=IF(VAR29+VAR28+VAR27+VAR26=0 AND ISBUYORDER=1 AND TICKCOUNT=1,VOL,0);
VAR31:=IF(VAR29+VAR28+VAR27+VAR26+VAR30=0 AND ISBUYORDER=0 AND TICKCOUNT=1,VOL,0);
VAR32:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31=0 AND VAR5=VAR2 AND VAR6=VAR3 AND VAR7=VAR4 AND VAR8<=VAR_委买量1 AND VAR9<=VAR_委买量2 AND VAR10<=VAR_委买量3,VOL,0);
VAR33:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32=0 AND VAR14=VAR11 AND VAR15=VAR12 AND VAR16=VAR13 AND VAR17<=VAR_委卖量1 AND VAR18<=VAR_委卖量2 AND VAR19<=VAR_委卖量3,VOL,0);
VAR34:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33=0 AND VAR1=VAR14 AND VAR14=VAR11 AND VAR17-VAR_委卖量1>=0 AND VAR17-VAR_委卖量1<=VOL,VAR17-VAR_委卖量1,0);
VAR35:=IF(VAR34>0,VOL-VAR34,0);
VAR36:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35=0 AND VAR1=VAR5 AND VAR5=VAR2 AND VAR8-VAR_委买量1>=0 AND VAR8-VAR_委买量1<=VOL,VAR8-VAR_委买量1,0);
VAR37:=IF(VAR36>0,VOL-VAR36,0);
VAR38:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36=0 AND VAR1=VAR15 AND VAR15=VAR11 AND VAR18-VAR_委卖量1>=0 AND VAR18-VAR_委卖量1+VAR17<=VOL,VAR18-VAR_委卖量1+VAR17,0);
VAR39:=IF(VAR38>0,VOL-VAR38,0);
VAR40:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39=0 AND VAR1=VAR6 AND VAR6=VAR2 AND VAR9-VAR_委买量1>=0 AND VAR9-VAR_委买量1+VAR8<=VOL,VAR9-VAR_委买量1+VAR8,0);
VAR41:=IF(VAR40>0,VOL-VAR40,0);
VAR42:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40=0 AND VAR1=VAR16 AND VAR16=VAR11 AND VAR19-VAR_委卖量1>=0 AND VAR19-VAR_委卖量1+VAR17+VAR18<=VOL,VAR19-VAR_委卖量1+VAR17+VAR18,0);
VAR43:=IF(VAR42>0,VOL-VAR42,0);
VAR44:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43=0 AND VAR1=VAR7 AND VAR7=VAR2 AND VAR10-VAR_委买量1>=0 AND VAR10-VAR_委买量1+VAR8+VAR9<=VOL,VAR10-VAR_委买量1+VAR8+VAR9,0);
VAR45:=IF(VAR44>0,VOL-VAR44,0);
VAR46:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44=0 AND VAR14=VAR11 AND VAR15=VAR12 AND VAR16=VAR13 AND VAR20+VAR21+VAR22<=VOL,VAR20+VAR21+VAR22,0);
VAR47:=IF(VAR46>0,VOL-VAR46,0);
VAR48:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47=0 AND VAR5=VAR2 AND VAR6=VAR3 AND VAR7=VAR4 AND VAR23+VAR24+VAR25<=VOL,VAR23+VAR24+VAR25,0);
VAR49:=IF(VAR48>0,VOL-VAR48,0);
VAR50:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48=0 AND VAR16=VAR12 AND VAR15=VAR11 AND VAR14=VAR2 AND VAR5=VAR3 AND VAR6=VAR4 AND VAR18-VAR_委卖量1>=0 AND VAR18-VAR_委卖量1+VAR17<=VOL,VAR18-VAR_委卖量1+VAR17,0);
VAR51:=IF(VAR50>0,VOL-VAR50,0);
VAR52:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51=0 AND VAR7=VAR3 AND VAR6=VAR2 AND VAR5=VAR11 AND VAR14=VAR12 AND VAR15=VAR13 AND VAR9-VAR_委买量1>=0 AND VAR9-VAR_委买量1+VAR8<=VOL,VAR9-VAR_委买量1+VAR8,0);
VAR53:=IF(VAR52>0,VOL-VAR52,0);
VAR54:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52=0 AND VAR16=VAR11 AND VAR15=VAR2 AND VAR14=VAR3 AND VAR5=VAR4 AND VAR19-VAR_委卖量1>=0 AND VAR19-VAR_委卖量1+VAR17+VAR18<=VOL,VAR19-VAR_委卖量1+VAR17+VAR18,0);
VAR55:=IF(VAR54>0,VOL-VAR54,0);
VAR56:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52+VAR54+VAR55=0 AND VAR7=VAR2 AND VAR6=VAR11 AND VAR5=VAR12 AND VAR14=VAR13 AND VAR10-VAR_委卖量1>=0 AND VAR10-VAR_委买量1+VAR8+VAR9<=VOL,VAR10-VAR_委买量1+VAR8+VAR9,0);
VAR57:=IF(VAR56>0,VOL-VAR56,0);
VAR58:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52+VAR54+VAR55+VAR57+VAR56=0 AND VAR4>VAR5 AND ISBUYORDER=1,VOL,0);
VAR59:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52+VAR54+VAR55+VAR57+VAR56=0 AND VAR13<VAR14 AND ISBUYORDER=0,VOL,0);
VAR60:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52+VAR54+VAR55+VAR57+VAR56+VAR58+VAR59=0 AND VAR15=VAR11 AND VAR18-VAR_委卖量1>=0 AND VAR18-VAR_委卖量1+VAR17<=VOL,VAR18-VAR_委卖量1+VAR17,0);
VAR61:=IF(VAR60>0,VOL-VAR60,0);
VAR62:=IF(NOT(DISPSTATUS=2) AND VAR29+VAR28+VAR27+VAR26+VAR30+VAR31+VAR32+VAR33+VAR34+VAR35+VAR37+VAR36+VAR38+VAR39+VAR41+VAR40+VAR42+VAR43+VAR45+VAR44+VAR46+VAR47+VAR49+VAR48+VAR50+VAR51+VAR53+VAR52+VAR54+VAR55+VAR57+VAR56+VAR58+VAR59+VAR60+VAR61=0 AND VAR15=VAR11 AND VAR18-VAR_委卖量1<0 AND VAR17<=VOL, |