源码
N:=28;M1:=4;M2:=2;Q1:=4;
Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
Var2:=SMA(Var1,M1,1);
Var3:=SMA(Var2,M2,1);
Var4:=VOL/CAPITAL*34;
Var5:=REF(Var4,1);
建仓: if(Var3<8.5 AND Var2<11,100,0);
减仓: if(Var5>Q1 AND Var5<4.2,100,0);
机构出货: if(Var3>89.5 AND Var2>91,100,0);
主力出货: if(Var3>88.5 AND Var2>94.6,100,0);
STICKLINE(机构出货 and 主力出货,0,100,2,0),COLORRED;
DRAWICON(机构出货 and 主力出货,100,9);
和易:=REF(CLOSE,1);
郑:=SMA(MAX(CLOSE-和易,0),7,1)/SMA(ABS(CLOSE-和易),7,1)*100,color0066ff,LINETHICK2;
STICKLINE( CROSS(20,郑),20,50,4,0),COLORCCFF66;
短线买入:STICKLINE( CROSS(郑,20),0,50,4,0),COLORGREEN,,LINETHICK2;
江:=SMA(MAX(CLOSE-和易,0),7,1)/SMA(ABS(CLOSE-和易),7,1)*100,color0066ff,linethick2;
STICKLINE( CROSS(江,80),50,80,4,0),ColorFF0000;
短线卖出:sTICKLINE( CROSS(80,江),50,100,4,0),COLORRED,LINETHICK2;
DRAWICON( CROSS(80,江),100,5);
{定海神针}
Va1:=REF(CLOSE,1);
Va2:=SMA(MAX(CLOSE-Va1,0),7,1)/SMA(ABS(CLOSE-Va1),7,1)*100;
Va3:=SMA(MAX(CLOSE-Va1,0),13,1)/SMA(ABS(CLOSE-Va1),13,1)*100;
Va4:=BARSCOUNT(CLOSE);
Va6:=Va2<20 AND Va3<25 AND Va4>50;
dhsz: (Va6)*70,linethick2,colorff9933;
50,colorred;
20,colorred;
评论(0)