|
各位老师这个文华指标麻烦给改成盘立方的;谢谢,就是给MACD加上顶底横线;
DRAWKLINE(0.75,RGB(251,83,83),1,RGB(0,168,0),1);//K线
ADIFF := EMA(CLOSE,12) - EMA(CLOSE,26),NOTEXT;
ADEA : =EMA(ADIFF,9),NOTEXT;
AT1:=BARSLAST(CROSS(ADIFF,ADEA))+1;
ATT1:=HHVBARS(H,AT1)+1;
ATTT1:=BACKSET(CROSSDOWN(ADIFF,ADEA),ATT1);
AQ1:=BARSLAST(CROSSDOWN(ADIFF,ADEA))+1;
AQQ1:=LLVBARS(L,AQ1)+1;
AQQQ1:=BACKSET(CROSS(ADIFF,ADEA),AQQ1);
HH1:=VALUEWHEN(CROSS(ATTT1,0.5),H);//
LL1:=VALUEWHEN(CROSS(AQQQ1,0.5),H);
HH2:=VALUEWHEN(CROSS(ATTT1,0.5),L);//
LL2:=VALUEWHEN(CROSS(AQQQ1,0.5),L);
HH:=(HH1+HH2)/2;
LL:=(LL1+LL2)/2;
DRAWSL(1,HH,0,1,0,COLORMAGENTA);
DRAWSL(1,LL,0,1,0,COLORGREEN); |
|