麻煩老師修改一下謝謝你 [博易POBO]
咨询内容:
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
A:=BACKSET(ISLASTBAR,MIN(N1,N2));
HH:=BACKSET(REFX(SC,1),HHVBARS(MACD,N1));
LL:=BACKSET(REFX(JC,1),LLVBARS(MACD,N2));
STICKLINE(NOT(A)&&MACD>0&&NOT(HH=1),0,MACD,COLORRED,0);
STICKLINE(NOT(A)&&MACD>0&&HH=1,0,MACD,COLORRED,0);
STICKLINE(NOT(A)&&MACD<0&&NOT(LL=1),0,MACD,COLORGREEN,0);
STICKLINE(NOT(A)&&MACD<0&&LL=1,0,MACD,COLORGREEN,0);
DI:=ABS(MACD)<REF(ABS(MACD),1)&&ABS(MACD)<REFX(ABS(MACD),1);
DING:=ABS(MACD)>REF(ABS(MACD),1)&&ABS(MACD)>REFX(ABS(MACD),1);
HH1:=BACKSET(DI||ISLASTBAR&&BARSLAST(DING)<BARSLAST(DI),BARSLAST(DING));
STICKLINE(A&&MACD>0,0,MACD,COLORRED,0);
STICKLINE(A&&MACD>0&&REF(MACD>0,1)&&HH1,0,MACD,COLORGREEN,0);
STICKLINE(A&&MACD<0,0,MACD,COLORGREEN,0);
STICKLINE(A&&MACD<0&&REF(MACD<0,1)&&HH1,0,MACD,COLORGREEN,0);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
A:=BACKSET(ISLASTBAR,MIN(N1,N2));
HH:=BACKSET(REFX(SC,1),HHVBARS(MACD,N1));
LL:=BACKSET(REFX(JC,1),LLVBARS(MACD,N2));
STICKLINE(NOT(A)&&MACD>0&&NOT(HH=1),0,MACD,10,0),COLORRED;
STICKLINE(NOT(A)&&MACD>0&&HH=1,0,MACD,10,0),COLORRED;
STICKLINE(NOT(A)&&MACD<0&&NOT(LL=1),0,MACD,10,0),COLORGREEN;
STICKLINE(NOT(A)&&MACD<0&&LL=1,0,MACD,10,0),COLORGREEN;
DI:=ABS(MACD)<REF(ABS(MACD),1)&&ABS(MACD)<REFX(ABS(MACD),1);
DING:=ABS(MACD)>REF(ABS(MACD),1)&&ABS(MACD)>REFX(ABS(MACD),1);
HH1:=BACKSET(DI||ISLASTBAR&&BARSLAST(DING)<BARSLAST(DI),BARSLAST(DING));
STICKLINE(A&&MACD>0,0,MACD,10,0),COLORRED;
STICKLINE(A&&MACD>0&&REF(MACD>0,1)&&HH1,0,MACD,10,0),COLORGREEN;
STICKLINE(A&&MACD<0,0,MACD,10,0),COLORGREEN;
STICKLINE(A&&MACD<0&&REF(MACD<0,1)&&HH1,0,MACD,10,0),COLORGREEN; 来源 程序化久久网
麻煩老師修改一下謝謝你
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
A:=BACKSET(ISLASTBAR,MIN(N1,N2));
HH:=BACKSET(REFX(SC,1),HHVBARS(MACD,N1));
LL:=BACKSET(REFX(JC,1),LLVBARS(MACD,N2));
STICKLINE(NOT(A)&&MACD>0&&NOT(HH=1),0,MACD,COLORRED,0);
STICKLINE(NOT(A)&&MACD>0&&HH=1,0,MACD,COLORRED,0);
STICKLINE(NOT(A)&&MACD<0&&NOT(LL=1),0,MACD,COLORGREEN,0);
STICKLINE(NOT(A)&&MACD<0&&LL=1,0,MACD,COLORGREEN,0);
DI:=ABS(MACD)<REF(ABS(MACD),1)&&ABS(MACD)<REFX(ABS(MACD),1);
DING:=ABS(MACD)>REF(ABS(MACD),1)&&ABS(MACD)>REFX(ABS(MACD),1);
HH1:=BACKSET(DI||ISLASTBAR&&BARSLAST(DING)<BARSLAST(DI),BARSLAST(DING));
STICKLINE(A&&MACD>0,0,MACD,COLORRED,0);
STICKLINE(A&&MACD>0&&REF(MACD>0,1)&&HH1,0,MACD,COLORGREEN,0);
STICKLINE(A&&MACD<0,0,MACD,COLORGREEN,0);
STICKLINE(A&&MACD<0&&REF(MACD<0,1)&&HH1,0,MACD,COLORGREEN,0);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
A:=BACKSET(ISLASTBAR,MIN(N1,N2));
HH:=BACKSET(REFX(SC,1),HHVBARS(MACD,N1));
LL:=BACKSET(REFX(JC,1),LLVBARS(MACD,N2));
STICKLINE(NOT(A)&&MACD>0&&NOT(HH=1),0,MACD,10,0),COLORRED;
STICKLINE(NOT(A)&&MACD>0&&HH=1,0,MACD,10,0),COLORRED;
STICKLINE(NOT(A)&&MACD<0&&NOT(LL=1),0,MACD,10,0),COLORGREEN;
STICKLINE(NOT(A)&&MACD<0&&LL=1,0,MACD,10,0),COLORGREEN;
DI:=ABS(MACD)<REF(ABS(MACD),1)&&ABS(MACD)<REFX(ABS(MACD),1);
DING:=ABS(MACD)>REF(ABS(MACD),1)&&ABS(MACD)>REFX(ABS(MACD),1);
HH1:=BACKSET(DI||ISLASTBAR&&BARSLAST(DING)<BARSLAST(DI),BARSLAST(DING));
STICKLINE(A&&MACD>0,0,MACD,10,0),COLORRED;
STICKLINE(A&&MACD>0&&REF(MACD>0,1)&&HH1,0,MACD,10,0),COLORGREEN;
STICKLINE(A&&MACD<0,0,MACD,10,0),COLORGREEN;
STICKLINE(A&&MACD<0&&REF(MACD<0,1)&&HH1,0,MACD,10,0),COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容