Forex Zone - Forex Forum

Help add extra parameters to the EA

Discussion started on MT4 / MT5 EAs

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
no i am using a 3rd party software connected to meta-trader
If you aren't back testing with standard MT4 then the errors cannot be duplicated here. Was your EA specifically made to run with this 3rd party software you are using? This might explain why history files were used instead of a simpler method. The EA has been changed in that regard though.
i use tickdata suite and its integrated into mt4, i'm gonna restart my pc
#16 - December 18, 2018, 01:16:10 PM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
Restarting your PC might not help. The EA was changed in regards to the history files. This is probably why you are getting an error in that 3rd party software, but it seems to work fine in standard MT4 back tester.

This would also explain why a coder would make an EA in this way instead of a much simpler way as I mentioned before such as simply calling the information or storing the information internally in arrays or something. Maybe he made this EA to specifically back test in your software.
#17 - December 18, 2018, 01:20:11 PM

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
no i am using a 3rd party software connected to meta-trader
If you aren't back testing with standard MT4 then the errors cannot be duplicated here. Was your EA specifically made to run with this 3rd party software you are using? This might explain why history files were used instead of a simpler method. The EA has been changed in that regard though.
My friend dosent use the 3rd party backtesting software, he builds on everything on MT4.  My tick data software requires an update based on the new MT4 update, i tried using MT4 but the first thing i noticed is its trade volume dropped and the result .

EA is meant to check history and analyse the last 4Hr candle stick, this is including its current price before opening every new position. Is that a reason why the trade volume and accuracy dropped ?

#18 - December 18, 2018, 01:48:30 PM
« Last Edit: December 18, 2018, 09:35:04 PM by Turbo »

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
I backested it now and the results is still in-consistence every time you repeat using same values test the results differs the same issue still remains.
#19 - December 18, 2018, 09:35:46 PM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
The reason for this is because the EA used the GetTickCount() function for checking new ticks, but this function is based on computer time from start of system. So every new test had different results. This new version has consistent results.
#20 - December 18, 2018, 10:51:09 PM
Attachments:

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
Thanks i will check it out
#21 - December 18, 2018, 11:59:22 PM

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
The reason for this is because the EA used the GetTickCount() function for checking new ticks, but this function is based on computer time from start of system. So every new test had different results. This new version has consistent results.
the result is now consistent,
but the entries are not accurate anyone. its not calculating them well any more, it was partially getting them correctly with inconsistency in the original file.
 
#22 - December 19, 2018, 12:45:08 AM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
but the entries are not accurate anyone. its not calculating them well any more, it was partially getting them correctly with inconsistency in the original file.
I would need to know what you define as "not acccurate". Not many changes were done to the EA and the strategy was left intact. Also, I'm not sure how you can decide what is not accurate if the original EA was giving different results with every test.
#23 - December 19, 2018, 01:54:16 AM

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
but the entries are not accurate anyone. its not calculating them well any more, it was partially getting them correctly with inconsistency in the original file.
I would need to know what you define as "not acccurate". Not many changes were done to the EA and the strategy was left intact. Also, I'm not sure how you can decide what is not accurate if the original EA was giving different results with every test.
Not accurate means that EA is not doing the accurate calculations from the updated history before opening every new trade .

previously backtesting from 01nov2018- 01dec,2018 will produce a percentage of only 1-7% loss trades, and winning rate is always around  92%-99%, the inconsistency was only affecting a very few trades. (bearing in mind the settings used for the backtest was SL50 TP15 Trailing7 spread was 3pips not points on EURUSD 1m chat or 5min chart) The expected payoff and profit factor numbers are always high.

