EASY ORDER Trade Management EA

1. There are 2 Trade Management Techniques Available
a. Dot to Dot
b. Grants Trade Management Technique
2. Trade Management Expert Advisors
3. Trade Management Scripts etc
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

EASY ORDER Trade Management EA

Unread post by Darren »

As suggested by Immy, I shall put the latest versions of the EasyOrder scripts in this first post. :)

Here is the link to the original topic as there is some useful information there, but it won't be updated anymore:

http://www.itradeaims.net/forum/viewtop ... f=56&t=940

You may need the Microsoft Visual C++ 2008 Redistributable Package installed on your PC if you don't have it. Or maybe you have it but it is corrupted or something:

http://www.microsoft.com/en-us/download ... aspx?id=29

Make sure your Options look like the dialog below, otherwise EasyOrder won't work! (Tools/Options)
2014-08-15_1503Options.png
To use the scripts you need to either select a Buy Stop or a Sell Stop as you would have done previously using the Easy Order box, you will then get the two lines. The blue line is the entry line, the red line is the stop loss.

If you entered a Buy Stop or Sell Stop then you can run the "##MoveLinesToLastFrac" script and that will move the lines to the latest fractal high and low. If you want to place a PO on an inside bar then you can run the "#MoveLinesToLastIB" and that will move the lines to last inside bar. If you want the to place a PO on the last bar then you can run the "#MoveLinesToLastBar" script and that will place the lines at the last bar. When you run the scripts you will see a pop up box asking how many pips above and below the fractal or last bar that you want to place the order. By default this is set to 1.5 pips above and 1 pip below, but you can change it to what you want.

I have set up a hot key for each of the scripts so it is very fast to move the lines and set the PO's to where you want them. To use a hotkey open up the MT4 Navigator in your MT4 Terminal and right click on the script. A menu will appear and one of the options will be Set Hotkey, click on it. Then you will see a dialog with all of the scripts that you have loaded, so find the #MoveSLToNewSLLine script and select a control (Alt or Ctrl) and a number or letter. I use "Alt 5" myself as I have 5 scripts I use regularly. Press close and you are done! To use the script you press the two keys (e.g. Alt 5) and the script will run. Using hotkeys is an extremely quick way of running scripts so it is well worth spending 30 seconds setting them up.

Once the lines are where you want them press 'Submit' on the Easy Order window and the PO's will be submitted. If the risk is set to 1 percent then it will submit 2 orders of 0.5% each. If you don't want 2 orders then you can amend the code yourself, there are only 2 lines that need to be removed.

Make sure you put all of the scripts in the MQL4/scripts folder and the dll in the MQL4/libraries folder.
The source is open so change whatever you like to make life easier!
You do not have the required permissions to view the files attached to this post.
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: EASY ORDER Trade Management EA

Unread post by Darren »

If you don't want two orders submitted then open up MetaEditor and find the EasyOrder_Submit.mq4 script and delete the two highlighted lines and then press compile. You will then just have one purchase order at the required risk instead of the two PO's at half risk! :)
You do not have the required permissions to view the files attached to this post.
Moziah
Free Member
Free Member
Posts: 25
Joined: 02 Sep 2012, 21:10
13

Re: EASY ORDER Trade Management EA

Unread post by Moziah »

Hi Darren

The Lot Size calculated for DAX trades is incorrect, the script works perfectly on Currency Pairs.

What amendments do I need to make on the EasyOrder_Submit Script to correct it?

Any assistance on this matter would be greatly appreciated.

Regards,
Moziah
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: EASY ORDER Trade Management EA

Unread post by Darren »

Moziah wrote:Hi Darren

The Lot Size calculated for DAX trades is incorrect, the script works perfectly on Currency Pairs.

What amendments do I need to make on the EasyOrder_Submit Script to correct it?

Any assistance on this matter would be greatly appreciated.

Regards,
Moziah
You will probably have to work out the lot size yourself and use fixed lots, that is what I do. If you look at the bit of code I annotated above you will see a line saying:

lot = lot/2;

If you want a fixed lot size just for Dax, then look up what your Symbol name is (mine is DAX30SB) then put some code similar to what I have written below underneath the line of code saying "lot = lot/2;"


lot = lot/2;

if (Symbol()=="DAX30SB")
{
lot = 2;
}


Obviously changing the lot size to what you want and the symbol name!

Hope that helps.
Moziah
Free Member
Free Member
Posts: 25
Joined: 02 Sep 2012, 21:10
13

Re: EASY ORDER Trade Management EA

Unread post by Moziah »

Thank you!!
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: EASY ORDER Trade Management EA

Unread post by Darren »

Sorry, forgot to mention that you will have to compile the code after you have made the changes!
Skywalker
Free Member
Free Member
Posts: 86
Joined: 08 Jun 2014, 12:17
11

Re: EASY ORDER Trade Management EA

Unread post by Skywalker »

Hi Darren,

Hope you are doing well. Do you know how to get rid of the "Buy" and "Sell" market orders at the drop down of your Easy Order EA? It just happened that I falsely opened a market order instead of a PO. To avoid this in the future and due to the fact that I never use market orders I would prefer to be able to choose between PO orders only?

Many thanks,
Ralf
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: EASY ORDER Trade Management EA

Unread post by Darren »

I am sure I tried to get rid of them before without any luck, but I will have another look when I get a minute! :)

Edit: After a quick look I think the list is embedded in the dll, so there is nothing I can do. Maybe someone with more programming experience my know a way though! :-?
Skywalker
Free Member
Free Member
Posts: 86
Joined: 08 Jun 2014, 12:17
11

Re: EASY ORDER Trade Management EA

Unread post by Skywalker »

Thanks Darren for looking into this. I also think it's in the dll.

Let's see if there is another expert who knows how to modify dll.

Have a good weekend!
chapfxman
Free Member
Free Member
Posts: 7
Joined: 22 Feb 2013, 22:26
12

Re: EASY ORDER Trade Management EA

Unread post by chapfxman »

Hello,

I need some help to get the “Easy Order” EA to work on my MT4 platform. Have put the scripts in the MQL4/script folder and the dll in the MQL4/libraries folder as per the instructions.

This is what I do:
I drag the “Easy Order” script on to the chart and then select “Buy Stop” or “Sell Stop” and the blue and red lines appear on the chart. I then drag the “##MoveLinesToLastFrac” on to the chart and then press “Submit”. I don’t see any pending order and also when the price crosses the blue line no order is opened either. I am testing this on GKFX demo account if that makes any difference.

Could anyone please advise on what I am doing wrong.

Many thanks,
Barry
Post Reply