分享

绝技:买在谷底,卖在顶峰

 程序化指标 2023-02-20 发布于福建

N1:=6;N2:=12;

VAR2:=REF(LOW,1);

VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;

VAR4:=EMA(VAR3*10,3);

VAR5:=LLV(LOW,13);

VAR6:=HHV(VAR4,13);

VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;

VAR8:=IF(VAR7>500,500,VAR7);

STICKLINE(VAR8>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),0,VAR8,3,0),COLOR00FFFF;

STICKLINE(VAR8>0.1 AND VAR8<1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<ref(kdj.j,2),0,var8,3,0),colorgreen;< span="">

B1:=(CLOSE*VOL)/SUM(VOL,100);

A1:=MA(B1,N1);

CXH1:=SMA(A1,N1,1);

CXH2:=SMA(A1,N2,1);

程序化指标:(CXH1-CXH2)*10000,COLORSTICK,COLOR0000FF,LINETHICK2;

关注:SMA(程序化指标,3,1);

T1:=IF(C>MA(CLOSE,13),1,0);

T2:=IF(C<MA(CLOSE,13),1,0);

T3:=COUNT(IF(程序化指标>0 AND 程序化指标>REF(程序化指标,1),1,0),4)>=4;

T4:=COUNT(IF(程序化指标<0,1,0),5)>=5;

T5:=FILTER(T1 AND T4,20);

T6:=FILTER(T2 AND T3,20);

DRAWTEXT(T5,程序化指标-3,'谷底'),COLORGREEN;

DRAWTEXT(T6,程序化指标+3,'顶峰'),COLORYELLOW;

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多