{背景颜色}
DRAWGBKLAST(CLOSE>0,STRIP(RGB(55,75,55),RGB(10,10,20),0));
DRAWRECTREL(0,10,200,1000,rgb(0,0,255)),layer0;
{公式程式}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趋势:(A1+A2+A3+A4+A5+A6)/6*100,Color00FF00;
趋势1:ref(趋势,2),linethick0;
主升浪:趋势>=50,COLOR0000FF,POINTDOT,LINETHICK0;
↓:趋势 REF(趋势,1);
QS4:=趋势< 50 and 趋势= REF(趋势,1);
QS5:=趋势< 50 and 趋势< REF(趋势,1);
IF BARSTATUS=2 AND QS0 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 势强 佳’),colorred,layer0;
END
ELSE
IF BARSTATUS=2 AND QS1 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 趋势强 佳’),colorred,layer0;
END
ELSE
IF BARSTATUS=2 AND QS2 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 趋势下 获利了结’),colorgreen,layer0;
END
ELSE
IF BARSTATUS=2 AND QS3 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 趋势上升 可进场’),colorred,layer0;
END
ELSE
IF BARSTATUS=2 AND QS4 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 趋势平 观望’),coloryellow,layer0;
END
ELSE
IF BARSTATUS=2 AND QS5 THEN BEGIN
DRAWTEXTREL(25,70,’ ● 趋势下跌 不进场’),colorgreen,layer0;
END
ZSL1:=主升浪>=1 and REF(主升浪,1)>=1;
ZSL2:=主升浪>=1 and REF(主升浪,1)=0;
ZSL3:=主升浪=0 ;
IF BARSTATUS=2 AND ZSL1 THEN BEGIN
DRAWTEXTREL(25,250,’ ● 来了 第 ‘+NUMTOSTRN(周期,0)+’ 浪’),colorRED,layer0;
END
ELSE
IF BARSTATUS=2 AND ZSL2 THEN BEGIN
DRAWTEXTREL(25,250,’ ● 来了 第 1 浪’),colorRED,layer0;
END
ELSE
IF BARSTATUS=2 AND ZSL3 THEN BEGIN
DRAWTEXTREL(25,250,’ ● 走了 再等下一浪!’),colorgreen,layer0;
END
WK1:=挖坑 >=1 ;
WK2:=挖坑 =1;
临界2:=临界
【股票知识干货】【大智慧】趋势吸庄指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。