入场点突破主图多均线突破信号提示还有多空趋势通道
VAR1:=SMA(SMA(SMA((MA(C,1)),2,1),2,1),2,1);VAR2:=((CLOSE>REF(CLOSE,1)) AND (CLOSE>REF(CLOSE,2)));VAR3:=((REF(VAR2,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR4:=((REF(VAR3,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR5:=((REF(VAR4,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR6:=((REF(VAR5,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR7:=((REF(VAR6,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR8:=((REF(VAR7,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR9:=((REF(VAR8,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR10:=((REF(VAR9,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));TY:=H;VAR11:=((REF(VAR10,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR14:=((CLOSE< REF(CLOSE,1)) AND (CLOSE< REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR20:=((REF(VAR19,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR21:=((REF(VAR20,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR22:=((REF(VAR21,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR23:=((REF(VAR22,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR24:=((REF(VAR23,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));VAR25:=((REF(VAR24,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));VAR26:=(((((VAR14 OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19);VAR27:=(((VAR26 OR VAR20) OR VAR21) OR VAR22);VAR28:=(REF((((VAR27 OR VAR23) OR VAR24) OR VAR25),1) AND VAR2);VAR29:=((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6);VAR30:=((((VAR29 OR VAR7) OR VAR8) OR VAR9) OR VAR10);VAR31:=(REF((((VAR30 OR VAR11) OR VAR12) OR VAR13),1) AND VAR14);VAR32:=(MA(((HIGH+LOW)/5),4))-(MA(((HIGH+LOW)/5),34));VAR33:=BARSLAST((CROSS(VAR32,0)));VAR34:=BARSLAST((CROSS(0,VAR32)));VAR35:=REF((CROSS(VAR32,0)),1);VAR36:=REF((CROSS(0,VAR32)),1);VAR37:=BARSLAST(VAR35);VAR38:=BARSLAST(VAR36);VAR39:=IF((VAR37< VAR38),(REF((HHV(HIGH,2)),VAR37)),(REF((LLV(LOW,2)),VAR38)));VAR40:=(((REF(CLOSE,1))<=(REF(VAR39,1))) AND (CLOSE>VAR39)) AND (VAR33< VAR34);VAR41:=(((REF(CLOSE,1))>=(REF(VAR39,1))) AND (CLOSE< VAR39)) AND (VAR34< VAR33);VAR42:=VAR40 AND ((COUNT(VAR40,VAR33))=1);VAR43:=VAR41 AND ((COUNT(VAR41,VAR34))=1);VAR44:=VAR42 AND ((REF(BARSLAST(VAR43),1))< (REF(BARSLAST(VAR42),1)));VAR45:=MA((AMOUNT/(VOL)),13);VAR46:=(CLOSE-VAR45)/VAR45*100;VAR47:=MA(C,22)+2*STD(CLOSE,22);VAR48:=MA(C,22)-2*STD(CLOSE,22);VAR58:=(C-VAR48)/(VAR47-VAR48);VAR59:=(REF(VAR46,1)< -15 AND REF(VAR58,1)< 0 AND VAR46>REF(VAR46,1));条件买入:IF(LLV(MA(VAR1,8),3)< VAR1,LLV(MA(VAR1,8),3),VAR1);IF(VAR1>(MA(VAR1,3)),VAR1,DRAWNULL),COLORRED,LINETHICK4;IF(VAR1< (MA(VAR1,3)),VAR1,DRAWNULL),COLORGREEN,LINETHICK4;条件卖出:HHV(MA(VAR1,1),13),COLORYELLOW;STICKLINE(条件卖出>VAR1 AND VAR1>(MA(VAR1,3)),条件卖出,VAR1,0,1),COLORLIBLUE;STICKLINE(条件卖出>(MA(VAR1,3)) AND VAR1< (MA(VAR1,3)),条件卖出,(MA(VAR1,3)),0,1),COLORBLUE;STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;STICKLINE((C< O),CLOSE,LOW,0,0),COLORDE9100;STICKLINE((C< O),OPEN,HIGH,0,0),COLORDE9100;STICKLINE((C< O),CLOSE,OPEN,4,0),COLORFF5B00;STICKLINE((C< O),CLOSE,OPEN,3.4,0),COLORFF6C00;STICKLINE((C< O),CLOSE,OPEN,2.8,0),COLORFF7B00;STICKLINE((C< O),CLOSE,OPEN,2.2,0),COLORFF9C00;STICKLINE((C< O),CLOSE,OPEN,1.6,0),COLORFFBE00;STICKLINE((C< O),CLOSE,OPEN,1,0),COLORFFCC00;STICKLINE((C< O),CLOSE,OPEN,0.3,0),COLORFFFF00;STICKLINE((C>O),CLOSE,OPEN,4,0),COLOR070084;STICKLINE((C>O),CLOSE,OPEN,3.4,0),COLOR0000A3;STICKLINE((C>O),CLOSE,OPEN,2.8,0),COLOR0000B7;STICKLINE((C>O),CLOSE,OPEN,2.2,0),COLOR0000CD;STICKLINE((C>O),CLOSE,OPEN,1.6,0),COLOR0000E9;STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR0754E9;STICKLINE((C>O),CLOSE,OPEN,0.5,0),COLOR076EF3;STICKLINE((C>O),CLOSE,OPEN,0.2,0),COLOR077BF3;STICKLINE(VAR28,O,O+(C-O)/3,4,0),COLOR1029FF;STICKLINE(VAR28,O,O+(C-O)/3,3.4,0),COLOR1040FF;STICKLINE(VAR28,O,O+(C-O)/3,2.8,0),COLOR1083FF;STICKLINE(VAR28,O,O+(C-O)/3,2.2,0),COLOR10ABFF;STICKLINE(VAR28,O,O+(C-O)/3,1.6,0),COLOR10D0FF;STICKLINE(VAR28,O,O+(C-O)/3,1,0),COLOR10FFFF;STICKLINE(VAR28,O,O+(C-O)/3,0.3,0),COLOR00FFFF;STICKLINE(VAR31,O,O+(C-O)/3,4.3,0),COLOR009900;STICKLINE(VAR31,O,O+(C-O)/3,3.2,0),COLOR00AA00;STICKLINE(VAR31,O,O+(C-O)/3,2.4,0),COLOR00BB00;STICKLINE(VAR31,O,O+(C-O)/3,1.7,0),COLOR00CC00;STICKLINE(VAR31,O,O+(C-O)/3,1.1,0),COLOR00DD00;STICKLINE(VAR31,O,O+(C-O)/3,0.5,0),COLOR00EE00;STICKLINE(VAR31,O,O+(C-O)/3,0.2,0),COLOR00FF00;DRAWTEXT(VAR44,(MA(VAR1,3))*0.99,'←突破'),COLORYELLOW;STICKLINE(VAR59>0,C,O,4,0),COLORRED;STICKLINE(VAR59>0,C,O,3.4,0),COLOR1029FF;STICKLINE(VAR59>0,C,O,2.8,0),COLOR1040FF;STICKLINE(VAR59>0,C,O,2.2,0),COLOR1083FF;STICKLINE(VAR59>0,C,O,1.6,0),COLOR10ABFF;STICKLINE(VAR59>0,C,O,1,0),COLOR10D0FF;STICKLINE(VAR59>0,C,O,0.3,0),COLOR10FFFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:SMA(SMA(SMA((MA(C,1)),2,1),2,1),2,1)
VAR2赋值:((收盘价>1日前的收盘价) AND (收盘价>2日前的收盘价))
VAR3赋值:((1日前的VAR2 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR4赋值:((1日前的VAR3 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR5赋值:((1日前的VAR4 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR6赋值:((1日前的VAR5 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR7赋值:((1日前的VAR6 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR8赋值:((1日前的VAR7 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR9赋值:((1日前的VAR8 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR10:=((1日前的VAR9 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
TY赋值:H
VAR11:=((1日前的VAR10 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR12:=((1日前的VAR11 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR13:=((1日前的VAR12 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR14:=((收盘价< 1日前的收盘价) AND (收盘价< 2日前的收盘价))
VAR15:=((1日前的VAR14 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR16:=((1日前的VAR15 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR17:=((1日前的VAR16 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR18:=((1日前的VAR17 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR19:=((1日前的VAR18 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR20:=((1日前的VAR19 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR21:=((1日前的VAR20 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR22:=((1日前的VAR21 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR23:=((1日前的VAR22 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR24:=((1日前的VAR23 AND (收盘价<=1日前的收盘价)) AND (收盘价>=2日前的收盘价))
VAR25:=((1日前的VAR24 AND (收盘价>=1日前的收盘价)) AND (收盘价<=2日前的收盘价))
VAR26:=(((((VAR14 OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19)
VAR27:=(((VAR26 OR VAR20) OR VAR21) OR VAR22)
VAR28:=(REF((((VAR27 OR VAR23) OR VAR24) OR VAR25),1) AND VAR2)
VAR29:=((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6)
VAR30:=((((VAR29 OR VAR7) OR VAR8) OR VAR9) OR VAR10)
VAR31:=(REF((((VAR30 OR VAR11) OR VAR12) OR VAR13),1) AND VAR14)
VAR32:=(MA(((最高价+最低价)/5),4))-(MA(((最高价+最低价)/5),34))
VAR33:=上次(VAR32上穿0距今天数)
VAR34:=上次(0上穿VAR32距今天数)
VAR35:=REF((VAR32上穿0),1)
VAR36:=REF((0上穿VAR32),1)
VAR37:=上次VAR35距今天数
VAR38:=上次VAR36距今天数
VAR39:=IF((VAR37< VAR38),(REF((2日内最高价最高值),VAR37)),(REF((2日内最低价最低值),VAR38)))
VAR40:=(((1日前的收盘价)<=(1日前的VAR39)) AND (收盘价>VAR39)) AND (VAR33< VAR34)
VAR41:=(((1日前的收盘价)>=(1日前的VAR39)) AND (收盘价< VAR39)) AND (VAR34< VAR33)
VAR42:=VAR40 AND ((统计VAR33日满足VAR40的天数)=1)
VAR43:=VAR41 AND ((统计VAR34日满足VAR41的天数)=1)
VAR44:=VAR42 AND ((REF(上次VAR43距今天数,1))< (REF(BARSLAST(VAR42),1)))
VAR45:=MA((成交额/(成交量)),13)
VAR46:=(收盘价-VAR45)/VAR45*100
VAR47:=C的22日简单移动平均+2*收盘价的22估算标准差
VAR48:=C的22日简单移动平均-2*收盘价的22估算标准差
VAR58:=(C-VAR48)/(VAR47-VAR48)
VAR59:=(1日前的VAR46< -15 AND 1日前的VAR58< 0 AND VAR46>1日前的VAR46)
输出条件买入:IF(LLV(VAR1的8日简单移动平均,3)< VAR1,LLV(VAR1的8日简单移动平均,3),VAR1)
IF(VAR1>(VAR1的3日简单移动平均),VAR1,DRAWNULL),画红色,LINETHICK4
IF(VAR1< (VAR1的3日简单移动平均),VAR1,DRAWNULL),画绿色,LINETHICK4
输出条件卖出:HHV(VAR1的1日简单移动平均,13),画黄色
STICKLINE(条件卖出>VAR1 AND VAR1>(VAR1的3日简单移动平均),条件卖出,VAR1,0,1),COLORLIBLUE
STICKLINE(条件卖出>(VAR1的3日简单移动平均) AND VAR1< (VAR1的3日简单移动平均),条件卖出,(VAR1的3日简单移动平均),0,1), 画蓝色
STICKLINE((C>=O),开盘价,最低价,0,0),COLOR0726CA
STICKLINE((C>=O),收盘价,最高价,0,0),COLOR0726CA
STICKLINE((C< O),收盘价,最低价,0,0),COLORDE9100
STICKLINE((C< O),开盘价,最高价,0,0),COLORDE9100
STICKLINE((C< O),收盘价,开盘价,4,0),COLORFF5B00
STICKLINE((C< O),收盘价,开盘价,3.4,0),COLORFF6C00
STICKLINE((C< O),收盘价,开盘价,2.8,0),COLORFF7B00
STICKLINE((C< O),收盘价,开盘价,2.2,0),COLORFF9C00
STICKLINE((C< O),收盘价,开盘价,1.6,0),COLORFFBE00
STICKLINE((C< O),收盘价,开盘价,1,0),COLORFFCC00
STICKLINE((C< O),收盘价,开盘价,0.3,0),COLORFFFF00
STICKLINE((C>O),收盘价,开盘价,4,0),COLOR070084
STICKLINE((C>O),收盘价,开盘价,3.4,0),COLOR0000A3
STICKLINE((C>O),收盘价,开盘价,2.8,0),COLOR0000B7
STICKLINE((C>O),收盘价,开盘价,2.2,0),COLOR0000CD
STICKLINE((C>O),收盘价,开盘价,1.6,0),COLOR0000E9
STICKLINE((C>O),收盘价,开盘价,1,0),COLOR0754E9
STICKLINE((C>O),收盘价,开盘价,0.5,0),COLOR076EF3
STICKLINE((C>O),收盘价,开盘价,0.2,0),COLOR077BF3
STICKLINE(VAR28,O,O+(C-O)/3,4,0),COLOR1029FF
STICKLINE(VAR28,O,O+(C-O)/3,3.4,0),COLOR1040FF
STICKLINE(VAR28,O,O+(C-O)/3,2.8,0),COLOR1083FF
STICKLINE(VAR28,O,O+(C-O)/3,2.2,0),COLOR10ABFF
STICKLINE(VAR28,O,O+(C-O)/3,1.6,0),COLOR10D0FF
STICKLINE(VAR28,O,O+(C-O)/3,1,0),COLOR10FFFF
STICKLINE(VAR28,O,O+(C-O)/3,0.3,0),COLOR00FFFF
STICKLINE(VAR31,O,O+(C-O)/3,4.3,0),COLOR009900
STICKLINE(VAR31,O,O+(C-O)/3,3.2,0),COLOR00AA00
STICKLINE(VAR31,O,O+(C-O)/3,2.4,0),COLOR00BB00
STICKLINE(VAR31,O,O+(C-O)/3,1.7,0),COLOR00CC00
STICKLINE(VAR31,O,O+(C-O)/3,1.1,0),COLOR00DD00
STICKLINE(VAR31,O,O+(C-O)/3,0.5,0),COLOR00EE00
STICKLINE(VAR31,O,O+(C-O)/3,0.2,0),COLOR00FF00
DRAWTEXT(VAR44,(VAR1的3日简单移动平均)*0.99,'←突破'),画黄色
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线
当满足条件VAR59>0时,在C和O之间画柱状线