1.通达信 5日线死叉10日先后只显示5日线主公式如何编写 ?
2.帮我写一个简单的日均公式。预警:“当现价触到5日均线”。线变网页简易源码
3.跌破5日线变绿,色公式源ueditor源码配置站上5日线变红的指标公式?
通达信 5日线死叉10日先后只显示5日线主公式如何编写 ?
{ BSJX-变色均线}
M5:MA(C,5),LINETHICK3,COLORGREEN;
M:=MA(C,);
IF(M5>M,M5,DRAWNULL),LINETHICK3,COLORRED;
IF(M5<M,M5,DRAWNULL);
不妨这样。{ 个人看法,码日打开zxing源码仅供参考。}
帮我写一个简单的均线thinkphp互助源码公式。预警:“当现价触到5日均线”。变色奖励源码 asp
万手:VOL/,指标LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*/FROMOPEN,DRAWNULL);
预测:AA/;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/,COLORRED;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/,COLORGREEN;
差额:(主动买+主动卖)/;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLORFFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLORBBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLORDDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLORFFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;
STICKLINE(主动买>=0,VOL,-主动卖,3.2,0),COLOR;
STICKLINE(主动买>=0,VOL,-主动卖,2.7,0),COLOR;
STICKLINE(主动买>=0,VOL,-主动卖,2.1,0),COLOR;
STICKLINE(主动买>=0,VOL,-主动卖,1.5,0),COLORCC;
STICKLINE(主动买>=0,VOL,-主动卖,0.9,0),COLORFF;
STICKLINE(主动买>=0,VOL,-主动卖,0.2,0),COLORCCFF;
STICKLINE(主动卖<=0,0,-主动卖,3.2,0),COLOR;
STICKLINE(主动卖<=0,0,-主动卖,2.7,0),COLORCC;
STICKLINE(主动卖<=0,0,-主动卖,2.1,0),COLORFF;
STICKLINE(主动卖<=0,0,-主动卖,1.5,0),COLORFF;
STICKLINE(主动卖<=0,0,-主动卖,0.9,0),COLORFFCC;
STICKLINE(主动卖<=0,0,-主动卖,0.2,0),COLORCYAN;
持币:IF(SAR(,2,)>=H,SAR(,2,),DRAWNULL),CIRCLEDOT,COLORBLUE;
持股:IF(SAR(,2,)<=L,SAR(,2,),DRAWNULL),CIRCLEDOT,COLORRED; WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘:=(V9+V8);
卖盘:=(V6+V7);
买卖差:=买盘-卖盘;
DDX:=买卖差;
DX:=MA(买卖差,5)*;
DDX1:SMA(DX,3,1),COLORFFFFFF;
DDX2:SMA(DDX1,3,1),COLORFFFF;
DDX3:(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/; 预警:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK;
天:=COUNT(DDX>0,5),COLORRED;
DRAWTEXT(预警,DDX*1.,'★'),LINETHICK3,COLORFFFF;
-------------------------------------------------------------------------------------------
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘:=(V9+V8);
卖盘:=(V6+V7);
买卖差:=买盘-卖盘;
DDX:=买卖差;
DX:=MA(买卖差,5)*;
N:=5;
M:=;
N日内净流入:=SUM(DDX,N)*3;
RSI1:=N日内净流入;
AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);
BB:=BACKSET(AA,N+1);
CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);
A1:=BARSLAST(REF(CC,1));
AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);
A2:=BARSLAST(REF(CC2,1));
STICKLINE(DDX<0,0,DDX,4,0),COLORFF;
STICKLINE(DDX<0,0,DDX,3,0),COLORFF;
STICKLINE(DDX<0,0,DDX,1.5,0),COLORFFCC;
STICKLINE(DDX<0,0,DDX,0,0),COLORCCFF;
STICKLINE(DDX>0,0,DDX,4,0),COLOR;
STICKLINE(DDX>0,0,DDX,3,0),COLORCC;
STICKLINE(DDX>0,0,DDX,1.5,0),COLORFF;
STICKLINE(DDX>0,0,DDX,0,0),COLORCCFF;
DDX1:SMA(DX,3,1),COLORFFFFFF;
DDX2:SMA(DDX1,3,1),COLORFFFF;
DDX3:(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/;
--------------------------------------------------------------------------------
A:=MA(H,1);
B:=MA(C,5);
CROSS(A,B);
跌破5日线变绿,站上5日线变红的指标公式?
条件:跌破5日线变绿,站上5日线变红公式代码:
MA5:MA(C,5) COLORGREEN;
IF(C>MA5,MA5,DRAWNULL)COLORRED;
效果图