Forex Zone - Forex Forum

Simple system

Discussion started on New EA Coding

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
If you can, please send me a screen shot.
Just to give you a little bit of insight to an EA.
It runs through all the lines of code on every single tick that you receive from your broker.
It ONLY works if the computer is connected to the broker server, so if you loose internet connection, the EA still seems as if it works because you see a smiley face in the top right corner, however, it doesn't do anything.

I've done a quick test also with 10 pip X_Diff and 2 trades.
You will see it closes the sells 1 and 2  as soon as the buys hit the X-Diff profit levels. 

The you will see at 3 & 4, it closed the buys when the sells at 5 (purple line) reached it's X-Diff value....
#76 - January 23, 2019, 09:51:40 PM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Would a stop loss of gap x grid size work?
It must be a trailing stop, else it won't lock in profits.Effectively the EA does trail now , the prices you see at the top left corner is where the EA will close a buy or sell order, so if the market moves up, you will see the price target for buy close will move higher.
The difference between a "fixed" trailing stop, and how the EA is set up now is a Fixed TS will trail the marker by x-amount of pips, irrespective of the lowest open sell price.
Now the EA trails the market to the lowest sell price - your X_Diff PROFIT...
#77 - January 23, 2019, 09:58:08 PM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Hi f,

It's definitely an error somewhere.... It never wants to give up the losers.
#78 - January 24, 2019, 12:02:11 AM
Attachments:
« Last Edit: January 24, 2019, 12:05:06 AM by Blanco »

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I see your grid size is set to 10, that is 1 (One) pip.
The EA will not work properly with such a tight setting, only because there are not many brokers who will allow a stop so close to the market. (And the EA uses those values to calculate exits and entries)
If you want a 10 pip grid, the grid size must be set to 100.
Please test it with the correct settings
I attached the new EA again. 
Please make sure you load version 1.1
I've inserted a comment so you can see which version is running.
Close all the trades you have open which the EA opened before you load the new version.



#79 - January 24, 2019, 12:25:35 AM
Attachments:

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Hi f,

You're saying that it will only work on 10 pips and above? If I watch it and cancel the orders manually, they quite happily replace themselves with pending orders at a much smaller level... 1 pip. T
#80 - January 24, 2019, 01:27:58 AM
« Last Edit: January 24, 2019, 01:30:25 AM by Blanco »

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Please check the top left corner if it shows the EA name.
If it doesn't, you are running the incorrect version and replace it with the version in my previous post.
I've ran it now with a 10 point X_Diff, please see the screen shot. (This was done on a live account)
You will see the journal keeps on giving "Error 130", that means the Stops are invalid and the broker won't accept the order. ( My min StopLoss level with this broker is 40 points) I attach a screenshot of that as well for you so you can see

#81 - January 24, 2019, 01:44:45 AM
Attachments:

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Thanks francois, I will do that tomorrow, it's 2am here in Portugal and I should be asleep already... So the new version will do smaller depending on the broker? T
#82 - January 24, 2019, 01:49:04 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Definitely broker dependant 
#83 - January 24, 2019, 09:22:24 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I ran the EA on a live account today, also with 10 pip X_Diff, it worked ok, but I see it needs a bit more specifics on the closing of orders.
I will go through the closing again, and see if I can get it perfect
#84 - January 25, 2019, 01:00:20 AM

  • Hero Member
  • Posts: 1215
  • Points: 0
  • Likes Received: 566
  • Reputation: +15/-3
I ran the EA on a live account today, also with 10 pip X_Diff, it worked ok, but I see it needs a bit more specifics on the closing of orders.
I will go through the closing again, and see if I can get it perfect
sir, hopefully it can produce maximum profit with this EA x_Diff trading system ... if it is successful, please share the system again in zip form!
#85 - January 27, 2019, 04:29:17 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I have done some adjustments to the EA, it is running on a demo account, I just want to make sure it does everything the way it should on live data, as it works quite well in the strategy tester.
#86 - January 28, 2019, 11:56:46 AM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Francois, what results are you getting with what settings? T
#87 - January 28, 2019, 09:35:30 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
It is closing trades better now, but there is still one close I am not happy with.
I am working on it, should be done tonight.
#88 - January 29, 2019, 08:14:05 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Hi Tony
Here is your EA, version 2.0
Please make sure the EA you run is the latest.
I am quite sure it does everything you asked for, the way you asked for it.
I still have the auto grid size disabled, if you are familiar with the EA as it is now, I will enable it again so you can see if that is something you would like.
Please let me know how it does.
F
#89 - January 30, 2019, 01:24:46 AM
Attachments:

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Thanks again for everything,I'll give it a spin and report back. T
#90 - January 31, 2019, 01:21:50 AM

Members:

0 Members and 1 Guest are viewing this topic.