股票战略图 通达信指标 源码 贴图
股票战略图 通达信指标 源码 贴图
股票战略图 ,仅仅用于大盘,
{公式名称: 股票战略图
公式描述: 股票战略图
无参数
公式类型: 技术指标公式-图表型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;
VAR1:=BARSLAST(LOW=LLV(LOW,360));
VAR2:=REF(LOW,VAR1);
VAR3:=BARSLAST(HIGH=HHV(HIGH,VAR1));
VAR4:=REF(HIGH,VAR3);
VAR5:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR4,VAR4)),DRAWNULL);
VAR6:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL);
VAR7:=(VAR5+VAR6)/2;
VAR8:=VAR6+(VAR5-VAR6)*0.191;
VAR9:=VAR6+(VAR5-VAR6)*0.382;
VAR10:=VAR6+(VAR5-VAR6)*0.618;
VAR11:=VAR6+(VAR5-VAR6)*0.809;
A7A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR4,VAR4)),DRAWNULL),COLORRED;
A6A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR11,VAR11)),DRAWNULL),DOTLINE,COLORLIGRAY;
A5A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR10,VAR10)),DRAWNULL),DOTLINE,COLORLIGRAY;
A4A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR7,VAR7)),DRAWNULL),COLORMAGENTA;
A3A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR9,VAR9)),DRAWNULL),DOTLINE,COLORLIGRAY;
A2A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR8,VAR8)),DRAWNULL),DOTLINE,COLORLIGRAY;
A1A:IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL),COLORGREEN;
原本线:IF(CURRBARSCOUNT<=CONST(VAR1),MA(CLOSE,VAR1),DRAWNULL),COLORRED;
原本跌:IF(CURRBARSCOUNT<=CONST(VAR1),IF(原本线<REF(原本线,1),原本线,DRAWNULL),DRAWNULL),COLORGREEN;
H本线:IF(CURRBARSCOUNT<=CONST(VAR3+1),MA(CLOSE,VAR3),DRAWNULL),COLORRED;
H本跌:IF(CURRBARSCOUNT<=CONST(VAR3+1),IF(H本线<REF(H本线,1),H本线,DRAWNULL),DRAWNULL),COLORGREEN;
VAR12:=BARSLAST(LOW=LLV(LOW,VAR3));
L本线:IF(CURRBARSCOUNT<=CONST(VAR12+1),MA(CLOSE,VAR12),DRAWNULL),COLORRED;
L本跌:IF(CURRBARSCOUNT<=CONST(VAR12+1),IF(L本线<REF(L本线,1),L本线,DRAWNULL),DRAWNULL),COLORGREEN;
VAR13:=CONST(VAR1+1);
VAR14:=(A2A+A1A)/2;
GGH1:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR14,238),COLORYELLOW;
VAR15:=(A3A+A2A)/2;
GGH2:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR15,239),COLORYELLOW;
VAR16:=(A4A+A3A)/2;
GGH3:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR16,240),COLORYELLOW;
VAR17:=(A5A+A4A)/2;
GGH4:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR17,241),COLORYELLOW;
VAR18:=(A6A+A5A)/2;
GGH5:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR18,242),COLORYELLOW;
VAR19:=(A7A+A6A)/2;
GGH6:DRAWTEXT(CURRBARSCOUNT=VAR13,VAR19,243),COLORYELLOW;
VAR20:=BARSLAST(INDEXL=LLV(INDEXL,360));
VAR21:=REF(INDEXL,VAR20);
VAR22:=BARSLAST(INDEXH=HHV(INDEXH,VAR20));
VAR23:=REF(INDEXH,VAR22);
YU21:IF(CURRBARSCOUNT<=CONST(VAR20+1),CONST(IF(1,VAR23,VAR23)),DRAWNULL),COLORRED;
YU22:IF(CURRBARSCOUNT<=CONST(VAR20+1),CONST(IF(1,VAR21,VAR21)),DRAWNULL),COLORGREEN;
VAR24:=CONST(INTPART((INDEXC-YU21)/YU21*100));
YU41:CONST(INTPART((CLOSE-VAR5)/VAR5*100)),NODRAW;
PVA4:DRAWTEXT_FIX(ISLASTBAR,0.78,10,0,244),COLORWHITE;
PVA3:DRAWNUMBER_FIX(ISLASTBAR,0.84,10,0,VAR24),COLORCYAN;
PVA2:DRAWTEXT_FIX(ISLASTBAR,0.87,10,0,245),COLORYELLOW;
PVA1:DRAWNUMBER_FIX(ISLASTBAR,0.93,10,0,YU41),COLORGREEN;
VAR25:=CONST(INTPART(WINNER(CLOSE)*100));
PVA11:DRAWTEXT_FIX(ISLASTBAR,0.71,10,0,246),COLORRED;
PVA12:DRAWNUMBER_FIX(ISLASTBAR,0.76,10,0,VAR25),COLORGREEN;
VAR26:=CONST(INTPART(CLOSE*FINANCE(7)/100000000));
PVA13:DRAWTEXT_FIX(ISLASTBAR,0.63,10,0,247),COLORMAGENTA;
PVA14:DRAWNUMBER_FIX(ISLASTBAR,0.68,10,0,VAR26),COLORGREEN;
VAR27:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5),2);
VAR28:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);
VAR29:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7),2);
VAR30:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);
VAR31:=FILTER(MONTH=4 AND (DAY=4 OR DAY=6),2);
VAR32:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);
VAR33:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8),2);
VAR34:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);
VAR35:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7),2);
VAR36:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);
VAR37:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8),2);
VAR38:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);
VAR39:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9),2);
VAR40:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);
VAR41:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9),2);
VAR42:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);
VAR43:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9),2);
VAR44:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);
VAR45:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9),2);
VAR46:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);
VAR47:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8),2);
VAR48:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);
VAR49:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7),2);
VAR50:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2);
VAR51:=1.006;
VAR52:=IF(CURRBARSCOUNT<=CONST(10),CONST(10),DRAWNULL);
DRAWTEXT(VAR52 AND VAR27=1,HIGH*VAR51,248),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR28=1,HIGH*VAR51,249),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR29=1,HIGH*VAR51,250),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR30=1,HIGH*VAR51,251),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR31=1,HIGH*VAR51,252),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR32=1,HIGH*VAR51,253),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR33=1,HIGH*VAR51,254),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR34=1,HIGH*VAR51,255),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR35=1,HIGH*VAR51,256),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR36=1,HIGH*VAR51,257),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR37=1,HIGH*VAR51,258),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR38=1,HIGH*VAR51,259),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR39=1,HIGH*VAR51,260),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR40=1,HIGH*VAR51,261),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR41=1,HIGH*VAR51,262),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR42=1,HIGH*VAR51,263),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR43=1,HIGH*VAR51,264),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR44=1,HIGH*VAR51,265),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR45=1,HIGH*VAR51,266),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR46=1,HIGH*VAR51,267),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR47=1,HIGH*VAR51,268),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR48=1,HIGH*VAR51,269),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR49=1,HIGH*VAR51,270),COLORYELLOW;
DRAWTEXT(VAR52 AND VAR50=1,HIGH*VAR51,271),COLORYELLOW;
VAR53:=CLOSE>REF(CLOSE,1) AND INDEXC<REF(INDEXC,1);
FH200:DRAWTEXT(VAR53 AND CURRBARSCOUNT<=CONST(10),HIGH*1.01,272),COLORYELLOW;
- 上一篇公式:低位金叉 分析副图 通达信指标 源码 贴图
- 下一篇公式:金蝴蝶波段底买卖线 通达信指标 源码 贴图