股票战略图 和谐通达信完全加密公式 源码公布
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;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:上次最低价=360日内最低价最低值距今天数
VAR2赋值:VAR1日前的最低价
VAR3赋值:上次最高价=VAR1日内最高价最高值距今天数
VAR4赋值:VAR3日前的最高价
VAR5赋值:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR4,VAR4)),DRAWNULL)
VAR6赋值:IF( 到最后交易的周期<=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( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR4,VAR4)),DRAWNULL),画红色
输出A6A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR11,VAR11)),DRAWNULL),DOTLINE,COLORLIGRAY
输出A5A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR10,VAR10)),DRAWNULL),DOTLINE,COLORLIGRAY
输出A4A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR7,VAR7)),DRAWNULL),画洋红色
输出A3A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR9,VAR9)),DRAWNULL),DOTLINE,COLORLIGRAY
输出A2A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR8,VAR8)),DRAWNULL),DOTLINE,COLORLIGRAY
输出A1A:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL),画绿色
输出原本线:IF( 到最后交易的周期<=CONST(VAR1),收盘价的VAR1日简单移动平均,DRAWNULL),画红色
输出原本跌:IF( 到最后交易的周期<=CONST(VAR1),IF(原本线<1日前的原本线,原本线,DRAWNULL),DRAWNULL),画绿色
输出H本线:IF( 到最后交易的周期<=CONST(VAR3+1),收盘价的VAR3日简单移动平均,DRAWNULL),画红色
输出H本跌:IF( 到最后交易的周期<=CONST(VAR3+1),IF(H本线<1日前的H本线,H本线,DRAWNULL),DRAWNULL),画绿色
VAR12:=上次最低价=VAR3日内最低价最低值距今天数
输出L本线:IF( 到最后交易的周期<=CONST(VAR12+1),收盘价的VAR12日简单移动平均,DRAWNULL),画红色
输出L本跌:IF( 到最后交易的周期<=CONST(VAR12+1),IF(L本线<1日前的L本线,L本线,DRAWNULL),DRAWNULL),画绿色
VAR13:=CONST(VAR1+1)
VAR14:=(A2A+A1A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR14和238位置书写文字
VAR15:=(A3A+A2A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR15和239位置书写文字
VAR16:=(A4A+A3A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR16和240位置书写文字
VAR17:=(A5A+A4A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR17和241位置书写文字
VAR18:=(A6A+A5A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR18和242位置书写文字
VAR19:=(A7A+A6A)/2
当满足条件 到最后交易的周期=VAR13时,在VAR19和243位置书写文字
VAR20:=上次INDEXL=360日内INDEXL最低值距今天数
VAR21:=VAR20日前的INDEXL
VAR22:=上次INDEXH=VAR20日内INDEXH最高值距今天数
VAR23:=VAR22日前的INDEXH
输出YU21:IF( 到最后交易的周期<=CONST(VAR20+1),CONST(IF(1,VAR23,VAR23)),DRAWNULL),画红色
输出YU22:IF( 到最后交易的周期<=CONST(VAR20+1),CONST(IF(1,VAR21,VAR21)),DRAWNULL),画绿色
VAR24:=CONST(INTPART((INDEXC-YU21)/YU21*100))
输出YU41:CONST(INTPART((收盘价-VAR5)/VAR5*100)),NODRAW
当满足条件ISLASTBAR时,在横轴0.78纵轴10位置书写文字
当满足条件ISLASTBAR时,在横轴0.84纵轴10位置书写数字
当满足条件ISLASTBAR时,在横轴0.87纵轴10位置书写文字
当满足条件ISLASTBAR时,在横轴0.93纵轴10位置书写数字
VAR25:=CONST(INTPART(收盘价计算的获利盘比例*100))
当满足条件ISLASTBAR时,在横轴0.71纵轴10位置书写文字
当满足条件ISLASTBAR时,在横轴0.76纵轴10位置书写数字
VAR26:=CONST(INTPART(收盘价*FINANCE(7)/100000000))
当满足条件ISLASTBAR时,在横轴0.63纵轴10位置书写文字
当满足条件ISLASTBAR时,在横轴0.68纵轴10位置书写数字
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( 到最后交易的周期<=CONST(10),CONST(10),DRAWNULL)
当满足条件VAR52 AND VAR27=1时,在最高价*VAR51和248位置书写文字
当满足条件VAR52 AND VAR28=1时,在最高价*VAR51和249位置书写文字
当满足条件VAR52 AND VAR29=1时,在最高价*VAR51和250位置书写文字
当满足条件VAR52 AND VAR30=1时,在最高价*VAR51和251位置书写文字
当满足条件VAR52 AND VAR31=1时,在最高价*VAR51和252位置书写文字
当满足条件VAR52 AND VAR32=1时,在最高价*VAR51和253位置书写文字
当满足条件VAR52 AND VAR33=1时,在最高价*VAR51和254位置书写文字
当满足条件VAR52 AND VAR34=1时,在最高价*VAR51和255位置书写文字
当满足条件VAR52 AND VAR35=1时,在最高价*VAR51和256位置书写文字
当满足条件VAR52 AND VAR36=1时,在最高价*VAR51和257位置书写文字
当满足条件VAR52 AND VAR37=1时,在最高价*VAR51和258位置书写文字
当满足条件VAR52 AND VAR38=1时,在最高价*VAR51和259位置书写文字
当满足条件VAR52 AND VAR39=1时,在最高价*VAR51和260位置书写文字
当满足条件VAR52 AND VAR40=1时,在最高价*VAR51和261位置书写文字
当满足条件VAR52 AND VAR41=1时,在最高价*VAR51和262位置书写文字
当满足条件VAR52 AND VAR42=1时,在最高价*VAR51和263位置书写文字
当满足条件VAR52 AND VAR43=1时,在最高价*VAR51和264位置书写文字
当满足条件VAR52 AND VAR44=1时,在最高价*VAR51和265位置书写文字
当满足条件VAR52 AND VAR45=1时,在最高价*VAR51和266位置书写文字
当满足条件VAR52 AND VAR46=1时,在最高价*VAR51和267位置书写文字
当满足条件VAR52 AND VAR47=1时,在最高价*VAR51和268位置书写文字
当满足条件VAR52 AND VAR48=1时,在最高价*VAR51和269位置书写文字
当满足条件VAR52 AND VAR49=1时,在最高价*VAR51和270位置书写文字
当满足条件VAR52 AND VAR50=1时,在最高价*VAR51和271位置书写文字
VAR53:=收盘价>1日前的收盘价 AND INDEXC<1日前的INDEXC
输出FH200:DRAWTEXT(VAR53 AND 到最后交易的周期<=CONST(10),最高价*1.01,272),画黄色