阴阳太极黄线+红线上持股通达信公式 主图 源码附图

VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=IF(VAR1>REF(VAR1,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
VAR3:=IF(VAR1<REF(VAR1,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
VAR4:=VAR2;
VAR5:=(VAR2+VAR3)/2;
VAR6:=VAR3;
上线:IF(ISLASTBAR,REF(VAR4,1),DRAWNULL),NODRAW,COLORRED;
中线:IF(ISLASTBAR,REF(VAR6,1),DRAWNULL),NODRAW,COLORYELLOW;
下线:IF(ISLASTBAR,REF(VAR5,1),DRAWNULL),NODRAW,COLORLIBLUE;
VAR7:=1;
VAR8:=CURRBARSCOUNT<2;
VAR9:=CURRBARSCOUNT<13;
VAR10:=IF(VAR8,上线,DRAWNULL);
VAR11:=IF(VAR8,中线,DRAWNULL);
VAR12:=IF(VAR8,下线,DRAWNULL);
VAR13:=IF(VAR9,VAR10,DRAWNULL);
VAR14:=IF(VAR9,VAR11,DRAWNULL);
VAR15:=IF(VAR9,VAR12,DRAWNULL);
STICKLINE(VAR9,VAR13,VAR13,20,(-1)),COLOR0000CC;
STICKLINE(VAR9,VAR14,VAR14,20,(-1)),COLOR00CCCC;
STICKLINE(VAR9,VAR15,VAR15,20,(-1)),COLORCCCC00;
VAR16:=CLOSE/REF(CLOSE,1)>=1.098 AND CLOSE=HIGH;
STICKLINE(VAR16,CLOSE,OPEN,0.3,0),COLORYELLOW;
VAR17:=MA(CLOSE,13);
VAR18:=MA(CLOSE,21);
VAR19:=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:=REF(VAR25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR27:=REF(VAR26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR28:=REF(VAR27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR29:=REF(VAR28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR30:=REF(VAR29,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR31:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR32:=REF(VAR31,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR33:=REF(VAR32,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR34:=REF(VAR33,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR35:=REF(VAR34,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR36:=REF(VAR35,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR37:=REF(VAR36,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR38:=REF(VAR37,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR39:=REF(VAR38,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR40:=REF(VAR39,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR41:=REF(VAR40,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR42:=REF(VAR41,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR43:=REF(VAR31 OR VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38 OR VAR39 OR VAR40 OR VAR41 OR VAR42,1) AND VAR19;
VAR44:=REF(VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30,1) AND VAR31;
VAR45:=IF(CLOSE<200,MA(COST(80),3),2500);
VAR46:=(HIGH+LOW+CLOSE)/3;
VAR47:=EMA((OPEN+HIGH+LOW+CLOSE)/4,2330);
VAR48:=VAR47+VAR47*6/100;{股票指标网 整理}
VAR49:=VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30;
VAR50:=VAR31 OR VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38 OR VAR39 OR VAR40 OR VAR41 OR VAR42;
VAR51:=HHV(CLOSE,2);
VAR52:=LLV(CLOSE,2);
VAR53:=IF(VAR49,VAR52,DRAWNULL);
VAR54:=VAR53;
VAR55:=REF(VAR53,1);
VAR56:=IF(VAR50,VAR51,DRAWNULL);
VAR57:=VAR56;
VAR58:=REF(VAR57,1);
VAR59:=IF(VAR58!=DRAWNULL,VAR58,IF(VAR55!=DRAWNULL,VAR55,DRAWNULL));
STICKLINE(ISLASTBAR AND VAR59,VAR59,VAR59,6,0),COLORGREEN;
VAR60:=VAR7;
VAR61:=VAR60;
NOTEXT4:IF(VAR7!=1,0,VAR59),COLOR0000CC,LINETHICK3;
离场线:IF(CLOSE<=VAR59,VAR59,DRAWNULL),COLOR00CC00,LINETHICK3;
IF(CLOSE>VAR59,VAR59,DRAWNULL),COLOR0000CC,LINETHICK3;
VAR62:=EMA(CLOSE,8);
VAR63:=EMA(CLOSE,18);
VAR64:=IF(VAR60!=1,0,EMA(VAR62-VAR63,9));
阴鱼:9*REF(VAR64,1)-7*REF(VAR62,1)+8*REF(VAR63,1),COLORFF8000,LINETHICK2;
阳鱼:IF(CLOSE>=阴鱼,阴鱼,DRAWNULL),COLORYELLOW,LINETHICK2;
鱼眼:IF(ISLASTBAR,阴鱼,DRAWNULL),POINTDOT,COLORRED,LINETHICK6;
VAR65:=VAR59>阳鱼 AND LOW<VAR59;
STICKLINE(VAR65,LOW,MIN(VAR59,HIGH),0,0),COLORMAGENTA;
 



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

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

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