I made a comment in BASA thread a week or so ago about looking for a way to set a breakeven point equal to the stop loss of a manual trade. Incredibly Tommaso (Milanese) was kind enough to put together an EA doing exactly that in no time whatsoever.
Since that point the EA expanded slightly, again with Tommaso's generous help, to include a % part close and I added a tiny part to allow some flexibility with respect to the ratio of SL to BE (so any issues there, the fault is definitely mine!).
I have tested this for a while now with my manual trading and I find it invaluable and very simple. I use it to secure a BE point and a small amount of profit whilst leaving the majority of my trade to run - this works well for me.
Most of the settings should be very familiar to you all as they are based on Steve's MPTM.
It is a multi-pair ea so only needs to go on one chart.
Inputs that might need clarification:
MagicNumber - 0 for manually entered trades otherwise.....
PartClosePercent - in whole % numbers so 30.0 = 30% of the trade to close
BEPercentSLIncrement - this is the amount you wish to increase or decrease your BE point relative to your SL distance. So if you want your BE point at the same distance from entry as your SL then set this to 0.0. If you want it to be 50% further away from your entry point then you would put 50.0 if you want it 50% CLOSER to your entry point then you can enter -50.
After adding BEPercentSLIncrement (not the catchiest of names - sorry) I haven't actually used it much, but I think it is still useful, so if you plan to use this then please test it thoroughly.
All credit and many thanks to Tommaso for his generosity!
Cheers,
Dave.
SL=BE EA for manual trades
-
spotdespot
- Trader
- Posts: 768
- Joined: Sun Jan 22, 2012 11:38 pm
SL=BE EA for manual trades
You do not have the required permissions to view the files attached to this post.
- putusernamehere
- Trader
- Posts: 107
- Joined: Fri Nov 15, 2013 8:56 pm
Re: SL=BE EA for manual trades
Hallo Davespotdespot wrote:I made a comment in BASA thread a week or so ago about looking for a way to set a breakeven point equal to the stop loss of a manual trade. Incredibly Tommaso (Milanese) was kind enough to put together an EA doing exactly that in no time whatsoever.
Since that point the EA expanded slightly, again with Tommaso's generous help, to include a % part close and I added a tiny part to allow some flexibility with respect to the ratio of SL to BE (so any issues there, the fault is definitely mine!).
I have tested this for a while now with my manual trading and I find it invaluable and very simple. I use it to secure a BE point and a small amount of profit whilst leaving the majority of my trade to run - this works well for me.
Most of the settings should be very familiar to you all as they are based on Steve's MPTM.
It is a multi-pair ea so only needs to go on one chart.
Inputs that might need clarification:
MagicNumber - 0 for manually entered trades otherwise.....
PartClosePercent - in whole % numbers so 30.0 = 30% of the trade to close
BEPercentSLIncrement - this is the amount you wish to increase or decrease your BE point relative to your SL distance. So if you want your BE point at the same distance from entry as your SL then set this to 0.0. If you want it to be 50% further away from your entry point then you would put 50.0 if you want it 50% CLOSER to your entry point then you can enter -50.
After adding BEPercentSLIncrement (not the catchiest of names - sorry) I haven't actually used it much, but I think it is still useful, so if you plan to use this then please test it thoroughly.
All credit and many thanks to Tommaso for his generosity!
Cheers,
Dave.
thanks for the great work its a cool utility to trading
kind regards and looking forward
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Re: SL=BE EA for manual trades
Dave, if you need some other stuff integrated or you find some bugs just let me know...
Cheers
Tommaso
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
spotdespot
- Trader
- Posts: 768
- Joined: Sun Jan 22, 2012 11:38 pm
Re: SL=BE EA for manual trades
Thanks Tommaso but it does all I need it to for now.milanese wrote:Dave, if you need some other stuff integrated or you find some bugs just let me know...
Cheers
Tommaso
Thanks again,
Dave.