您当前的位置:股票 > 财经资讯 > 财经频道

大智慧自调MACD指标公式,大智慧止赢止损指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

大智慧自调MACD指标公式,大智慧止赢止损指标公式

大智慧自调MACD指标公式

INPUT:SHORT(12,1,100),LONG(26,2,100),M(9,1,50),T(0,0,2);

DIFF:=EMA(C,SHORT)-EMA(C,LONG);

DEA:=EMA(DIFF,M);

MACD:=2*(DIFF-DEA);

日DIF:IF(T=0,DIFF,0),PRECIS2,LAYER0,ColorRED;

日DEA:IF(T=0,DEA,0),PRECIS2,LAYER0,ColorA8A818;

MACD:2*(DIFF-DEA),Color283898,LINETHICK0;

ZDIF:="MACD.DIFF#WEEK"(12,26,9); ZDEA:="MACD.DEA#WEEK"(12,26,9);

YDIF:="MACD.DIFF#MONTH"(12,26,9); YDEA:="MACD.DEA#MONTH"(12,26,9);

STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,0,0),Color282888;

STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,0,1),Color505018;

STICKLINE(MACD<0 AND MACD<=REF(MACD,1),0,MACD,0,0),Color083908;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,0,1),Color503350;

周DIF:IF(T=1,ZDIF,0),PRECIS2,LAYER0,Color189898;

周DEA:IF(T=1,ZDEA,0),PRECIS2,LAYER0,Color188818;

月DIF:IF(T=2,YDIF,0),PRECIS2,LAYER0,Color983898;

月DEA:IF(T=2,YDEA,0),PRECIS2,LAYER0,Color688868;

大智慧止赢止损指标公式

A:=c>ref(c,1)*1.099 ;

买入条件:filter(A,1);

买入天数:=BARSLAST(买入条件);

买入价:ref(c,买入天数),linethick0;

手续费:=0.003;

盈亏:100*((c-买入价)/买入价-手续费),linethick0,colore66878;

百分之5止赢:买入价*(1+0.05+手续费),linethick0,color000999;

百分之2止损:买入价*(1-0.025+手续费),coLORgreen,linethick0;

止赢条件:=H>百分之5止赢;

止赢天数:=BARSLAST(止赢条件);

止损条件:=c<百分之2止损;

止损天数:=BARSLAST(止损条件);

止赢:=买入天数> 止赢天数 and 止赢天数<止损天数;

止赢天数2:=BARSLAST(止赢条件 and 止赢 and count(ref(止赢,1),1)=0);

止损:=买入天数>止损天数 and 止赢天数>止损天数;

止损天数2:=BARSLAST(止损 and count(ref(止损,1),1)=0);

drawtext(止赢 and count(ref(止赢,1),1)=0 and 买入天数<止损天数2,0.8,'止赢');

drawicon(止赢 and count(ref(止赢,1),1)=0 and 买入天数<止损天数2,0.5,7);

drawtext(止损 and count(ref(止损,1),1)=0 and 买入天数<止赢天数2,0.4,'止损');

drawicon(止损 and count(ref(止损,1),1)=0 and 买入天数<止赢天数2,0.6,8);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:大智慧自调MACD指标公式,大智慧止赢止损指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

大智慧自调MACD指标公式,大智慧止赢止损指标公式

admin888

|

大智慧自调MACD指标公式,大智慧止赢止损指标公式

大智慧自调MACD指标公式

INPUT:SHORT(12,1,100),LONG(26,2,100),M(9,1,50),T(0,0,2);

DIFF:=EMA(C,SHORT)-EMA(C,LONG);

DEA:=EMA(DIFF,M);

MACD:=2*(DIFF-DEA);

日DIF:IF(T=0,DIFF,0),PRECIS2,LAYER0,ColorRED;

日DEA:IF(T=0,DEA,0),PRECIS2,LAYER0,ColorA8A818;

MACD:2*(DIFF-DEA),Color283898,LINETHICK0;

ZDIF:="MACD.DIFF#WEEK"(12,26,9); ZDEA:="MACD.DEA#WEEK"(12,26,9);

YDIF:="MACD.DIFF#MONTH"(12,26,9); YDEA:="MACD.DEA#MONTH"(12,26,9);

STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,0,0),Color282888;

STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,0,1),Color505018;

STICKLINE(MACD<0 AND MACD<=REF(MACD,1),0,MACD,0,0),Color083908;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,0,1),Color503350;

周DIF:IF(T=1,ZDIF,0),PRECIS2,LAYER0,Color189898;

周DEA:IF(T=1,ZDEA,0),PRECIS2,LAYER0,Color188818;

月DIF:IF(T=2,YDIF,0),PRECIS2,LAYER0,Color983898;

月DEA:IF(T=2,YDEA,0),PRECIS2,LAYER0,Color688868;

大智慧止赢止损指标公式

A:=c>ref(c,1)*1.099 ;

买入条件:filter(A,1);

买入天数:=BARSLAST(买入条件);

买入价:ref(c,买入天数),linethick0;

手续费:=0.003;

盈亏:100*((c-买入价)/买入价-手续费),linethick0,colore66878;

百分之5止赢:买入价*(1+0.05+手续费),linethick0,color000999;

百分之2止损:买入价*(1-0.025+手续费),coLORgreen,linethick0;

止赢条件:=H>百分之5止赢;

止赢天数:=BARSLAST(止赢条件);

止损条件:=c<百分之2止损;

止损天数:=BARSLAST(止损条件);

止赢:=买入天数> 止赢天数 and 止赢天数<止损天数;

止赢天数2:=BARSLAST(止赢条件 and 止赢 and count(ref(止赢,1),1)=0);

止损:=买入天数>止损天数 and 止赢天数>止损天数;

止损天数2:=BARSLAST(止损 and count(ref(止损,1),1)=0);

drawtext(止赢 and count(ref(止赢,1),1)=0 and 买入天数<止损天数2,0.8,'止赢');

drawicon(止赢 and count(ref(止赢,1),1)=0 and 买入天数<止损天数2,0.5,7);

drawtext(止损 and count(ref(止损,1),1)=0 and 买入天数<止赢天数2,0.4,'止损');

drawicon(止损 and count(ref(止损,1),1)=0 and 买入天数<止赢天数2,0.6,8);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道