i don't now why i'm not receiving an mq4 back, as a new member that have posted mostly mq4 and complete strategy details, i had choice of not posting mq4, but i did so that other traders will be able to understand intentions of the strategy and others can learn. i feel a sad that i'm getting ex4 trials so i cant see the changes you made,how do i learn from the .ex4 ? i really came here with good intentions and a open heart. i'm feel a bit depressed :(






#24 - December 19, 2018, 08:13:34 AM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
Not accurate means that EA is not doing the accurate calculations from the updated history before opening every new trade .
Can you give an example of an accurate or inaccurate calculation though? As I said before, the strategy logic is intact and little was changed in the EA.



previously backtesting from 01nov2018- 01dec,2018 will produce a percentage of only 1-7% loss trades, and winning rate is always around  92%-99%, the inconsistency was only affecting a very few trades. (bearing in mind the settings used for the backtest was SL50 TP15 Trailing7 spread was 3pips not points on EURUSD 1m chat or 5min chart) The expected payoff and profit factor numbers are always high.
I ran back tests on the original EA and the results were all over the place with the same exact conditions. One test was in profit, another was about break even, and another was in loss. All with the same exact settings and everything. So I'm not quite understanding what you mean by inconsistency because the original EA was inconsistent.



i don't now why i'm not receiving an mq4 back, as a new member that have posted mostly mq4 and complete strategy details, i had choice of not posting mq4, but i did so that other traders will be able to understand intentions of the strategy and others can learn. i feel a sad that i'm getting ex4 trials so i cant see the changes you made,how do i learn from the .ex4 ? i really came here with good intentions and a open heart. i'm feel a bit depressed :(
You did not specifically ask for an MQL4 though. Nor did I know you wanted to learn from the code or compare changes. The EX4's were posted because the changes are not final. Once you were happy and have tested the EA, I can post the final MQL4. It makes no difference to me.

You did not have a choice of not posting MQL4 yourself, because you were asking for modifications. So you had to post MQL4 or else modifications could not be done.

You feel depressed after coming here to get free work done and actually getting a free and fast response? I have worked on hundreds of jobs and have worked with many EA coders. I can honestly tell you that most coders would not even consider work you wanted done for less than a couple hundred dollars. Many coders would even ignore your request. As the original coder probably has. You should be happy, not depressed.


#25 - December 19, 2018, 12:46:06 PM

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0

Not accurate means that EA is not doing the accurate calculations from the updated history before opening every new trade .
Can you give an example of an accurate or inaccurate calculation though? As I said before, the strategy logic is intact and little was changed in the EA.




previously backtesting from 01nov2018- 01dec,2018 will produce a percentage of only 1-7% loss trades, and winning rate is always around  92%-99%, the inconsistency was only affecting a very few trades. (bearing in mind the settings used for the backtest was SL50 TP15 Trailing7 spread was 3pips not points on EURUSD 1m chat or 5min chart) The expected payoff and profit factor numbers are always high.
I ran back tests on the original EA and the results were all over the place with the same exact conditions. One test was in profit, another was about break even, and another was in loss. All with the same exact settings and everything. So I'm not quite understanding what you mean by inconsistency because the original EA was inconsistent.




i don't now why i'm not receiving an mq4 back, as a new member that have posted mostly mq4 and complete strategy details, i had choice of not posting mq4, but i did so that other traders will be able to understand intentions of the strategy and others can learn. i feel a sad that i'm getting ex4 trials so i cant see the changes you made,how do i learn from the .ex4 ? i really came here with good intentions and a open heart. i'm feel a bit depressed :(
You did not specifically ask for an MQL4 though. Nor did I know you wanted to learn from the code or compare changes. The EX4's were posted because the changes are not final. Once you were happy and have tested the EA, I can post the final MQL4. It makes no difference to me.

You did not have a choice of not posting MQL4 yourself, because you were asking for modifications. So you had to post MQL4 or else modifications could not be done.

You feel depressed after coming here to get free work done and actually getting a free and fast response? I have worked on hundreds of jobs and have worked with many EA coders. I can honestly tell you that most coders would not even consider work you wanted done for less than a couple hundred dollars. Many coders would even ignore your request. As the original coder probably has. You should be happy, not depressed.
I'm sorry i jumped into a wrong assumption, i did not come here for free work I came to share and learn. Thats why i started first by sharing. 
Thanks for making its results constant and all the effort, I appreciate every single thing you've done, the backtests showed that the entry strategy changed 
 for example
i.in backtest the first trade is always opened at asia open, 
ii. those first few trades in the beginning are always profitable in every repeated backtest, you will need to download history from history center for the current 4Hr chart of the pair you want to backtest and restart mt4 before backtesting the original ver. (try audusd 5Min/1min chart TP25 SL65 Trail 4pips. use 0.1 fixed spread  20points or 2pips) 

  i have attached a backtest i made using the old version for the past 30days


#26 - December 19, 2018, 06:19:20 PM
Attachments:

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
I'm sorry i jumped into a wrong assumption, i did not come here for free work I came to share and learn. Thats why i started first by sharing. 
I appreciate you sharing your EA. All I am saying is that you should not be depressed since you have not lost anything. I simply didn't upload the MQL4 because the changes were not final yet and also you did not ask for it.
#27 - December 20, 2018, 12:34:56 PM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14

  i have attached a backtest i made using the old version for the past 30days
I have backtested with different settings and I don't get results not even close to yours. I would be interested to know the exact settings you used and the broker.
#28 - December 20, 2018, 12:37:44 PM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14

Thanks for making its results constant and all the effort, I appreciate every single thing you've done, the backtests showed that the entry strategy changed
 for example
i.in backtest the first trade is always opened at asia open,
ii. those first few trades in the beginning are always profitable in every repeated backtest, you will need to download history from history center for the current 4Hr chart of the pair you want to backtest and restart mt4 before backtesting the original ver. (try audusd 5Min/1min chart TP25 SL65 Trail 4pips. use 0.1 fixed spread  20points or 2pips)

Please review the attached back tests. I have some points I want you to understand.

  • There are 2 back tests from the modified EA. The results are the SAME. There are also 6 back tests of the original EA. They are all DIFFERENT. So the new version is consistent, but the old EA is more random. So it makes it difficult to claim the strategy logic has been changed if there is little or no foundation for comparison.
  • You can see that the original EA has only sell orders. This is because the EA can't get values from the file and data[0] and data[1] are always ZERO! The modified EA has BUY and SELL orders, because data[0]=iTime(NULL, PERIOD_H4, 0) and data[1]=iClose(NULL, PERIOD_H4, 0) and these values are NOT zero. This is not a change in strategy, but a fix.
  • You mentioned the first trades always opening at Asia open. The original EA placed the first trades at random times. So I think you mean the new EA opens trades at Asia open. The region is irrelevant to the EA. If the broker would be based in EST or GMT time, the EA would still open trades the same.

#29 - December 20, 2018, 01:00:44 PM
Attachments:

  • Newbie
  • Posts: 49
  • Points: 795
  • Likes Received: 20
  • Reputation: +3/-0
I'm sorry i jumped into a wrong assumption, i did not come here for free work I came to share and learn. Thats why i started first by sharing.
I appreciate you sharing your EA. All I am saying is that you should not be depressed since you have not lost anything. I simply didn't upload the MQL4 because the changes were not final yet and also you did not ask for it.
 I'm sorry once again my bad
#30 - December 20, 2018, 01:10:40 PM

Members:

0 Members and 1 Guest are viewing this topic.