通达信扣抵公式

设置抵扣公式方法:

1.打开通达信“功能”--->“公式系统”--->"公式管理器",即打开如下窗口:

2.选择“技术指标公式”--->“其他类型”,点击“新建”:

在以下窗口“公式名称”处输入“扣抵”,编辑参数和公式如下,确定即可

STICKLINE(CURRBARSCOUNT==M1-OFFSET,1,0,1.5,0),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT==M1-OFFSET,2*0.8,'5日');

STICKLINE(CURRBARSCOUNT==M2-OFFSET,1,0,1.5,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT==M2-OFFSET,2*0.8,'11日');

STICKLINE(CURRBARSCOUNT==M3-OFFSET,1,0,1.5,0),COLORA62AA2;
DRAWTEXT(CURRBARSCOUNT==M3-OFFSET,2*0.8,'18日');

STICKLINE(CURRBARSCOUNT==M4-OFFSET,1,0,1.5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT==M4-OFFSET,2*0.8,'31日');

STICKLINE(CURRBARSCOUNT==M5-OFFSET,1,0,1.5,0),COLORLIBLUE;
DRAWTEXT(CURRBARSCOUNT==M5-OFFSET,2*0.8,'63日');

STICKLINE(CURRBARSCOUNT==M6-OFFSET,1,0,1.5,0),COLOR70DBDB;
DRAWTEXT(CURRBARSCOUNT==M6-OFFSET,2*0.8,'120日');

STICKLINE(CURRBARSCOUNT==M7-OFFSET,1,0,1.5,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT==M7-OFFSET,2*0.8,'250日');

3.“确定”后,关闭窗口,进入主页面,输入“kd”选择“扣抵”即可出现

4.主页幅图位置可以看到不同颜色的柱线即是了。

(0)

相关推荐