通达信止损止盈主图指标公式

N:=1.5;
{停损止盈}
MTR:=MAX(MAX((HIGH-LOW),Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(MTR,12);
VAR1:=IF(C>=HHV(C,24) AND L>LLV(L,12),1,0);
VAR2:=IF(C<=LLV(C,24) AND H<HHV(H,12),1,0);
VAR3:=HHV(MA(H,2),24)-N*ATR;
VAR4:=LLV(MA(L,2),24)+N*ATR;
SStop:IF(VAR1,VAR3,REF(VAR3,BArslAST(VAR1=1))),COLORGREEN;
XSTOP:IF(VAR2,VAR4,REF(VAR4,BARSLAST(VAR2=1))),COLORYELLOW;
{k线走向}
STICKLINE(1,H,L,0,1),COLORGRAY;
STICKLINE(C<=O,O,C,-1,0),COLORGRAY;
STICKLINE(C>O,O,C,-1,1),COLORGRAY;
AH:=C>REF(HHV(C,2),1);
STICKLINE(AH,H,L,0,1),COLORRED;
STICKLINE(AH AND C<=O,O,C,-1,0),COLORRED;
STICKLINE(AH AND C>O,O,C,-1,1),COLORRED;
BL:=C<REF(LLV(C,2),1);
STICKLINE(BL,H,L,0,1),COLORBLUE;
STICKLINE(BL AND C<=O,O,C,-1,0),COLORBLUE;
STICKLINE(BL AND C>O,O,C,-1,1),COLORBLUE;
A1:=H<=REF(H,1) AND C<REF(C,1);
A2:=C<REF(C,2);
A3:=L<REF(L,1);
STICKLINE(A1,H,L,0,1),COLORGREEN;
STICKLINE(A1 AND C<=O,O,C,-1,0),COLORGREEN;
STICKLINE(A1 AND C>O,O,C,-1,1),COLORGREEN;
STICKLINE(A1 AND A2,H,L,0,1),COLORCYAN;
STICKLINE(A1 AND A2 AND C<=O,O,C,-1,0),COLORCYAN;
STICKLINE(A1 AND A2 AND C>O,O,C,-1,1),COLORCYAN;
STICKLINE(A1 AND A2 AND A3,H,L,0,1),COLORBLUE;
STICKLINE(A1 AND A2 AND A3 AND C<=O,O,C,-1,0),COLORBLUE;
STICKLINE(A1 AND A2 AND A3 AND C>O,O,C,-1,1),COLORBLUE;
B1:=L>=REF(L,1) AND C>REF(C,1);
B2:=C>REF(C,2);
B3:=H>REF(H,1);
STICKLINE(B1,H,L,0,1),COLORYELLOW;
STICKLINE(B1 AND C<=O,O,C,-1,0),COLORYELLOW;
STICKLINE(B1 AND C>O,O,C,-1,1),COLORYELLOW;
STICKLINE(B1 AND B2,H,L,0,1),COLORMAGENTA;
STICKLINE(B1 AND B2 AND C<=O,O,C,-1,0),COLORMAGENTA;
STICKLINE(B1 AND B2 AND C>O,O,C,-1,1),COLORMAGENTA;
STICKLINE(B1 AND B2 AND B3,H,L,0,1),COLORRED;
STICKLINE(B1 AND B2 AND B3 AND C<=O,O,C,-1,0),COLORRED;
STICKLINE(B1 AND B2 AND B3 AND C>O,O,C,-1,1),COLORRED;
交易线:MA(REF((C+O)/2,1),5),COLORDF00DF;

负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/174554.html,转载请注明出处。
通达信主力资金横盘突破全套指标公式源码
通达信主力资金横盘突破全套指标公式源码
刚刚 有人购买 去瞅瞅看
温馨提示:本站暂不支持手机端在线支付,请您在电脑端扫码完成支付!
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录