分享一个电脑移植到手机上的指标

电脑上用通达信,手机自然也要下载通达信

开始制作

1.

2.指标编辑》新建指标

3.起个公式名,主图叠加,点右上角

4.粘贴代码,测试成功,保存

买J:=45;

卖J:=87;

信号天数:=100;

{均线}

五:EMA(C,5);

十五:EMA(C,15);

三十:EMA(C,30);

六十:EMA(C,60);

半年:EMA(C,120);

{MACD+5日}

S1:=(EMA(CLOSE,12)+EMA(CLOSE,26))/2;

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

IF( DIF>REF(DIF,1)

AND DIF>REF(DIF,2)

AND DIF>REF(DIF,3)

AND S1>REF(S1,1)

AND S1>REF(S1,2)

AND DIF>0

AND DIF>0 AND EMA(CLOSE,80)>REF(EMA(CLOSE,80),1)

,EMA(CLOSE,5),DRAWNULL)COLORRED LINETHICK5;

IF( DIF<REF(DIF,1)

AND DIF<REF(DIF,2)

AND DIF<REF(DIF,3)

AND S1<REF(S1,1)

AND S1<REF(S1,2)

AND DIF<0

,EMA(CLOSE,5),DRAWNULL)COLORFFFF00 LINETHICK4;

牛熊分界:EMA(C,250),LINETHICK3,COLORRED;

{这是买入信号KDJ+CCI同向原理}

X1:=(KDJ.J+(KDJ.J-REF(KDJ.J,1)))>KDJ.D AND KDJ<买J;X2:=REF(CCI,1)<CCI;

X3:=FILTER(X1 AND X2,5);

DRAWICON(X3 AND CURRBARSCOUNT<信号天数,L*0.995,1);{CURRBARSCOUNT是多少天内有效}

{KDJ+CCI卖出信号}

Y1:=KDJ.J>卖J AND REF(KDJ.J,1)>=KDJ.J AND REF(CCI,1)>=CCI;

DRAWICON(FILTER(Y1,5) AND CURRBARSCOUNT<信号天数,H*1.01,2);

{买点9步根踪}

B:=DRAWTEXT(X3,LOW,'*');LS0:=BARSLAST(B);

LS11:=IF(1,LS0=1,B);LS21:=IF(1,LLV(L,1)>REF(L,1),1);B1:=LS11 AND LS21;

LS12:=IF(2,LS0=2,B);LS22:=IF(2,LLV(L,2)>REF(L,2),1);B2:=LS12 AND LS22;

LS13:=IF(3,LS0=3,B);LS23:=IF(3,LLV(L,3)>REF(L,3),1);B3:=LS13 AND LS23;

十日:=EMA(C,10);

DRAWTEXT(B1 AND CURRBARSCOUNT<信号天数,L*0.98,'1'),COLORFF00FF;

DRAWTEXT(B2 AND CURRBARSCOUNT<信号天数,L*0.98,'2'),COLORFF00FF;

DRAWTEXT(B3 AND CURRBARSCOUNT<信号天数,L*0.98,'3'),COLORFF00FF;

{单阳战法}

阳涨幅:=3.5;阳倍量:=1.9;单阳收:=C;单阳开:=O;

单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;

高不破价:=REF(C,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));

单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<10 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);

STICKLINE(单阳,单阳开,单阳收,2.5,0),COLORRED;

最后选择主图。

(0)

相关推荐