| | | |
{龙行天下-TDX}
VAR1:=RANGE(CLOSE,999999,1000000000);
VAR2:=FILTER(CLOSE>OPEN,5);
VAR3:=COUNT(CLOSE>OPEN,20);
VAR4:=COUNT(CLOSE<OPEN,20);
VAR5:=IF(VAR3>VAR4,CLOSE,HIGH);
VAR6:=EMA(VAR5,13);
VAR7:=EMA(VAR5,60);
VAR8:=(VAR6-VAR7)*10;
飞龙:MA(VAR8,5);
火龙:MA(VAR8,13),LINETHICK2;
龙行天下:MA(VAR8,34);
神龙:IF( CROSS( 飞龙,火龙) AND 龙行天下<0,飞龙,0);
STICKLINE(VAR8>=0,VAR8,VAR8+1,3,0),COLORRED;
STICKLINE(VAR8>=0 AND VAR8<REF(VAR8,1),VAR8,VAR8+1,3,0),COLORYELLOW;
STICKLINE(VAR8<=0 AND VAR8>REF(VAR8,1),VAR8,VAR8-1,3,0),COLORGREEN;
IF(飞龙>REF(飞龙,1),飞龙,REF(飞龙,1)),COLORRED,LINETHICK2;
IF(飞龙<REF(飞龙,1),飞龙,REF(飞龙,1)),COLORFFFF00,LINETHICK2;
IF(火龙<REF(火龙,1),火龙,REF(火龙,1));
IF(龙行天下>REF(龙行天下,1),龙行天下,REF(龙行天下,1)),COLORFFAAFF;
VARF1:=COUNT(CROSS(飞龙,神龙),2)=1;
VARF2:=COUNT(CROSS(火龙,神龙),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(神龙,ZAI,'→¤启动'),COLORWHITE;
均衡:EMA(火龙,2),COLORYELLOW;
{DRAWTEXT(ZAI,均衡,'→¤启动');}
加仓:DRAWICON(CROSS(飞龙,均衡),飞龙-0.1,9);
DRAWICON(CROSS(均衡,飞龙),均衡-0.003,3);
{IF(均衡>REF(均衡,1),均衡,REF(均衡,1));}
IF(均衡<REF(均衡,1),均衡,REF(均衡,1));
VAR9:=LONGCROSS(VAR1,VAR4,10);
{海面:0, POINTDOT;
天空:5, POINTDOT;
海底:-5, POINTDOT;
VARA:COUNT(VAR9,10)=1; }; |
42.37 KB, 下载次数: 86
| | | | |
|