通达信灵光闪现副图指标 源码 贴图

2024-11-04 11:29:00来源:本站整理浏览:204

通达信灵光闪现副图指标 源码 贴图

通达信灵光闪现副图指标 源码 贴图

通达信灵光闪现副图指标 源码 贴图

VAR1:=1;
VAR4:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100*VAR1;
变速率:(SMA(SMA(VAR4,2,1)+3*VAR1,2,1)-(MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100));
MACD2:=变速率;{公式网WWW.GPXIAZAI.COM}
TJ:=MACD2>0;T:=MACD2<0;
DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW;
DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN;
趋势线: 3*SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5,1),3,1);
天:100,COLOR9F9F5F;
地:-10,COLOR7070DB;
FFD:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
A:=EMA(FFD,3);
B:=EMA(A,2);
E:=3*A-2*B;
LOWV:=LLV(LOW,8);
HIGHV:=HHV(HIGH,8);
A3:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
上:=EMA(A3,3);
下:=EMA(上,2);
A4:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K:=SMA(A4,3,1);
D:=SMA(K,2.5,1);
进:K,COLORMAGENTA;
退:D,COLORGREEN;
DRAWBAND(D,RGB(10,250,10),K,RGB(250,10,10));
DRAWICON(CROSS(K,D),K,1);
DRAWICON(CROSS(D,K),D,2);
A1:=BARSLAST(REF(CROSS(E,B),1));
底:=REF(CLOSE,A1+1)>CLOSE AND E>REF(E,A1+1) AND CROSS(E,B);
A2:=BARSLAST(REF(CROSS(B,E),1));
顶:=REF(CLOSE,A2+1)<CLOSE AND REF(B,A2+1)>B AND CROSS(B,E);
DRAWTEXT(CROSS(96,E) AND (E<=80),75,'回'),COLORFF6EC7;
DRAWTEXT(CROSS(E,1) AND (E<=20),15,'反'),COLORFF8855 ;
DRAWTEXT(底>0,5,'底'),COLORB0C4DE;
DRAWTEXT(顶>0,98,'顶'),COLOR0099FF;
VA:=CROSS(A,50) AND CROSS(B,40);
STICKLINE(VA,71,19,2,0),COLORFF8855;
DRAWTEXT(VA,75,'买'),COLORYELLOW;
VA5:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,22);
STICKLINE(VA5,71,19,2,0),COLORFF0088;
DRAWTEXT(VA5,75,'买'),COLORYELLOW;
VA6:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,35);
STICKLINE(VA6,71,19,2,0),COLORFF0088;
DRAWTEXT(VA6,75,'买'),COLORYELLOW;
VA7:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,45);
STICKLINE(VA7,71,19,2,0),COLORFF0088;
DRAWTEXT(VA7,75,'买'),COLORYELLOW;
VA8:=CROSS(A,50) AND CROSS(B,50) AND CROSS(上,55.3);
STICKLINE(VA8,71,19,2,0),COLORFF0088;
DRAWTEXT(VA8,75,'买'),COLORYELLOW;


 

 

股票公式栏目导航

本类热门

相关公式