通达信止损线源码主图贴图

[复制链接]
查看148 | 回复0 | 2021-8-21 01:38:04 | 显示全部楼层 |阅读模式

以下是通达信止损线源码主图贴图(无源码的请下载附件导入)

{止损线画线主图公式通达信}

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 J:=3*K-2*D;
 LC:=REF(CLOSE,1);
 RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
日线止损:(LC*1.0035*97+0.2)/99.65,COLOR03B4EC,NODRAW;
 N:=0.95;
 VAR4:=PEAKBARS(3,15,1)<10;
 VAR5:=IF(VAR4=1,2,0);
顶:= IF(VAR5=2,2,0);
中线卖出:=IF(顶>REF(顶,1),1,0);
止损价:=IF(中线卖出=1, C*N,0), POINTDOT,COLOR00FF00,LINETHICK5;
 

STICKLINE(止损价,C*N,C*N,200,1),COLOR55FF99;
价:C,COLORWHITE,LINETHICK1;
 TT:=BARSCOUNT(C);
 CC:=CLOSE;
 ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT);
 ZZ1:=BETWEEN(C/ZZ,1.05,0.95);
均线:IF(ZZ1=0,MA(C,TT),ZZ),LINETHICK1;
 H1:=MAX(DYNAINFO(3),DYNAINFO(5));
 L1:=MIN(DYNAINFO(3),DYNAINFO(6));
 P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00,LINETHICK1;
支撑:L1+P1*0.5/8,COLORC080FF,LINETHICK1;

652144467.jpg

652144467.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则