竞价极强排序有次新股强度排序 主力控盘度排序通达信排序指标 源码
VAR1:=BARSLASTCOUNT(CLOSE>=REF(CLOSE,1)*1.095 AND CLOSE=HIGH);
VAR2:=CLOSE/REF(CLOSE,1)*100-100;
VAR3:=REF(VAR2,2);
今开%:(OPEN/REF(CLOSE,1)-1)*100;
今收益%:VAR2-今开%;
VAR4:=(CLOSE-REF(CLOSE,1))/CLOSE;
VAR5:=(INDEXC-REF(INDEXC,1))/INDEXC;
VAR6:=(VAR4-VAR5)*100;
次新股:10*SMA(MAX(VAR6,0),12,1)/SMA(ABS(VAR6),12,1)-5,COLORCYAN;
VAR7:=EMA(EMA(CLOSE,9),9);
VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*1000;
STICKLINE(VAR8<0,VAR8,0,1,0),COLORWHITE;
VAR9:=CROSS(VAR8,0);
VAR10:=IF(VAR8<0,VAR8,0);
VAR11:=IF(VAR9,5,0);
STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR8,0,1,0),COLORRED;
VAR12:=IF(VAR8>REF(VAR8,1) AND VAR8>0,VAR8,0);
VAR13:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR13>50 AND COST(85)<CLOSE AND VAR8>0,VAR8,0,1,0),COLORMAGENTA;
高度控盘:IF(VAR13>50 AND COST(85)<CLOSE AND VAR8>0,VAR8,0),NODRAW,COLORMAGENTA;
VAR14:=IF(VAR13>50 AND COST(85)<CLOSE AND VAR8>0,VAR8,0);
STICKLINE(VAR8<REF(VAR8,1) AND VAR8>0,VAR8,0,1,0),COLORGREEN;
VAR15:=IF(VAR8<REF(VAR8,1) AND VAR8>0,VAR8,0);
VAR16:=IF(VAR8<REF(VAR8,1) AND VAR8>0,VAR8,0);
控盘选股:VAR16<0.1 AND VAR14>15.79;
VAR17:=IF(OPEN=CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.8,AMOUNT,AMOUNT/((HIGH-LOW)*2-ABS(OPEN-CLOSE))*(CLOSE-LOW));
主力买%:VAR17/AMOUNT*100,NODRAW,COLORRED;
VAR18:=MA(CLOSE,5);
VAR19:=MA(CLOSE,10);
VAR20:=MA(CLOSE,20);
VAR21:=MA(CLOSE,30);
VAR22:=MA(CLOSE,54);
VAR23:=MA(CLOSE,60);
VAR24:=MA(CLOSE,120);
VAR25:=MA(CLOSE,250);
半年热度:1/((VAR18+VAR19+VAR20+VAR21+VAR23+VAR24)/6/CLOSE);
年热度:1/((VAR18+VAR19+VAR20+VAR21+VAR23+VAR24+VAR25)/6/CLOSE);
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:BARSLASTCOUNT(收盘价>=1日前的收盘价*1.095 AND 收盘价=最高价)
VAR2赋值:收盘价/1日前的收盘价*100-100
VAR3赋值:2日前的VAR2
输出今开%:(开盘价/1日前的收盘价-1)*100
输出今收益%:VAR2-今开%
VAR4赋值:(收盘价-1日前的收盘价)/收盘价
VAR5赋值:(INDEXC-1日前的INDEXC)/INDEXC
VAR6赋值:(VAR4-VAR5)*100
输出次新股:10*SMA(VAR6和0较大值,12,1)/SMA(VAR6的绝对值,12,1)-5,画青色
VAR7赋值:收盘价的9日指数移动平均,9)
VAR8赋值:(VAR7-1日前的VAR7)/1日前的VAR7*1000
当满足条件VAR8<0时,在VAR8和0之间画柱状线
VAR9赋值:VAR8上穿0
如果VAR8<0返回VAR8否则返回0
如果VAR9返回5否则返回0
STICKLINE(VAR8>1日前的VAR8 AND VAR8>0,VAR8,0,1,0),画红色
VAR12:=IF(VAR8>1日前的VAR8 AND VAR8>0,VAR8,0)
VAR13:=100*收盘价*0.95计算的获利盘比例
STICKLINE(VAR13>50 AND 获利盘为85%的成本分布<收盘价 AND VAR8>0,VAR8,0,1,0),画洋红色
输出高度控盘:IF(VAR13>50 AND 获利盘为85%的成本分布<收盘价 AND VAR8>0,VAR8,0),NODRAW,画洋红色
VAR14:=IF(VAR13>50 AND 获利盘为85%的成本分布<收盘价 AND VAR8>0,VAR8,0)
STICKLINE(VAR8<1日前的VAR8 AND VAR8>0,VAR8,0,1,0),画绿色
VAR15:=IF(VAR8<1日前的VAR8 AND VAR8>0,VAR8,0)
VAR16:=IF(VAR8<1日前的VAR8 AND VAR8>0,VAR8,0)
输出控盘选股:VAR16<0.1 AND VAR14>15.79
VAR17:=IF(开盘价=收盘价 AND (收盘价-1日前的收盘价)/1日前的收盘价*100>9.8,成交额,成交额/((最高价-最低价)*2-开盘价-收盘价的绝对值)*(收盘价-最低价))
输出主力买%:VAR17/成交额*100,NODRAW,画红色
VAR18:=收盘价的5日简单移动平均
VAR19:=收盘价的10日简单移动平均
VAR20:=收盘价的20日简单移动平均
VAR21:=收盘价的30日简单移动平均
VAR22:=收盘价的54日简单移动平均
VAR23:=收盘价的60日简单移动平均
VAR24:=收盘价的120日简单移动平均
VAR25:=收盘价的250日简单移动平均
输出半年热度:1/((VAR18+VAR19+VAR20+VAR21+VAR23+VAR24)/6/收盘价)
输出年热度:1/((VAR18+VAR19+VAR20+VAR21+VAR23+VAR24+VAR25)/6/收盘价)