macd红柱连续大约0
macd红柱连续大约0
编写条件:
首先谢谢各位高手老师的辛勤劳动,你们辛苦了 。 最近看到关于KDJ+RSI+MACD指标组合的文章,感觉不错,就是没有找到源码,各位高手老师如果有的话,麻烦给发一个,谢谢啦
编写方法:
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
特别准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),3,14,5,0),LINETHICK4,COLORRED;
有点准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),14,27,3,0),LINETHICK3,COLORMAGENTA;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,27,40,1,0),COLOR00FFFF;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,50,1,0),COLOR00FF00;
VAR6:=LLV(LOW,10);
VAR8:=HHV(HIGH,25);
减仓线:=3.2 ;
卖出线:=3.5;
动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);
清仓线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*5,5);
DRAWICON(CROSS(动力线,减仓线),85,2);
DRAWTEXT(CROSS(动力线,减仓线),85,'减仓'),COLORBLUE;
DRAWICON(CROSS(卖出线,动力线),90,35);
DRAWTEXT(CROSS(卖出线,动力线),95,'减仓'),COLORRED;
DRAWTEXT(CROSS(卖出线,清仓线),100,'清仓'),COLOR00FF00;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),COLORGREEN,LINETHICK3;
DRAWTEXT(顶A=50,60,'快'),COLORMAGENTA;
DRAWTEXT(顶A=50,50,'逃'),COLORRED;
DRAWTEXT(顶A=50,40,'顶'),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,COLORRED,LINETHICK1;
DRAWTEXT(RSI6>82,85,'减')COLOR00FF00;
DRAWTEXT(RSI6<12.8,6,'补')COLORYELLOW;
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}黑马股票
关画竖线的函数
关画竖线的函数