转换: easyLanguage

 

大家好。

有没有人愿意帮助我在MT3或MT4的EA中翻译一个easyLanguage交易系统?

谢谢。

博拉

 

你好。

我可以做这个。

 

嗨,Igorad,这是我用easylanguage写的TS。

非常感谢你的翻译

{*****************************************

描述:VOLEX (Volatility Expansion)

******************************************}

输入。

MultClosesLong(10),

MultClosesShort(8),

MoltL(2.2),

MoltS(3.6),

FilterLong(0),

FilterShort(4),

StopLoss(330),

StopTarget(120),

StopFactor(60),

ProfitTarget(560),

GainPlusLong(5),

GainPlusShort(4),

开始时间(1200),

结束时间(1630)。

breakTime(1400)。

变量。

CounterLong(0),

CounterShort(0),

交易(1)。

sll(0),

sls(999999)。

sl(StopLoss)。

contr_plus(0);

如果(PositionProfit(1)<0和PositionProfit(2)<0),那么

开始

contr_plus=1。

sl=sl-contr_plus*10。

结束

否则 contr_plus=0;

SetStopLoss(sl);

如果marketposition=0并且时间>=StartTime并且时间<=EndTime并且timebreakTime那么开始

买入("多头") (2+contr_plus)合约 下一交易日的收盘价+Average(Range,4)*MoltL+FilterLong点的止损。

卖出("空头") (2+contr_plus)合约 下一交易日收盘价 - Average(Range,4)*MoltS - Stop上的FilterShort点。

trade=1。

sll=0。

sls=999999。

sl=StopLoss。

CounterShort = 0。

CounterLong=0。

结束。

如果MarketPosition = -1 那么开始

ExitShort ("Stop_S") 下一棒在sls上停止。

If Close < EntryPrice - (Commission+Slippage) / BigPointValue Then CounterShort = CounterShort + 1;

如果CounterShort = MultClosesShort 那么ExitShort ("Prft_S") 在市场上的下一个酒吧。

结束。

如果MarketPosition = 1 那么开始

ExitLong ("Stop_L") 下一棒在sll上停止。

如果Close > EntryPrice + (Commission+Slippage) / BigPointValue 那么CounterLong = CounterLong + 1;

如果CounterLong = MultClosesLong 那么ExitLong ("Prft_L") 在市场上的下一棒。

结束。

如果OpenPositionProfit>=ProfitTarget并且trade=1,那么开始

ExitLong ("1_G_L") (1+contr_plus)合同 市场上的下一栏。

ExitShort ("1_G_S") (1+contr_plus) contracts Next Bar at Market;

trade=trade+1;

sll=进场价格+(佣金+滑点)/BigPointValue+GainPlusLong点数。

sls=进场价格-(佣金+滑点)/BigPointValue-GainPlusShort点数。

结束。

如果OpenPositionProfit<=-StopTarget和trade=1,那么开始

ExitLong ("1_L_L") (1+contr_plus) 合约 下一栏在市场。

ExitShort ("1_L_S") (1+contr_plus) contracts Next Bar at Market;

trade=trade+1;

sl=sl-StopFactor。

结束。

如果时间=2130,那么开始

ExitLong ("EoDL") Next Bar at Market;

ExitShort ("EoDS") 在市场上的下一栏。

结束。

这是一个经典的突破,在2次交易失败后的Martingala。它适用于TF M30,我在欧元/美元上测试过。

再次感谢。

博拉

 

测试结果 如何?我的意思是,如果它是一个具有巨大潜力的ea,那么你会吸引更多的人帮助你。

 

你好,附件中列出了从2001年1月1日至2005年12月31日的业绩。

现在你能在MT4中翻译吗?

谢谢

博拉

附加的文件:
capture1.bmp  29 kb
capture2.bmp  81 kb
 
gbolla:
你好,请附上从01月01日到05年12月31日的表现。

现在你能在MT4中翻译吗?

谢谢

博拉

看上去很不错

 
gbolla:
你好,请附上2001年1月1日至2005年12月31日的业绩。

现在你能在MT4中翻译吗?

谢谢

博拉

嗨,gbola

你能附上那个EA吗?

请注意

promo01

 

嗨,promo01,我在寻找一个能把这个信号从EasyLanguage转到mql4的人,因为我不能做到这一点

Bolla

 

你好,gbolla。

请耐心等待。

伊戈尔

 

嗨,伊戈尔,非常感谢你催促你并不是我的主意。

保持联系

博拉

 

你好。

我已经完成了将EL代码翻译成MT4的工作。

试着测试和优化这个EA。

伊戈尔

附加的文件: