Forex Zone - Forex Forum

Simple system

Discussion started on New EA Coding

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
An example of what I posted above. I'm using 3 orders either side and 50 
 pip gap. As the price rises further I will change the 1.13800 Sellstop to 1.13950, I should've done it already.
#16 - January 03, 2019, 07:09:43 PM
Attachments:
« Last Edit: January 03, 2019, 07:16:32 PM by Blanco »

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
An example of what I posted above. I'm using 3 orders either side and 50
 pip gap. As the price rises further I will change the 1.13800 Sellstop to 1.13950, I should've done it already.
OK, I know exactly what you meant in the 1st place, I am just trying to ascertain when do you close those buys? A sell_stop will close the buy trade with some brokers, but with other brokers it will not close a buy trade but merely place a sell trade. 
PS. You say here you use a 50 pip gap, according to your image, it is a 5 pip gap, (which is 50 points). Keep this in mind when I send the EA, all the "pip" options are in points, (If you didn't know, 1 pip = 10 points, with the "new" system of 5 decimals, and 3 decimals on the JPY pairs)
#17 - January 03, 2019, 08:21:42 PM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Pips / points, I never could get the gist of it but thanks for the clarification. 
The buys on my screenshot would be closed when another buystop is required... So if the price reverses it'll trigger a sellstop, when that sell is x pips in profit the new buystop is entered to replace the furthest away buy... It has to close to keep the all important balance either side.
Thanks again for your time on this.
#18 - January 03, 2019, 08:39:30 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Now it makes more sense.
8)
#19 - January 03, 2019, 08:45:03 PM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Sorry for any confusion, it's very difficult to explain something like this.
#20 - January 03, 2019, 08:48:26 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
The explanation is good of the initial system, the closing of open orders was confusing.
Just one more thing, I see your screen shot is from a mobile device, (maybe because you were picking olives :)), an EA does not work on a mobile device. 
Also, I am coding the EA in MQL4, which is for MT4 and not MT5.
#21 - January 03, 2019, 08:56:11 PM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Hi francois, I use my tablet mostly for messaging etc but am aware of the ea pc requirement. I do use mt4 too.

I am also looking for a robot to do the olives, it's a thankless task.
#22 - January 03, 2019, 09:00:49 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Sorry, I can't help with an olive robot, closest I might get is if you took a picture, load it (somehow) on a MT4 chart, I can try and make something to count the olives :-\
#23 - January 03, 2019, 09:04:46 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Tony
Attached is a BETA version for the EA.
Run it on strategy tester to see if the order placing and modifying is what you need.
The EA does not close trades yet, I will the closing of open orders once you are happy with this.
Then also send a screenshot where you find a good place where and when to close trades, knowing where and how to get out of the market is (in my opinion) more important then getting in.
Also I attach a screen shot of quite a nice sell setup....
#24 - January 03, 2019, 10:31:45 PM
Attachments:

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Hi francois, please forgive my ignorance but I have no idea what to do with that file.
#25 - January 04, 2019, 12:02:06 AM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
That is the robot.

  • Open your MT4 platform
  • Click on "File" >> "Open data folder"
  • It will open an explorer window
  • Open the "MQL" folder
  • Open the "Experts" folder
  • Copy the EX4 file to that folder and close the explorer
  • In your Navigator in MT4 you can either right click in "Experts" and click "refresh" , OR just restart your MT4 platform.


Now the robot is loaded in your platform.

Go to strategy tester, see attached image.
There you select the EA you want to test, and other parameters.
In the "expert properties" you can adjust the gap difference etc.
Make sure you select "Visual mode" if you want to see on a new chart what the expert does. Click "Start" and enjoy

You can also go to the MT4 help file for more info on strategy tester (Click anywhere in strategy tester and press F1).
 I hope this helps
#26 - January 04, 2019, 12:58:53 AM
Attachments:
« Last Edit: January 04, 2019, 01:02:32 AM by Francoisvs »

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
Ok, again thanks for your help with this... I appreciate it.

I have no visual tested on my mt4 so I dropped it on a chart and went to continue with the olives. Anyway, I have it on as 3 max buys / 3 max sells but it currently has 5 buys and 1 sell... Also, it is not putting any locking orders in so not collecting profits.

Tony
#27 - January 04, 2019, 01:42:49 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
Please do not put it on a real money account yet.
I also said, it is just a beat version, to open orders, I don't understand why there will be 5 buys and 1 sell, it can open a max of 3 in each direction, (if Max_Buys and Max-Sells are set to 3)
Please send me a screen shot.
It will not lock in any profits yet, as there is nothing in the EA to start locking in profits
#28 - January 04, 2019, 02:45:20 PM

  • Jr. Member
  • Posts: 62
  • Points: 0
  • Likes Received: 14
  • Reputation: +1/-0
I understand that it isn't ready, I was just giving feedback, don't worry, I'm not going to go live just yet. My pc doesn't do screenshots but here's from tablet. Cheers, t
#29 - January 04, 2019, 04:01:11 PM
Attachments:
« Last Edit: January 04, 2019, 04:18:28 PM by Blanco »

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I will work on it again later today. 
#30 - January 04, 2019, 04:30:03 PM

Members:

0 Members and 3 Guests are viewing this topic.