变色macd(副图、原码、贴图)
变色macd
LC1 := REF(CLOSE,1);
R:=SMA(MAX(CLOSE-LC1,0),9,1)/SMA(ABS(CLOSE-LC1),9,1)*100;
绿色→超跌区域:0,COLORGREEN,LINETHICK0;
蓝色→空仓区域:0,COLORBLUE,LINETHICK0;
黄色→持有区域:0,COLORYELLOW,LINETHICK0;
红色→警惕:0,COLORRED,LINETHICK0;
注意减仓:0,COLORRED,LINETHICK0;
操盘线:=SMA(MAX(CLOSE-LC1,0),9,1)/SMA(ABS(CLOSE-LC1),9,1)*100;
DIF :=EMA(操盘线,7) - EMA(操盘线,19);
DEA:=EMA(DIF,7);
持有:=(DIF>=0);
关注:=(DIF>=DEA) AND (DIF<0);
空仓:=(DIF<DEA AND DIF<0);
操盘线10:=(操盘线-50)/5;
STICKLINE(R>=50,操盘线10,0,8,0),COLORYELLOW;
STICKLINE(R>80,操盘线10,6,8,0),COLORRED;
STICKLINE(R<50,操盘线10,0,8,0),COLORBLUE;
STICKLINE(R<=20,操盘线10,-6,8,0),COLORGREEN;
IF(持有,DIF,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(关注,DIF,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(空仓,DIF,DRAWNULL),COLORCYAN,LINETHICK2;
IF(DEA>DIF,DEA,DRAWNULL),COLORBLUE,LINETHICK2;
IF(DEA<DIF,DEA,DRAWNULL),COLORGRAY,LINETHICK2;
- 上一篇公式:头底抛吸(实战指标 副图 源码)
- 下一篇公式:MACD黄买绿卖