发布日期:2024-09-08 17:41 点击次数:114
图片xiao77文学
SJ:=IFELSE(DATE+20000000<20200830,1,1);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
DEA:EMA(DIF,9),COLORWHITE,LINETHICK2;
握仓阶段:0,COLOR00CFFF;
空仓阶段:0,COLORFFCCFF;
//DRAWTEXT(CROSS(DIF,DEA),DIF-0,'多头'),COLORRED;
//DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空头'),COLORGREEN;
MACD色柱:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD色柱<REF(MACD色柱,1)) AND (MACD色柱>0)),0,MACD色柱,1,0),LINETHICK2;
STICKLINE(((MACD色柱>REF(MACD色柱,1)) AND (MACD色柱<0)),0,MACD色柱,1,0),COLORFF00FF,LINETHICK2;
建仓:IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK2;
极品熟女加仓:IF(DIF<0,0,DIF),COLORRED,LINETHICK2;
白线破仓:IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK2;
趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2;
J:=CROSS(DIF,DEA);
S:=CROSSDOWN(DIF,DEA);
JC:=COUNT(J,BARSLAST(CROSS(DIF>0&&DEA>0,0.5)))=1&&J;
SC:=COUNT(S,BARSLAST(CROSSDOWN(DIF>0&&DEA>0,0.5)))=1&&S;
JC2:=COUNT(S,BARSLAST(CROSSDOWN(DIF>0&&DEA>0,0.5)))=2&&S;
SC2:=COUNT(J,BARSLAST(CROSS(DIF>0&&DEA>0,0.5)))=2&&J;
N1:=SUMBARS(CROSSDOWN(DIF,DEA),1);
N2:=SUMBARS(CROSS(DIF,DEA),1);
DRAWTEXT(N2=1&&N1>5&&N1<=13&&EVERY(DIF>0&&DEA>0 ,N1)&&JC,DIF,'多'),COLORRED,FONTSIZE16;
//&&DIFF>2
M:=SUMBARS((DIF<0&&CROSSDOWN(DEAxiao77文学,0))