以下是通达信成本逐利副图(指标副图贴图无未来)

网络上搜索的一个通达信副图指标,名叫成本逐利,我进行了一些修改和优化处理。有买入、加仓、持股和卖出提示,源码分享,喜欢的下载看看!!

 

成本逐利副图-通达信

趋势:SMA(((CLOSE- LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORRED;

DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));

判断:SMA(趋势,3,1),COLORYELLOW;

转强:=IF(趋势>50,趋势,DRAWNULL),COLORRED;

转弱:=IF(趋势<50,趋势,DRAWNULL),COLORGREEN;

拉升:=IF(判断>50 AND 趋势>判断,判断,DRAWNULL),COLORYELLOW,LINETHICK2;

建仓:=IF(判断<50 AND 趋势>判断,判断,DRAWNULL),COLORLIMAGENTA;

出货:IF(判断>50 AND 趋势<判断,判断,DRAWNULL),COLORLIGREEN,LINETHICK2;

RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

TYP:=(HIGH+LOW+CLOSE)/3;

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);

DEA:=EMA(DIFF,6);

MACD:=2*(DIFF-DEA);

拐点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);

买入:建仓>20 AND 建仓<25;

加仓:转强>50 AND 转强<60;

持股:拉升>50 AND 拉升<99;

卖出:出货>10 AND 出货<99;

STICKLINE(拐点=1,50,50,2,0),COLORYELLOW;

STICKLINE(拐点=0,50,50,2,0),COLORCYAN;

STICKLINE(C,90,90,1,0),COLORYELLOW;

STICKLINE(C,10,10,1,0),COLORCYAN;

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。