万能MACD

2011-02-19 11:04:00来源:本站整理浏览:119

万能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;

partline(DIF,持有,rgb(255,00,255)),LINETHICK1;
partline(DIF,关注,rgb(255,255,00)),LINETHICK1;
partline(DIF,空仓,rgb(00,255,255));
partline(DEA,DEA>DIF,rgb(0,0,255));
partline(DEA,DEA<DIF,rgb(66,66,66));

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式