Trade Entry/Management EA - EASY ORDER Amended

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

Re: Trade Entry/Management EA

Unread post by Darren »

I have been playing around some more with the EasyOrder plug-in and I think it is working out risk assuming that your account is in USD. My account is in GBP so this may be a slight problem, although the source is open so it may be possible to do a conversion somehow, but this is a little beyond me! If there any programming guru's out there and this is a quick thing to change I would really appreciate it. :)

EDIT: Someone asked the same question in the FF forum and the author gave some code to replace the existing code so that problem has now been solved and risk is now being calculated based on a GBP account. :)
User avatar
immy
Founder
Founder
Posts: 9654
Joined: 22 Nov 2010, 16:46
14

Re: Trade Entry/Management EA

Unread post by immy »

Darren wrote:I have been playing around some more with the EasyOrder plug-in and I think it is working out risk assuming that your account is in USD. My account is in GBP so this may be a slight problem, although the source is open so it may be possible to do a conversion somehow, but this is a little beyond me! If there any programming guru's out there and this is a quick thing to change I would really appreciate it. :)

EDIT: Someone asked the same question in the FF forum and the author gave some code to replace the existing code so that problem has now been solved and risk is now being calculated based on a GBP account. :)
The one I downloaded, still does Risk on USD. Can you please upload the version here. I have just managed to allow any sorts of file extensions specially mq4 adn ex4 without the need to zip them. So you can attach it here as a single file if you like.

thanks
What is the Secret of Successful Trading?
The Consistent Pursuit of DS1 :nerd

The thing that makes me money in trading is when I "Objectively Follow my Trading Plan".

I understand that I can't catch all the moves or all the signals but my objective is to catch THE VALID SIGNALS & ONLY the Valid Signals.

My Deathbed Advice "5:1 Reward to Risk Ratio".

Yo, banana boy! 🍌
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: Trade Entry/Management EA

Unread post by Darren »

I have attached the changed script. I have attached both the .mq4 and .ex4 but I am not sure if you need both. This script replaces the original. If you could give it a go and let me know if you think it works out the risk correctly as I only tried it on a GBP account. :)

Cheers,

Darren

EDIT: I have removed the files as they were the wrong ones. I uploaded a modified version that entered 2 orders instead of one as I wanted to enter 2 orders with different TP's. The correct version is now in the zip file below.
Last edited by Darren on 10 May 2013, 22:41, edited 2 times in total.
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: Trade Entry/Management EA

Unread post by Darren »

I have zipped the whole lot to make things easier. Hopefully I did it correctly! This zip file replaces the original.

EDIT: I have amended the OrderSend script once again so that it submits 2 orders instead of 1 so that you can have different TP's for each order. This version also has the change that allows the correct calculation of the risk based on the account currency. It also splits the risk between the two orders, so if you requested a risk of 1% then you will get two orders each with a risk of 0.5%.
You do not have the required permissions to view the files attached to this post.
Last edited by Darren on 13 May 2013, 07:09, edited 2 times in total.
User avatar
immy
Founder
Founder
Posts: 9654
Joined: 22 Nov 2010, 16:46
14

Re: Trade Entry/Management EA

Unread post by immy »

Darren wrote:I have zipped the whole lot to make things easier. Hopefully I did it correctly! This zip file replaces the original.
Perfecto... I WILL USE THIS! I've just tested it and it calculated the lot size corrected. I have a GBP account. Thank You Darren!
What is the Secret of Successful Trading?
The Consistent Pursuit of DS1 :nerd

The thing that makes me money in trading is when I "Objectively Follow my Trading Plan".

I understand that I can't catch all the moves or all the signals but my objective is to catch THE VALID SIGNALS & ONLY the Valid Signals.

My Deathbed Advice "5:1 Reward to Risk Ratio".

Yo, banana boy! 🍌
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: Trade Entry/Management EA

Unread post by Darren »

No problem. ;)
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: Trade Entry/Management EA

Unread post by Darren »

Sorry Immy - I have just realised that the version of the script that you downloaded had an amendment in it which submitted two orders instead of one. This is because I was playing around with the script so that it would submit two orders so that each order could have different TP's. The amendment wasn't complete and so if you required a risk of 1% you would get two orders, each with a risk of 1%!.

I have removed that amendment, kept the amendment to use the correct account currency for risk, re-zipped the file, deleted the wrong one and uploaded the correct version so all should be good now - just download it again and replace the previous version. It was only downloaded once so that must have been you! You may want to re-test it again though.

Sorry for the inconvenience - I knew I shouldn't do technical things on a Friday evening! :)

Cheers.
User avatar
immy
Founder
Founder
Posts: 9654
Joined: 22 Nov 2010, 16:46
14

Re: Trade Entry/Management EA

Unread post by immy »

Darren:

That is fantastic, I use two orders each .5% using my magic lines in conjunction with VE AIMS. Now this is what we call integration. I'll order two .5% I'll set one to 1:1 and the next to somewhere out of this recession levels :D cheers (Gretel and Hansel lets have a party ) Darren you're a crafty bugger!
What is the Secret of Successful Trading?
The Consistent Pursuit of DS1 :nerd

The thing that makes me money in trading is when I "Objectively Follow my Trading Plan".

I understand that I can't catch all the moves or all the signals but my objective is to catch THE VALID SIGNALS & ONLY the Valid Signals.

My Deathbed Advice "5:1 Reward to Risk Ratio".

Yo, banana boy! 🍌
User avatar
Darren
Posts: 891
Joined: 20 Nov 2012, 13:54
12

Re: Trade Entry/Management EA

Unread post by Darren »

Ha - I am the crafty bugger and you are the genius, there are also a few coding gurus here and terrific traders - what a team we are building here!!! (party)

I have removed the bit of code that enters two orders instead of one as it was misleading, because if you entered a risk of 1% then you would actually get two orders totaling 2%! You already have the '2 order' script but if you want me to upload that version for others then I am happy to do that but it may be better if I change it again to enter two trades of 0.5% if you requested a 1% risk trade. I don't have time at the moment so I will do that over the weekend or on Monday.

Cheers. :)
User avatar
immy
Founder
Founder
Posts: 9654
Joined: 22 Nov 2010, 16:46
14

Re: Trade Entry/Management EA

Unread post by immy »

Thanks Darren, Just one EA with correct code would do I think! cheers

note: the new feature of MT4 drag and drop may interfere with moving lines from time to time... it already happened to my VE AIMS, but then again I was stupid to use both the facilities ... haha
What is the Secret of Successful Trading?
The Consistent Pursuit of DS1 :nerd

The thing that makes me money in trading is when I "Objectively Follow my Trading Plan".

I understand that I can't catch all the moves or all the signals but my objective is to catch THE VALID SIGNALS & ONLY the Valid Signals.

My Deathbed Advice "5:1 Reward to Risk Ratio".

Yo, banana boy! 🍌
Locked