通達信炒股不要太簡單5主圖指標(biāo)公式
- 指標(biāo)類別: 通達信指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 均線
- 畫線方法: 主圖
- 日期:2023-11-22 來源:互聯(lián)網(wǎng)
通達信炒股不要太簡單5主圖指標(biāo)公式:
STICKLINE(1,H,L,6,0),COLORBLACK;
周期1:SUMBARS(VOL,CAPITAL/4),COLORWHITE,NODRAW;
周期2:SUMBARS(VOL,CAPITAL/2),COLORYELLOW,NODRAW;
周期3:SUMBARS(VOL,CAPITAL),COLORRED,NODRAW;
轉(zhuǎn)向價格幅度:HHV(ABS(C/REF(C,1)*100-100),(周期1+周期2+周期3)/3),COLORGREEN,NODRAW;
之轉(zhuǎn)向線:=ZIG(3,轉(zhuǎn)向價格幅度);
上一次波峰值:=PEAK(3,轉(zhuǎn)向價格幅度,1);
上一次波谷值:=TROUGH(3,轉(zhuǎn)向價格幅度,1);
上一次波峰位置:=PEAKBARS(3,轉(zhuǎn)向價格幅度,1);
上一次波谷位置:=TROUGHBARS(3,轉(zhuǎn)向價格幅度,1);
BG:=CONST(上一次波谷位置);
BF:=CONST(上一次波峰位置);
目前所處趨勢:=IF(上一次波谷位置<上一次波峰位置,1,0);
轉(zhuǎn)向達成:=IF(目前所處趨勢=1,上一次波谷值*(1+轉(zhuǎn)向價格幅度/100),上一次波峰值*(1-轉(zhuǎn)向價格幅度/100)),COLORRED,NODRAW;
向上達成:=CONST(EXIST(C>轉(zhuǎn)向達成,BG));
向下達成:=CONST(EXIST(C<轉(zhuǎn)向達成,BF));
預(yù)判價:IF(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向上達成<1,上一次波谷值*(1+轉(zhuǎn)向價格幅度*0.382/100),
IF(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向下達成<1,上一次波峰值*(1-轉(zhuǎn)向價格幅度*0.382/100),DRAWNULL)),COLORMAGENTA,DOTLINE;
糾錯價:IF(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向上達成<1,上一次波谷值,
IF(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向下達成<1,上一次波峰值,DRAWNULL)),COLORLIBLUE,DOTLINE;
確認(rèn)價:IF(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向上達成<1,轉(zhuǎn)向達成,
IF(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND CURRBARSCOUNT<=MIN(BF,BG) AND 向下達成<1,轉(zhuǎn)向達成,DRAWNULL)),COLORRED,DOTLINE;
動態(tài)高點:IF(CURRBARSCOUNT<=MAX(BG,BF),REF(HHV(H,IF(周期1<2,2,周期1)),1),DRAWNULL),COLORBLUE,DOTLINE;
動態(tài)低點:IF(CURRBARSCOUNT<=MAX(BG,BF),REF(LLV(L,IF(周期1<2,2,周期1)),1),DRAWNULL),COLORBLUE,DOTLINE;
近期成本均線:=MA(C,周期1),COLORGREEN;
中期成本均線:=MA(C,周期2),COLORWHITE;
長期成本均線:=MA(C,周期3),COLORYELLOW;
ZQ1:=CONST(周期1);
ZQ2:=CONST(周期2);
ZQ3:=CONST(周期3);
STICKLINE(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1),H,L,0,1),COLORLIRED;
STICKLINE(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1),O,C,2,1),COLORLIRED;
STICKLINE(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND C>O,O,C,2,0),COLORLIRED;
STICKLINE(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1),H,L,0,1),COLORCYAN;
STICKLINE(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1),O,C,2,1),COLORCYAN;
STICKLINE(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND C<O,O,C,2,0),COLORCYAN;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1,H,L,0,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1 AND C>O,O,C,2,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1 AND C<O,O,C,2,1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1 AND C>預(yù)判價,H,L,0,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1 AND C>O AND C>預(yù)判價,O,C,2,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=BG AND 向上達成<1 AND C<O AND C>預(yù)判價,O,C,2,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=BF AND 向下達成<1,H,L,0,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT<=BF AND 向下達成<1 AND C>O,O,C,2,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT<=BF AND 向下達成<1 AND C<O,O,C,2,0),COLORGREEN;
STICKLINE(C>近期成本均線 AND 近期成本均線>中期成本均線 AND 中期成本均線>長期成本均線,MAX(O,C),(O+C)/2,2.3,0),COLORRED;
STICKLINE(C<近期成本均線 AND 近期成本均線<中期成本均線 AND 中期成本均線<長期成本均線,MIN(O,C),(O+C)/2,2.3,0),COLORBLUE;
均線1:MA(C,ZQ1),COLORWHITE;
均線2:MA(C,ZQ2),COLORYELLOW;
均線3:MA(C,ZQ3),COLORRED,DOTLINE;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND 向上達成<1,轉(zhuǎn)向達成,CON2STR(轉(zhuǎn)向達成,2)),COLORRED;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND 向下達成<1,轉(zhuǎn)向達成,CON2STR(轉(zhuǎn)向達成,2)),COLORRED;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND 向上達成<1,預(yù)判價,CON2STR(預(yù)判價,2)),COLORWHITE;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND 向下達成<1,預(yù)判價,CON2STR(預(yù)判價,2)),COLORWHITE;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND 向上達成<1,糾錯價,CON2STR(糾錯價,2)),COLORLIBLUE;
DRAWTEXT(ISLASTBAR AND 之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND 向下達成<1,糾錯價,CON2STR(糾錯價,2)),COLORLIBLUE;
DRAWTEXT_FIX(1,0.3,0.5,0,'用到未來函數(shù),信號會漂移,僅供學(xué)習(xí)交流,不作操作建議,底下有底,謹(jǐn)慎抄底!。〔蛔x源碼者禁用。。。。。'),COLORMAGENTA;
DRAWICON(之轉(zhuǎn)向線>REF(之轉(zhuǎn)向線,1) AND CROSS(C,預(yù)判價),L*0.97,7);{不喜可刪}
DRAWICON(之轉(zhuǎn)向線<REF(之轉(zhuǎn)向線,1) AND CROSS(預(yù)判價,C),H*1.02,8);{不喜可刪};
通達信炒股不要太簡單5主圖指標(biāo)公式實例圖解:
通達信炒股不要太簡單5主圖指標(biāo)公式