公式网-网站导航


网站搜索:  

公式在线网 发表于2015/9/27 6:38:36

同花顺狂奔短线公式

同花顺狂奔短线公式

源码

★狂: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');
 

 

同花顺狂奔短线公式



网站搜索:  



Copyright © 2009-2010 gszb.com ™,All Rights Reserved. 
公式网-www.gszx.com.cn-股票指标公式网