龙听期货论坛's Archiver

龙听 发表于 2018-11-29 16:40

[文华指标]K线颜色的变化源码[文华财经公式]

相关标签: 文华财经程序化交易 、 文华程序化交易 、 文华程序化交易论模型 、 程序化交易编程 文华 、 文华程序化收盘价模型 、 文华程序化视频 、 文华程序化模型 、 文华程序化开盘价模型 、 文华财经博客指标公式 、

[文华指标]源码:

[code]
STICKLINE(CLOSE<EMA(CLOSE,49)&&CLOSE>OPEN,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(CLOSE<EMA(CLOSE,49)&&CLOSE<=OPEN,OPEN,CLOSE,COLORCYAN,0);
DRAWLINE(CLOSE<EMA(CLOSE,49),HIGH,CLOSE>OPEN,CLOSE,COLORCYAN);
DRAWLINE(CLOSE<EMA(CLOSE,49),LOW,CLOSE>OPEN,OPEN,COLORCYAN);
DRAWLINE(CLOSE<EMA(CLOSE,49),HIGH,CLOSE<=OPEN,LOW,COLORCYAN);
STICKLINE(CLOSE>EMA(CLOSE,49)&&CLOSE>=OPEN,OPEN,CLOSE,COLORYELLOW,1);
STICKLINE(CLOSE>EMA(CLOSE,49)&&CLOSE<OPEN,OPEN,CLOSE,COLORYELLOW,0);
DRAWLINE(CLOSE>EMA(CLOSE,49),HIGH,CLOSE>=OPEN,CLOSE,COLORYELLOW);
DRAWLINE(CLOSE>EMA(CLOSE,49),LOW,CLOSE>=OPEN,OPEN,COLORYELLOW);
DRAWLINE(CLOSE>EMA(CLOSE,49),LOW,CLOSE<OPEN,CLOSE,COLORYELLOW);
DRAWLINE(CLOSE>EMA(CLOSE,49),HIGH,CLOSE<OPEN,OPEN,COLORYELLOW);
STICKLINE(HIGH>=HHV(CLOSE,24)&&CLOSE>OPEN,OPEN,CLOSE,COLORRED,1);
STICKLINE(HIGH>=HHV(CLOSE,24)&&CLOSE<=OPEN,OPEN,CLOSE,COLORRED,0);
STICKLINE(LOW<=LLV(CLOSE,24)&&CLOSE>OPEN,OPEN,CLOSE,COLORGREEN,1);
STICKLINE(LOW<=LLV(CLOSE,24)&&CLOSE<=OPEN,OPEN,CLOSE,COLORGREEN,0);
DRAWLINE(HIGH>=HHV(CLOSE,24),HIGH,CLOSE>=OPEN,CLOSE,COLORRED);
DRAWLINE(HIGH>=HHV(CLOSE,24),LOW,CLOSE>=OPEN,OPEN,COLORRED);
DRAWLINE(HIGH>=HHV(CLOSE,24),HIGH,CLOSE<OPEN,LOW,COLORRED);
DRAWLINE(LOW<=LLV(CLOSE,24),HIGH,CLOSE<=OPEN,LOW,COLORGREEN);
DRAWLINE(LOW<=LLV(CLOSE,24),HIGH,CLOSE>OPEN,CLOSE,COLORGREEN);
DRAWLINE(LOW<=LLV(CLOSE,24),LOW,CLOSE>OPEN,OPEN,COLORGREEN);
[/code]

页: [1]