如何修改混沌均線適用于博易大師 [博易POBO]
咨詢內(nèi)容:
圖二顯示錯(cuò)誤的原因
?
?
?
?
VAR:=REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),LINETHICK2;
PARTLINE(VAR<REF(VAR,1),VAR),COLORFF0000,LINETHICK2;
PARTLINE(VAR>REF(VAR,1),VAR),COLOR0000FF,LINETHICK2;
乖離:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-VAR)/VAR,LINETHICK0;
STICKLINE(ABS(乖離)>10,H,L,6,1),COLOR80FFFF;
UP:VAR+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:VAR-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;
<!-- 咨詢內(nèi)容:
N:=1;{可調(diào)整}
A:=VAR(REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),N),LINETHICK2;
{A可自定義其它名稱}
PARTLINE(A<REF(A,1),A),COLORFF0000,LINETHICK2;
PARTLINE(A>REF(A,1),A),COLOR0000FF,LINETHICK2;
乖離:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-A)/A,LINETHICK0;
STICKLINE(ABS(乖離)>10,H,L,6,1),COLOR80FFFF;
UP:A+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:A-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;
MID := EMA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);
PARTLINE(MID>REF(MID,1),MID),COLOR0000FF,LINETHICK2;
?謝謝樓上老師指點(diǎn)
?
關(guān)于混沌均線畫線引導(dǎo)的靜動(dòng)態(tài)轉(zhuǎn)換,兩位老師提示:
1定義動(dòng)態(tài)變量;2靜態(tài)變量轉(zhuǎn)換;3設(shè)計(jì)畫線算法
?
http://y.baidu.com/guzheng
來源 程序化久久網(wǎng)
如何修改混沌均線適用于博易大師
請(qǐng)問如何修改以下代碼,以圖一那樣顯示??圖二顯示錯(cuò)誤的原因
?
?
?
?
VAR:=REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),LINETHICK2;
PARTLINE(VAR<REF(VAR,1),VAR),COLORFF0000,LINETHICK2;
PARTLINE(VAR>REF(VAR,1),VAR),COLOR0000FF,LINETHICK2;
乖離:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-VAR)/VAR,LINETHICK0;
STICKLINE(ABS(乖離)>10,H,L,6,1),COLOR80FFFF;
UP:VAR+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:VAR-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;


附件 :
-->?
?來源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員: 我只能幫你改正錯(cuò)誤,有關(guān)參數(shù)你自己調(diào)整,并且只適用于博易云;N:=1;{可調(diào)整}
A:=VAR(REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),N),LINETHICK2;
{A可自定義其它名稱}
PARTLINE(A<REF(A,1),A),COLORFF0000,LINETHICK2;
PARTLINE(A>REF(A,1),A),COLOR0000FF,LINETHICK2;
乖離:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-A)/A,LINETHICK0;
STICKLINE(ABS(乖離)>10,H,L,6,1),COLOR80FFFF;
UP:A+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:A-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;
MID := EMA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);
PARTLINE(MID>REF(MID,1),MID),COLOR0000FF,LINETHICK2;
?
?
?
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容