通達信布林神奇主圖買賣提示指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 策略
- 畫線方法: 主圖
- 日期:2025-03-03 來源:互聯網
通達信布林神奇主圖買賣提示指標公式:
MID:MA(CLOSE,21),COLORWHITE;
UPPER:MID + 1.96*STD(CLOSE,21),COLORYELLOW;
LOWER:MID - 1.96*STD(CLOSE,21),COLORYELLOW;
UP:MID + 2.58*STD(CLOSE,21),COLORFF00FF;
LOOW:MID - 2.58*STD(CLOSE,21),COLORFF00FF;
{1.96統計學中為95%可信區間,2.58為99%可信區間,故采用1.96和2.58作為參數}
單邊上升:=(C>MID);
單邊下降:=(C<MID);
布林線開口:=UP-LOOW;
多頭行情:=C>MA(C,5) AND MA(C,5)>MA(C,10);
股價在高位:=((C-LLV(C,30))/(HHV(C,30)-LLV(C,30))>0.6);
股價在低位:=((C-LLV(C,30))/(HHV(C,30)-LLV(C,30))<0.4);
布林線縮口:=((UPPER-MID)/MID<0.05);
STICKLINE(單邊上升,MID,UP,6,0),COLOR330066;
STICKLINE(單邊下降,LOOW,MID,6,0),COLOR545454;
DRAWTEXT(布林線縮口,MID,'▲'),COLORWHITE;
STICKLINE((OPEN >= CLOSE),OPEN,CLOSE,5,0),COLORCYAN;
STICKLINE((OPEN >= CLOSE),HIGH,LOW,0,0),COLORCYAN;
STICKLINE((OPEN < CLOSE),OPEN,CLOSE,5,0),COLORRED;
STICKLINE((OPEN < CLOSE),HIGH,LOW,0,0),COLORRED;
MID,COLORWHITE;
UPPER,COLORYELLOW;
LOWER,COLORYELLOW;
UP,COLORFF00FF;
LOOW,COLORFF00FF;
DRAWTEXT(單邊上升 AND REF(C,1)>REF(UP,1) AND C < UP ,UP*1.08,'減倉'),COLOR00FF00;
DRAWTEXT(REF(布林線開口,1)=HHV(布林線開口,20) AND 單邊上升,UP*1.08,'賣出'),COLORWHITE;
空倉:=(CROSS(MID,AMOUNT/V/100));
DRAWTEXT(空倉,UP*1.05,'空倉'),COLORYELLOW;
DRAWTEXT(BARSLAST(布林線縮口)=1 AND C<MA(C,10),UP*1.08,'一輪跌勢起'),COLOR00FF00;
適當建倉:=(單邊上升 AND FILTER(多頭行情,20) AND V>MA(V,3));
DRAWTEXT(適當建倉,LOOW,'適當建倉'),COLORRED;
加倉:=(單邊上升 AND REF(C-MID,1)=LLV(C-MID,5));
DRAWTEXT(加倉 AND BARSLAST(適當建倉)<BARSLAST(空倉),LOOW,'加倉'),COLORFF00FF;
一波行情起:=(BARSLAST(布林線縮口)<=3 AND V>MA(V,3) AND 股價在低位 AND C>REF(C,1) AND C>MA(C,10));
DRAWTEXT(FILTER(一波行情起,5),LOWER,'一波行情起'),COLORRED;
一波跌勢完:=(單邊下降 AND BARSLAST(REF(布林線開口,1)=HHV(布林線開口,50))<=5 AND LOOW>REF(LOOW,1) AND C <MID) AND 股價在低位;
DRAWTEXT(FILTER(一波跌勢完,5),LOWER,'搶反彈');
通達信布林神奇主圖買賣提示指標公式實例圖解:
通達信布林神奇主圖買賣提示指標公式