止损止盈 实战指标(源码 主图 通达信 贴图)

[复制链接]
查看153 | 回复0 | 2021-8-20 05:48:24 | 显示全部楼层 |阅读模式

以下是止损止盈 实战指标(源码 主图 通达信 贴图)(无源码的请下载附件导入)

止损止盈 实战指标(源码 主图 通达信 贴图)

分享多年来的一个实战指标,交易的标准!
  交易的依据是什么?
  靠感觉太不靠谱,金叉死叉各种神奇的指示,好像也不行。
  我们可靠的是,交易的一致性,给大家分享个止损止盈的指标! 
不好意思,参数补上:参数 N: 1,3,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;
 

832588835.png

832588835.png

相关帖子

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则