七彩神龙通达信公式 主图 源码附图
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF;
VAR1:=1;
VAR2:=IF(MONTH<12,1,100000);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
老兵生命线:MA(CLOSE,11)*VAR1,LINETHICK2,COLORGREEN;
涨停:STICKLINE(CLOSE/REF(C,1)>=1.098 AND C=H AND VAR1,C,O,2,0),COLORYELLOW;
大阳:STICKLINE(CLOSE/REF(C,1)>=1.05 AND VAR1 AND CLOSE/REF(C,1)<1.098,C,O,2,0),COLORMAGENTA;
中阳:STICKLINE(CLOSE/REF(C,1)>=1.03 AND VAR1 AND CLOSE/REF(C,1)<1.05,C,O,2,0),COLORRED;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLOR0000FF
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF
当满足条件1时,在横轴0.00纵轴0.08位置书写文字
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF
VAR1赋值:1
如果MONTH<12返回1否则返回100000
VAR3赋值:(2*收盘价+最高价+最低价)/4
VAR4赋值:34日内最低价最低值
VAR5赋值:34日内最高价最高值
输出老兵生命线:收盘价的11日简单移动平均*VAR1, 线宽为2,画绿色
输出涨停:STICKLINE(收盘价/1日前的C>=1.098 AND C=H AND VAR1,C,O,2,0),画黄色
输出大阳:STICKLINE(收盘价/1日前的C>=1.05 AND VAR1 AND 收盘价/1日前的C<1.098,C,O,2,0),画洋红色
输出中阳:STICKLINE(收盘价/1日前的C>=1.03 AND VAR1 AND 收盘价/1日前的C<1.05,C,O,2,0),画红色