通达信红绿反扣副图源码

[复制链接]
查看111 | 回复0 | 2021-8-19 14:41:29 | 显示全部楼层 |阅读模式

以下是通达信红绿反扣副图源码(无源码的请下载附件导入)

{红绿反扣  有心就有好运!}

 
N:=6;
LTA:=FINANCE(7)+300000000;

 
KL:=1;
DIF:=EMA(CLOSE,20)-EMA(CLOSE,5);
DEA:=EMA(DIF,10);
MACD:=300*(DIF-DEA)*2/EMA(C,30);
VARA:=EMA(REF(CLOSE,1),4); 
青山:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100); 
绿水:=青山 < 3.5,COLORDBDBDB;
火红的:=FILTER(MACD < 0 AND MACD > REF(MACD,1) AND 青山 < 20,5);
太阳:=CROSS(青山,90),COLOR00FF00;

 

 
{DRAWBAND(12000*KL,RGB(200,00,130),0,DRAWNULL);}
STICKLINE(1,12000*KL,0,5,0),COLOR8800CC;
DD:=IF(MACD > =0,MACD,DRAWNULL)*1.5;
STICKLINE(DD AND DD > REF(DD,1),0,DD*80*KL,4,0),COLOR0000FF;
STICKLINE(DD AND DD < REF(DD,1),0,DD*80*KL,3,1),COLOR0000FF;

 

 
(青山-25)*150*KL,COLOR5BE000,LINETHICK6;
STICKLINE((青山-25)*1.5 > 0,0,(青山-25)*150*KL,4,0),COLOR5BE000;
STICKLINE(青山,0,-5000*KL,4,0),COLOR88CC00;

 
DRAWBAND(0,RGB(00,180,120),-5000*KL,DRAWNULL);
ZJ2:=V/((H-L)*2-ABS(C-O));
ZJ3:=IF(C > O,ZJ2*(H-L),IF(C < O,ZJ2*(H-O+(C-L)),V/2))+IF(C > O,0-ZJ2*(H-C+(O-L)),IF(C < O,0-ZJ2*(H-L),0-V/2));
攻击流量:=ZJ3/20/1.15;
ZJ5:=攻击流量*0.55+REF(攻击流量,1)*0.33+REF(攻击流量,2)*0.22;
日流量:=EMA(ZJ5,3);
STICKLINE(C > 0 AND 日流量 > =0,日流量,0,2,0),COLORFF38FF;
STICKLINE(C > 0 AND 日流量 < =0,日流量,0,2,0),COLORFA3300;
AR1:=LLV(LOW,10);
AR2:=HHV(H,25);
AR3:=EMA((C-AR1)/(AR2-AR1)*4,4);
红红的天:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)
-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
IF(CROSS(红红的天,2),7000*KL,-5000*KL),COLOR0000FF;
IF(红红的天 > 10,-5000*KL,DRAWNULL),CIRCLEDOT,COLORGREEN;
IF(红红的天 < =10,-5000*KL,DRAWNULL),CIRCLEDOT,COLOR0000CC;

 
L1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*200-60;
龙K:SMA(L1,3,1)*100*KL,COLORBBFFBB;
凤D:SMA(龙K,3,1),COLORBBFFBB;
STICKLINE(CROSS(3.5,AR3),10000*KL,12000*KL,2,0), COLOR00FFFF,LINETHICK2;
STICKLINE(CROSS(AR3,0.3),-5000*KL,-3000*KL,2,0),COLORRED,LINETHICK2;

 
DRAWTEXT(CROSS( 0,MACD)AND 青山 > 75 OR 太阳,9800*KL,'ヲ'),COLORDBDBDB;
DRAWTEXT(绿水,-3000*KL,'ャ'),COLORDBDBDB;
DRAWTEXT(绿水,-3000*KL,'︼'),COLOR688EC1;

819544553.jpg

819544553.jpg

回复

使用道具 举报

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

本版积分规则