求通达信K线过布林线部分变色主图指标
发布网友
发布时间:2022-04-25 13:16
我来回答
共3个回答
热心网友
时间:2023-05-07 01:43
BOLL:MA(CLOSE,20),COLORYELLOW,DOTLINE;
UB:BOLL+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;
LB:BOLL-2*STD(CLOSE,20),COLORMAGENTA,LINETHICK2;
STICKLINE(CROSS(C,BOLL),BOLL,O,3,0)COLORYELLOW;
STICKLINE(CROSS(C,UB),C,UB,3,0)COLORGREEN;
STICKLINE(CROSS(C,LB),O,LB,3,0)COLORMAGENTA;
STICKLINE(H<LB,O,LB,3,0)COLORMAGENTA;追问
你好,有点像了,还有很多不行啊,所有K线过布林三线不分都要变色啊
上顶线部分都要变绿色
下中线部分都要变*
下底线部分都要变紫色
QQ729407132
热心网友
时间:2023-05-07 01:44
通达信K线过布林线部分变色主图指标(经典珍藏版)
{N:1,100,20;M:1,100,32;P1:1,100,80;P2:1,100,100}
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(C,买入) OR (L<买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(C,卖出) OR (H>卖出),HIGH*1.02,'S'),COLORGREEN;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
热心网友
时间:2023-05-07 01:44
可以满足你的要求:
BOLL:MA(CLOSE,20);
UB:BOLL+2*STD(CLOSE,20);
LB:BOLL-2*STD(CLOSE,20);
STICKLINE(CROSS(C,BOLL),C,O,4,0)COLORYELLOW;
STICKLINE(CROSS(C,UB),C,O,4,0)COLORGREEN;
STICKLINE(CROSS(C,LB),C,O,4,0)COLORRED;
QQ;729007139