通達信boll寶塔線公式源碼,用於下跌行情搶反彈

佈林線和寶塔線是股票操作中經常用到的兩種指標,關於這兩種指標的原理和使用方法,操作者可以到網上查找相關資料進行瞭解,下面將介紹一種利用佈林線和寶塔線相結合進行快進快出的超跌反彈操作方法:

1、佈林寶塔線公式源碼:

為瞭方便操作,把佈林線和寶塔線整合到一起,形成佈林寶塔線,源代碼如下:
N:=26;
P:=2;
MID:MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID – P*STD(CLOSE,N);

{DRAWGBK(c,STRIP(RGB(100,50,0),RGB(100,100,0),0));}
var1:=CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2);
var2:=REF(var1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var3:=REF(var2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var4:=REF(var3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var5:=REF(var4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var6:=REF(var5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var7:=REF(var6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var8:=REF(var7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var9:=REF(var8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
varA:=REF(var9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
varB:=REF(varA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
varC:=REF(varB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
STICKLINE(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7OR
var8 OR var9 OR varA OR varB ORvarC,CLOSE,REF(CLOSE,1),6,1),COLORRED;{紅1}
varD:=CLOSE<REF(CLOSE,1) ANDCLOSE<REF(CLOSE,2);
varE:=REF(varD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
varF:=REF(varE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var10:=REF(varF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var11:=REF(var10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var12:=REF(var11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var13:=REF(var12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var14:=REF(var13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var15:=REF(var14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var16:=REF(var15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
var17:=REF(var16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);
var18:=REF(var17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);
STICKLINE(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13OR
var14 OR var15 OR var16 OR var17 ORvar18,CLOSE,REF(CLOSE,1),6,0),COLORFFCC66;
var19:=REF(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13OR
var14 OR var15 OR var16 OR var17 OR var18,1) AND var1;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),6,1),COLORYELLOW;
var1A:=REF(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7OR
var8 OR var9 OR varA OR varB OR varC,1) AND varD;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),6,2),Color00ff00{98FD};
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00ffff;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR00c8ff;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR10ecff;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ffff;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR10f0ff;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00d900;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR93ffd1;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR93ff22;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR24ff22;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090ff2;

2、使用方法:
寶塔線跌破佈林線下軌出現雙平底買入,第二日不管漲跌都賣出,快進快出,一般都有2%以上的收益,成功率90%以上。一般股價處於下降趨勢中出現的機會比較多。在股票操作中,上升通道以賺錢為主,風險防范為輔,可中長線持股;下降通道以風險防范為主,賺錢為輔,持幣多餘持股,此時可按照該方法進行快進快出操作。

3、舉例:
上海九百600838,2008年3月19日出現寶塔線跌破佈林線下軌後出現雙平底,於當日以收盤價8.04買入,次日收盤8.34賣出,一天漲幅3.73%;2008年4月3日出現寶塔線跌破佈林線下軌後出現雙平底,於當日以收盤價6.45買入,次日收盤6.79賣出,一天漲幅5.27%
通達信boll寶塔線公式源碼,用於下跌行情搶反彈,拾荒網
類似的例子很多,有興趣的操作者可以到行情軟件中翻看。

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *