通達信波波跟莊家指標公式
通達信指標公式源碼概況:
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 策略
- 畫線方法: 副圖
- 日期:2024-10-15 來源:互聯網
通達信指標公式源碼介紹:
通達信波波跟莊家指標公式:
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK0;
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA)*200,LINETHICK0;
IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORRED;
IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,5,0),COLOR006EFF;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,0,5,0),COLOR009F00;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,MACD,0,2.3,0),COLOR0000DD;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,0,3,0),COLORFF9000;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,1,0),COLOR00C0FF;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,0,1,0),COLOR00E700;
{BIAS畫線突破壓力線買入}
RSV:=(CLOSE-LLV(LOW,3))/(HHV(H,3)-LLV(LOW,3))*50-25;
J:3*SMA(RSV,3,1)-2*SMA(SMA(RSV,3,1),3,1),COLORFF00FF,LINETHICK2;
IF(J<=REF(J,1),J,DRAWNULL),COLORFFFFFF,LINETHICK2;
OBV:=J;
P:=5;
A11:=REF(OBV,P)=HHV(OBV,2*P+1);
B11:=FILTER(A11,P);
C1:=BACKSET(B11,P+1);
D1:=FILTER(C1,P);{高點}
A22:=REF(OBV,P)=LLV(OBV,2*P+1);
B22:=FILTER(A22,P);
C2:=BACKSET(B22,P+1);
D2:=FILTER(C2,P);{低點}
上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;
下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;
向上:CROSS(OBV,上*1.01),NODRAW;
相對能量:(OBV-下)/(上-下)*100,COLORYELLOW,NODRAW;
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
DRAWLINE(D2,OBV,U11,OBV,1),COLOR00FF00;
STICKLINE(C>0,下,下,1,0),COLOR00FF00;
STICKLINE(C>0,上,上,1,0),COLORFF00FF;
DRAWTEXT(CROSS(OBV,上*1.01),上,'上'),COLORYELLOW;
DRAWTEXT(CROSS(下*0.99,OBV),下,'下'),COLORYELLOW;
DRAWICON(D1,OBV,1);
DRAWICON(D2,OBV,2);
通達信波波跟莊家指標公式實例圖解:
通達信波波跟莊家指標公式
通達信指標相關閱讀