缠论变色K线通达信公式 主图 源码附图加密有未来函数

VAR1:=1;
VAR2:=MA(CLOSE,170);
VAR3:=IF(HIGH<REF(HIGH,1) AND REF(HIGH,1)<REF(HIGH,2),REF(HIGH,2),0);
VAR4:=IF(LOW>REF(LOW,1) AND REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
VAR5:=VALUEWHEN(VAR3>0,VAR3);
VAR6:=VALUEWHEN(VAR4>0,VAR4);
VAR7:=HHV(HIGH,1)/10*VAR1+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;
VAR8:=LLV(LOW,1)/10*VAR1+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
VAR9:=IF(VAR7<REF(VAR7,1) AND VAR8<REF(VAR8,1) AND REF(OPEN,1)>CLOSE AND OPEN>CLOSE AND HHV(OPEN,0)-CLOSE>0,REF(VAR7,2),0);
VAR10:=IF(VAR8>REF(VAR8,1) AND VAR7>REF(VAR7,1) AND REF(OPEN,1)<CLOSE AND OPEN<CLOSE AND CLOSE-LLV(OPEN,0)>0,REF(VAR8,2),0);
VAR11:=DATE;
VAR12:=VAR9;
VAR13:=VAR10;
VAR14:=OPEN;
VAR15:=CLOSE;
VAR16:=HIGH;
VAR17:=LOW;
VAR18:=VALUEWHEN(VAR12>0,VAR12);
VAR19:=VALUEWHEN(VAR13>0,VAR13);
VAR20:=IF(CLOSE>VAR18,(-3),IF(CLOSE<VAR19,1,0));
VAR21:=VALUEWHEN(VAR20!=0,VAR20);
VAR22:=IF(VAR21=1,VAR18,VAR19);
VAR23:=VALUEWHEN(ISLASTBAR,VAR22);
VAR24:=VAR21;
VAR25:=VAR21;
VAR26:=VAR24;
VAR27:=OPEN-CLOSE;
VAR28:=VAR27;
VAR29:=IF(OPEN>CLOSE,OPEN,CLOSE);
VAR30:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(VAR26=1,VAR16,VAR29,0,0),COLORCYAN;
STICKLINE(VAR26=1,VAR17,VAR30,0,0),COLORCYAN;
STICKLINE(VAR26=(-3),VAR16,VAR29,0,0),COLORRED;
STICKLINE(VAR26=(-3),VAR17,VAR30,0,0),COLORRED;
STICKLINE(VAR26>0,VAR14,VAR15,3,1),COLORCYAN;
STICKLINE(VAR26<=0,VAR14,VAR15,3,1),COLORRED;
STICKLINE(VAR28>0 AND VAR26<=0,VAR14,VAR15,3,0),COLORRED;
STICKLINE(VAR28>0 AND VAR26>0,VAR14,VAR15,3,0),COLORCYAN;
IF(VAR21=1,VAR22,DRAWNULL),COLORCYAN;
IF(VAR21=(-3),VAR22,DRAWNULL),COLORRED;
VAR31:=BARSLAST(CROSS(VAR26>0,0.5));
VAR32:=BARSLAST(CROSS(VAR26<=0,0.5));
VAR33:=IF(VAR26<=0,REF(HHV(HIGH,VAR32),VAR31),DRAWNULL);
VAR34:=IF(VAR26>0,REF(LLV(LOW,VAR31),VAR32),DRAWNULL);
VAR35:=CROSS(CLOSE,VAR33) OR REF(IF(VAR33=DRAWNULL,1,DRAWNULL),1) AND CLOSE>VAR33;
VAR36:=CROSS(VAR34,CLOSE) OR REF(IF(VAR34=DRAWNULL,1,DRAWNULL),1) AND CLOSE<VAR34;
VAR37:=REF(CLOSE,1);
VAR38:=SMA(MAX(CLOSE-VAR37,0),6,1)/SMA(ABS(CLOSE-VAR37),6,1)*100;
VAR39:=20;
VAR40:=20;
VAR41:=LLVBARS(HIGH,VAR39);
VAR42:=LLVBARS(LOW,VAR39);
VAR43:=HHVBARS(LOW,VAR40);
VAR44:=HHVBARS(HIGH,VAR40);
VAR45:=HHV(LOW,VAR41+1)>LLV(HIGH,VAR41+1);
VAR46:=HHV(LOW,VAR43+1)>LLV(HIGH,VAR43+1);
VAR47:=COUNT(LOW>=REF(LOW,1),VAR42)>2 AND COUNT(HIGH>=REF(HIGH,1),VAR41)>2;
VAR48:=COUNT(HIGH<=REF(HIGH,1),VAR44)>2 AND COUNT(LOW<=REF(LOW,1),VAR43)>2;
VAR49:=VAR45 AND VAR47 AND VAR42>3;
VAR50:=VAR46 AND VAR48 AND VAR44>3;
VAR51:=VAR49 AND HIGH=HHV(HIGH,BARSLAST(VAR50)) AND BARSLAST(VAR50)>3;
VAR52:=VAR50 AND LOW=LLV(LOW,BARSLAST(VAR49)) AND BARSLAST(VAR49)>3;
DRAWLINE(CROSS(BACKSET(VAR51,BARSLAST(VAR52)+1),0.5),LOW,CROSS(BACKSET(VAR52,BARSLAST(VAR51)+1),0.5),HIGH,0),COLORRED,LINETHICK3;
DRAWLINE(CROSS(BACKSET(VAR52,BARSLAST(VAR51)+1),0.5),HIGH,CROSS(BACKSET(VAR51,BARSLAST(VAR52)+1),0.5),LOW,0),COLORGREEN,LINETHICK2;
 
 



未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图