通达信联合看盘及选股指标(源码)
GV1:=IF(C>O OR (C=O AND C>=REF(C,1)),VOL,0);
GV2:=IF(C<O OR (C=O AND C<REF(C,1)),VOL,0);
GLJ:=SUM(GV1,GLTT)/SUM(GV2,GLTT);
GXG:=COUNT(CROSS(C>=GHJ,0.5),GLTT+1)=1 AND CROSS(C>=GHJ,0.5) AND GLJ>1.5;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
IT:=BARSLAST(CROSS(DEA,DIF));
IHT:=BARSLAST( HHV(DEA,15)=DEA);
IGT:=BARSLAST(IT=0 AND REF(IHT,1)=0 AND DEA>0);
IGM:=REF(DEA,IGT);
IEXT:=DRAWLINE(IGT=0,DEA,IT=0 AND (REF(IGM,1)-DEA)>0.75 AND DEA>0,REF(DEA,IT),1);
IXG:=CROSS(DEA,IEXT);
KN:=30;
KT1:=BARSLAST(H=HHV(H,KN));
KT2:=BARSLAST(L=LLV(L,KN));
KT3:=BARSLAST(VOL=HHV(VOL,KN));
KT4:=BARSLAST(VOL=LLV(VOL,KN));
KHH:=HHV(IF(KT1=0,H,-999),3);
KLL:=LLV(IF(KT2=0,L,999),3);
KVH:=HHV(IF(KT3=0,VOL,-999),3);
KVL:=LLV(IF(KT4=0,VOL,9999999999),3);
KH1:=FINDHIGH(KHH,0,KN,1);
KH2:=FINDHIGH(KHH,0,KN,2);
KH3:=FINDHIGH(KHH,0,KN,3);
KL1:=FINDLOW(KLL,0,KN,1);
KL2:=FINDLOW(KLL,0,KN,2);
KL3:=FINDLOW(KLL,0,KN,3);
KVH1:=FINDHIGH(KVH,0,KN,1);
KVH2:=FINDHIGH(KVH,0,KN,2);
KVH3:=FINDHIGH(KVH,0,KN,3);
KVL1:=FINDLOW(KVL,0,KN,1);
KVL2:=FINDLOW(KVL,0,KN,2);
KVL3:=FINDLOW(KVL,0,KN,3);
KPH:=(KH1+KH2+KH3)/3;
KPL:=(KL1+KL2+KL3)/3;
KPVH:=(KVH1+KVH2+KVH3)/3;
KPVL:=(KVL1+KVL2+KVL3)/3;
KTJ:=KPH/KPL;
KTJ1:=KPVH/KPVL>1.5;
KTJ2:=C>(KPH+KPL)/2 AND C>MA(C,10);
KXG:=CROSS(RANGE(KTJ,1.2,1.3) AND KTJ1,0.5);
QLT:=LLVBARS(L,60);
QLTT:=BARSLAST(CURRBARSCOUNT=CONST(QLT)+1);
QHT:=FINDHIGHBARS(H,QLT+1,60,1);
QTT:=BARSLAST(CURRBARSCOUNT=CONST(QHT)+1);
QT:=BARSLAST(CROSS(C,REF(H,QTT)));
QGL:=C/REF(H,QTT);
QTA:=BARSLAST(QGL=HHV(QGL,QT+1));
QDF:=(C-REF(C,QTA+1))/REF(C,QTA+1)*100;
QJL:=L/REF(H,QTT);
QXG1:=QDF<-8 AND QJL<1.075 AND MIN(C,O)*1.005>=REF(H,QTT);
QXG:=COUNT(QXG1,QT+1)=1 AND QXG1;
联选: XG OR AXG OR BXG OR CXG OR DXG OR EXG OR FXG OR GXG OR KXG OR QXG OR IXG;
}
- 上一篇公式:通达信自由买卖指标(源码)
- 下一篇公式:通达信震荡趋势牛选股指标(源码)