`
LIJIN1:=144;LIJIN2:=169;DEMAA:2EMA(CLOSE,144)-EMA(EMA(CLOSE,144),144),COLORRED;DEMAB:2EMA(CLOSE,169)-EMA(EMA(CLOSE,169),169),COLORGREEN;DRAWICON(CROSS(DEMAA,DEMAB),DEMAA,5);LIJIN3:=34;LIJIN4:=3;LIJIN5:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));LIJIN6:=EMA(LIJIN5,LIJIN3);LIJIN7:=(HIGH+LOW)/2;LIJIN8:=LIJIN7+LIJIN6LIJIN4;LIJIN9:=LIJIN7-LIJIN6LIJIN4;LIJIN10:=BARSLAST(CLOSE>=REF(LLV(LIJIN7+LIJIN61.4,3),1));LIJIN11:=BARSLAST(CLOSE<=REF(HHV(LIJIN7-LIJIN61.7,3),1));LIJIN12:=BARSLAST(CLOSE>=REF(HHV(LIJIN7+EMA(LIJIN5,LIJIN3),3),1));LIJIN13:=HHV(LIJIN7-LIJIN6*1.5,LIJIN12+1);LIJIN14:=COUNT(CROSS(LIJIN13,CLOSE),3)>=1 AND LIJIN11>LIJIN10;LIJIN15:=CLOSE>LIJIN13 AND LIJIN11>LIJIN10 OR (COUNT(CROSS(LIJIN13,CLOSE),3)>=1 AND LIJIN11>LIJIN10);{MADE BY ljdjg
}IF(LIJIN15>0,HHV((HIGH+LOW)/2-LIJIN6LIJIN4,10),DRAWNULL),COLORRED;IF(LIJIN15=0,LLV((HIGH+LOW)/2+LIJIN6LIJIN4,10),DRAWNULL),COLORGREEN;B1:STICKLINE(LIJIN15>0 AND HIGH>MAX(CLOSE,OPEN),HIGH,MAX(CLOSE,OPEN),0,0),COLORRED;B2:STICKLINE(LIJIN15>0 AND LOW<MIN(CLOSE,OPEN),LOW,MIN(CLOSE,OPEN),0,0),COLORRED;B3:STICKLINE(LIJIN15>0 AND CLOSE>=OPEN,CLOSE,OPEN,2,1),COLORRED;B4:STICKLINE(LIJIN15>0 AND CLOSE<=OPEN,CLOSE,OPEN,2,0),COLORRED;LIJIN16:=B1 OR B2 OR B3 OR B4;S1:STICKLINE(LIJIN15=0 AND HIGH>MAX(CLOSE,OPEN),HIGH,MAX(CLOSE,OPEN),0,0),COLORGREEN;S2:STICKLINE(LIJIN15=0 AND LOW<MIN(CLOSE,OPEN),LOW,MIN(CLOSE,OPEN),0,0),COLORGREEN;S3:STICKLINE(LIJIN15=0 AND CLOSE>=OPEN,CLOSE,OPEN,2,1),COLORGREEN;S4:STICKLINE(LIJIN15=0 AND CLOSE<=OPEN,CLOSE,OPEN,2,0),COLORGREEN;LIJIN17:=S1 OR S2 OR S3 OR S4;LIJIN18:=HHV((HIGH+LOW)/2-LIJIN6LIJIN4,10) AND CLOSE>DEMAA AND CLOSE>DEMAB AND LIJIN16 AND DEMAA>DEMAB;LIJIN19:=LLV((HIGH+LOW)/2+LIJIN6LIJIN4,10) AND CLOSE<DEMAA AND CLOSE<DEMAB AND LIJIN17 AND DEMAA<DEMAB;DRAWICON(LIJIN18,HIGH,1);DRAWICON(LIJIN19,LOW,2);
`

用的是两个指标的组合,一个是DEMA双重均线指数,一个是超级趋势,把源码翻译改成了通达信,大概用法是日线红线金叉绿线而且超级趋势也向上的时候,K线有向上箭头,配合交易量开始做多,卖出以30分钟出现绿K线卖出,变回红K线继续买入,直到30分钟红线死叉绿线,简单明了,可以配合各位原来手上的指标,完善你们的交易系统。

最后修改:2024 年 12 月 17 日
如果觉得我的文章对你有用,请随意赞赏