主力净流入指标:主要显示主力资金的净流入金額. //N:=19;
//VAR1:=HHV(HIGH,N);
//VAR2:=LLV(LOW,N);
//阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5,COLORF0F000,LINETHICK2;
//操作线:EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5,colorred,LINETHICK2;
//DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线<0.1,阻力线,'突破'),coloryellow;
//DRAWTEXT(CROSS(阻力线,操作线) AND 阻力线>0.25,阻力线,'破位'),colorgreen;
//红绿棒:(操作线-阻力线),COLORSTICK;
////www.fxjgsw.com
SHORT:=12;LONG:=26;N:=5;M:=9;n1:=21;M1:=10;M2:=80;M3:=20;
DIFF := MA(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),N);
DEA : =EMA(DIFF,M);
阻力线 : 2*(DIFF-DEA),COLORF0F000,LINETHICK2;
////////////////////////////////////////////////////////////////////////////
DIFFy : =MA(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),N1);
DEAy : =EMA(DIFFy,M);
操作线 : 2*(DIFFy-DEAy),colorred,LINETHICK2;
DRAWTEXT(CROSS(阻力线,操作线) AND 阻力线<0.1,阻力线,'突破'),coloryellow;
DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线>0.25,阻力线,'破位'),colorgreen;
红绿棒:(阻力线-操作线),COLORSTICK;
//////////
C0:0,coloryellow;
净流入:(OUTVOL-INVOL)*((H+L+C)/3)/10000,COLORSTICK;
STICKLINE(净流入>0,0,净流入,8,0),colorred;
STICKLINE(净流入<0,0,净流入,8,0),colorgreen;
AA:=CLOSE/REF(CLOSE,1)>1.08;//价升
BB:=VOL>REF(VOL,1);//量升
CC:=净流入=MAX(MA(净流入,21),净流入);
AB:=AA AND BB AND CC;
DRAWICON(AB,IF(净流入>0,净流入+2000,净流入-2000),2);
DD:=CLOSE/REF(CLOSE,1)>1.095;
DRAWTEXT(DD,净流入,"涨停"),colorwhite;
|
