文章目录:
- 1、mt4编程 智能交易只要止盈,当天就不再交易的源码怎么写?
- 2、MT4指标中,请老师把下面的箭头改成,买 卖等字样,谢谢。写段源码就可以了
- 3、谁能帮我编写个MT4软件的6条瀑布线的源代码。先谢过啦
- 4、mt4软件怎么提取ea的源码
- 5、反k线在MT4中怎么弄啊?我只知道通达信的反k线源码。
mt4编程 智能交易只要止盈,当天就不再交易的源码怎么写?
在下单的代码前面,加一个条件。
条件的内容就是检查历史订单当天的最后一笔交易,如果平仓价格等于止盈价格,那就说明已经止盈了。
MT4指标中,请老师把下面的箭头改成,买 卖等字样,谢谢。写段源码就可以了
{飞毛腿量柱擒}(主图叠加)
均5:MA(CLOSE,5), COLORYELLOW;
均10:MA(CLOSE,10), COLORF00FF0;
均30: MA(CLOSE,30), COLOR00FF00;
均60: MA(CLOSE, 60), COLORRED, POINTDOT ,LINETHICK2;
均250: MA(CLOSE, 250), COLORBLUE ,LINETHICK2 ;
上轨:=均30 + 2*STD(CLOSE,30), COLORYELLOW, POINTDOT, LINETHICK2 ;
下轨:=均30 - 2*STD(CLOSE,30), COLORYELLOW ,POINTDOT ,LINETHICK2;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)81 AND VV380,HIGH,2);
DRAWTEXT(REF(VV3,1)81 AND VV380,HIGH*1.03,'↓'),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSEVF1 AND VOL/240MA(VOL,5)/240 AND CLOSE=REF(CLOSE,1)*1.08 AND CLOSEMA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL=1.3*MA(VOL,5) AND COUNT(VARA=VARB AND VARA-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,2);
DRAWTEXT(CROSS(82,VARR1),HIGH,'↓'),COLORYELLOW;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
HY3:=IF(COUNT(VAR320,5)=1 AND COUNT(VAR1=LLV(VAR1,10),10)=1 AND CLOSE=OPEN*1.038 AND VOLMA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,''),COLORRED;
S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;
A:=MA(S,5),COLORGREEN,,LINETHICK2;
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH*1.01,'顶!'),COLORYELLOW ;
S1:=IF((J11 AND BIAS-11 AND CROSS( S,F) AND (S-F)0.010),2,0),STICK,LINETHICK3,COLORGREEN;
DRAWTEXT(S1=2,LOW,'关注'), COLORGREEN;
TJ1:=LLV(CLOSE,3)REF(L,3) AND HHV(V,1)=REF(V,3) AND REF(C,3)REF(O,3) AND REF(V,3)0.8*REF(V,4) AND REF(V,3)1.1*REF(V,5);
LJL:=FILTER(TJ1,1);
TJ2:=IF(BARSLAST(LJL)=1 AND CLOSEREF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSEREF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSEREF(HIGH,3),1,0)));
TP:=TJ2=1;
STICKLINE(CLOSE,REF(LLV(L,3),BARSLAST(LJL)),REF(LLV(L,3),BARSLAST(LJL)),6,0),COLORYELLOW;
TJ3:=IF(BARSLAST(LJL)=1 AND CLOSEREF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSEREF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSEREF(LOW,3),1,0)));
STFZ:=TJ3=1;
CL:=STFZ AND TP;
TJCL:=FILTER(CL,3);
谁能帮我编写个MT4软件的6条瀑布线的源代码。先谢过啦
A1 : (EMA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/3,colorwhite;
a2 : (EMA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/3,coloryellow;
A3 : (EMA(CLOSE,9)+MA(CLOSE,18)+MA(CLOSE,36))/3,colorff00ff;
a4 : (EMA(CLOSE,13)+MA(CLOSE,26)+MA(CLOSE,52))/3,color00ff00;
a5 : (EMA(CLOSE,18)+MA(CLOSE,36)+MA(CLOSE,72))/3,colorff9900;
A6 : (EMA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/3,color0000ff;
mt4软件怎么提取ea的源码
只要你的电脑有安装MT4,只需要双击“BB_MACD_v1.01.mq4”这个文件就能打开读取源码了。
反k线在MT4中怎么弄啊?我只知道通达信的反k线源码。
MT4交易平台使用的编程语言是MQ专用语言 如果要编出反K线指标 你要从头学起 而且据我所知 现在还没有开发能够编写反K线指标的MQ语句
SLAST(LJL)),6,0),COLORYELLOW; TJ3:=IF(BARSLAST(LJL)=1 AND CLOSEREF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSEREF(LOW,2),1,IF(BARSLAST(LJL)
T ,LINETHICK2; VV2:=REF(CLOSE,1); VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100; DRAWICON(REF(VV3,1)81 AND VV3
HV(HIGH,45)-LLV(LOW,45))*100; K:=SMA(RSV,15,1); D:=SMA(K,15,1); J:=3*K-2*D; LC:=REF(CLOSE,1); RSI:=SMA(MAX(
CLOSE,3)REF(L,3) AND HHV(V,1)=REF(V,3) AND REF(C,3)REF(O,3) AND REF(V,3)0.8*REF(V,4) AND REF(V,3)1.1*REF(V,5); LJL:=FILTER(TJ1,1); TJ2:=I
)-LLV(LOW,45))*100; K:=SMA(RSV,15,1); D:=SMA(K,15,1); J:=3*K-2*D; LC:=REF(CLOSE,1)