发布人:红军老师
用于通达信
――――――――――――――――――――――――――――――――
参数
long 2 200 26
m 2 200 9
short 2 20012
――――――――――――――――――――――――――――――――
市日年:FINANCE(42),,NODRAW,COLORRED;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD: (DIF-DEA)*2,COLORSTICK;
{}
AH:HHV(DIF,55),COLOR6600FF,LINETHICK2;
ALLV(DIF,55),COLOR248A24,LINETHICK2;
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,30);
VAR3:=DEA-(DIF-DEA);
UP:IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORBB9A00;
DN:IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),COLORAA00BB,LINETHICK2;
美人眼:=CROSS(DIF ,DEA ) AND CROSS( DIF,DN ) AND DN<0;
美人眼A:美人眼*AL,STICK,LINETHICK5,COLOR8080FF;
DRAWTEXT(美人眼,DN,'美人眼'),COLOR8080FF,LINETHICK2;
美人瞎眼:=CROSS(DEA ,DIF ) AND CROSS( UP,DIF ) AND DIF<UP;
美人瞎眼A:美人瞎眼*AH,STICK,LINETHICK5,COLOR9CA010;
DRAWTEXT(美人瞎眼,DN,'美人瞎眼'),COLOR9CA010,LINETHICK2;
{}
{绿色}
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR008800;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR009900;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR00AA00;
{红色}
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR000088;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR000099;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR0000AA;
{黄色}
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLOR338FDD;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLOR339FDD;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLOR33AFDD;
{兰色}
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORFF4400;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORFF6600;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFF7700; |