星星之火指标 主图 通达信 贴图
VAR1:=BARSLAST(LOW=LLV(LOW,360));
VAR2:=REF(LOW,VAR1);
VAR3:=CLOSE;
VAR4:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR3,VAR3)),DRAWNULL);
VAR5:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR6:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL);
VAR7:=9;
VAR8:=100*VOL/(FINANCE(7)/100);
VAR9:=EMA(VAR5,9);
VAR10:=(VAR4+VAR6)/2;
VAR11:=VAR6+(VAR4-VAR6)*0.191;
VAR12:=BARSLAST(CROSS(VAR5,VAR9));
VAR13:=VAR6+(VAR4-VAR6)*0.382;
VAR14:=VAR6+(VAR4-VAR6)*0.618;
VAR15:=VAR6+(VAR4-VAR6)*0.809;
VAR16:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR3,VAR3)),DRAWNULL);
VAR17:=(CLOSE-LLV(LOW,VAR7))/(HHV(HIGH,VAR7)-LLV(LOW,VAR7))*100;
VAR18:=SMA(VAR17,3,1);
VAR19:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR15,VAR15)),DRAWNULL);
VAR20:=SMA(VAR18,3,1);
VAR21:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR14,VAR14)),DRAWNULL);
VAR22:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR10,VAR10)),DRAWNULL);
VAR23:=BARSLAST(CROSS(VAR18,VAR20));
VAR24:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR13,VAR13)),DRAWNULL);
VAR25:=VAR12=2 AND VAR23=2;
VAR26:=NOT(NAMELIKE(1) OR NAMELIKE(2)) AND VOL>1 AND DYNAINFO(39)>1;
VAR27:=BARSLAST(HIGH=HHV(HIGH,VAR1));
VAR28:=BARSLAST(LOW=LLV(LOW,VAR27));
VAR29:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR11,VAR11)),DRAWNULL);
VAR30:=IF(CURRBARSCOUNT<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL);
VAR31:=MA(CLOSE,VAR1);
VAR32:=MA(CLOSE,VAR28);
VAR33:=HIGH/LOW*100-100;
VAR34:=BARSLAST(LOW=LLV(LOW,360));
VAR35:=IF(CURRBARSCOUNT<=CONST(VAR34),MA(CLOSE,VAR34),DRAWNULL);
VAR36:=LOW<HIGH AND VAR34>=1 AND VAR34<10 AND CLOSE>=VAR35;
VAR37:=LOW<HIGH AND VAR34>=1 AND VAR34<10 AND CLOSE>=REF(CLOSE,1)*1.09;
VAR38:=LOW<HIGH AND VAR34>=1 AND VAR34<10 AND VAR33>7;
VAR39:=LOW<HIGH AND OPEN<CLOSE AND VAR34>=1 AND VAR34<3 AND VAR33>9 AND VAR8>3;
VAR40:=BARSLAST(VAR39);
VAR41:=REF(CLOSE,VAR40);
VAR42:=REF(OPEN,VAR40);
BB111:VAR40>=0 AND VAR40<=4 AND OPEN<CLOSE AND CLOSE>REF(CLOSE,1) AND CLOSE<REF(OPEN,1) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(VAR8,1)>3 AND REF(CLOSE,1)<VAR41 AND REF(CLOSE,1)>VAR42 AND VAR23<=3;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:上次最低价=360日内最低价最低值距今天数
VAR2赋值:VAR1日前的最低价
VAR3赋值:收盘价
VAR4赋值:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR3,VAR3)),DRAWNULL)
VAR5赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR6赋值:IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL)
VAR7赋值:9
VAR8赋值:100*成交量/(FINANCE(7)/100)
VAR9赋值:VAR5的9日指数移动平均
VAR10:=(VAR4+VAR6)/2
VAR11:=VAR6+(VAR4-VAR6)*0.191
VAR12:=上次VAR5上穿VAR9距今天数
VAR13:=VAR6+(VAR4-VAR6)*0.382
VAR14:=VAR6+(VAR4-VAR6)*0.618
VAR15:=VAR6+(VAR4-VAR6)*0.809
VAR16:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR3,VAR3)),DRAWNULL)
VAR17:=(收盘价-VAR7日内最低价最低值)/(VAR7日内最高价最高值-VAR7日内最低价最低值)*100
VAR17的3日[1日权重]移动平均
VAR19:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR15,VAR15)),DRAWNULL)
VAR18的3日[1日权重]移动平均
VAR21:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR14,VAR14)),DRAWNULL)
VAR22:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR10,VAR10)),DRAWNULL)
VAR23:=上次VAR18上穿VAR20距今天数
VAR24:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR13,VAR13)),DRAWNULL)
VAR25:=VAR12=2 AND VAR23=2
VAR26:=NOT(NAMELIKE(1) OR NAMELIKE(2)) AND 成交量>1 AND DYNAINFO(39)>1
VAR27:=上次最高价=VAR1日内最高价最高值距今天数
VAR28:=上次最低价=VAR27日内最低价最低值距今天数
VAR29:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR11,VAR11)),DRAWNULL)
VAR30:=IF( 到最后交易的周期<=CONST(VAR1+1),CONST(IF(1,VAR2,VAR2)),DRAWNULL)
VAR31:=收盘价的VAR1日简单移动平均
VAR32:=收盘价的VAR28日简单移动平均
VAR33:=最高价/最低价*100-100
VAR34:=上次最低价=360日内最低价最低值距今天数
VAR35:=IF( 到最后交易的周期<=CONST(VAR34),收盘价的VAR34日简单移动平均,DRAWNULL)
VAR36:=最低价<最高价 AND VAR34>=1 AND VAR34<10 AND 收盘价>=VAR35
VAR37:=最低价<最高价 AND VAR34>=1 AND VAR34<10 AND 收盘价>=1日前的收盘价*1.09
VAR38:=最低价<最高价 AND VAR34>=1 AND VAR34<10 AND VAR33>7
VAR39:=最低价<最高价 AND 开盘价<收盘价 AND VAR34>=1 AND VAR34<3 AND VAR33>9 AND VAR8>3
VAR40:=上次VAR39距今天数
VAR41:=VAR40日前的收盘价
VAR42:=VAR40日前的开盘价
输出BB111:VAR40>=0 AND VAR40<=4 AND 开盘价<收盘价 AND 收盘价>1日前的收盘价 AND 收盘价<1日前的开盘价 AND 1日前的收盘价<1日前的开盘价 AND 1日前的VAR8>3 AND 1日前的收盘价VAR42 AND VAR23<=3