同花顺狂奔短线公式
-
相关简介:同花顺狂奔短线公式 源码 ★狂:STRLEFT('奔★',10),colormagenta; 收:=MA(CLOSE,1); UPPER :(1+N2/100)* MA(CLOSE,N1),colorwhite; LOWER :(1-N3/100)*MA(CLOSE,N1),coloryellow; ENE:(UPPER+LOWER)/2,colorligreen; 超买a:=(1+N4/100)* MA(CLOSE,N1),colorwhite; 超卖a:=(1-N5/100)*MA(CLOS
-
文章来源:股海网作者:股海网发布时间:2015-09-27浏览次数:
同花顺狂奔短线公式
源码
★狂:STRLEFT('奔★',10),colormagenta;
收:=MA(CLOSE,1);
UPPER :(1+N2/100)* MA(CLOSE,N1),colorwhite;
LOWER :(1-N3/100)*MA(CLOSE,N1),coloryellow;
ENE:(UPPER+LOWER)/2,colorligreen;
超买a:=(1+N4/100)* MA(CLOSE,N1),colorwhite;
超卖a:=(1-N5/100)*MA(CLOSE,N1),coloryellow;
超买:IF(CLOSE>UPPER AND CLOSE>UPPER,超买a,DRAWNULL),colorred,LINETHICK2;
超卖:IF(CLOSE<LOWER AND CLOSE<UPPER,超卖a,DRAWNULL),colorgreen,LINETHICK2;
B:=(CROSS(收,超卖a))OR(CROSS(收,LOWER))OR(CROSS(收,ENE));
S:=(CROSS(超卖a,收))OR(CROSS(UPPER,收))OR(CROSS(ENE,收));
bm:=BARSLAST(b);
sm:=BARSLAST(s);
bm1:=IF(bm[1]=-1 AND b,1,IF(bm[1]!=-1
AND sm[1]!=-1 AND bm[1]>sm[1] AND b AND b[1]=0,1,0));
sm1:=IF(sm[1]=-1 AND bm[1]!=-1 AND s,1,
IF( sm[1]!=-1 AND bm[1]!=-1 AND sm[1]>bm[1] AND s AND s[1]=0,1,0));
买a:=(bm1>0),colorred;
买:IF(买a,B,DRAWNULL),colorlired;
DRAWICON(买,LOWER,'buy');