Hi Dr. Phoenix,
Sorry for the long delay. I was unable to fully investigate using the hedging option together with the modifications I made. I did look at the hedging code and it looks rather complex. Unfortunately, in the limited time available to me I was unable to figure it all out. I hope some other programmer will have to time to figure it out and make any modifications required.
The part-close options should work out of the box with my Jumping stop loss / Tightening stop settings. Just set JumpingStop to true, TrailingStop to false, choose your preferred Tightening stop settings, then follow the part-close instructions from the original MPTM PDF manual which you can download here:
http://www.stevehopwoodforex.com/phpBB3 ... php?id=181
Here is the relevant part-close section from the MPTM manual:
2) Jumping stop loss settings: this will jump the stop loss by JumpingStopPips when
the price moves in your favour by that number of pips. Many traders consider this to
be a better option than a straight trailing stop. The first time this option is triggered
by the market price, it will set the stop loss to break even. After that, it will increment
the sl by JumpingStopPips every time the market moves sufficiently in your favour.
This routine incorporates settings to part-close a percentage of the profits every
time the sl jumps.
● JumpingStop: set to true to enable this facility.
● JumpingStopPips: the number of pips to jump. For example, my default of 300
works like this:
• Market price hits order open price + 300: moves sl to break even.
• Market price hits order open price + 600: moves sl to + 300.
• Market price hits order open price + 900: moves sl to + 600.
● AddBEP: adds BreakEvenPips to the break even if set to 'true'.
● JumpAfterBreakevenOnly: use this in cooperation with BreakEvenSettings to
manage longer-term or positional trades. If set to 'true', this will force
JumpingStop to wait until the sl has been moved to breakeven before operating.
● HideJumpingStop: this hides your 'real' jumping stop from the broker when set
to true.
● PipsAwayFromVisualJS: the number of pips away from the stop shown in the
trade you want your real stop. For example, you want a real stop loss of 200
pips and an emergency trade stop of 400, so you set:
• JumpingStopPips = 400.
• PipsAwayFromVisualJS = 200.
● ---- part-close settings----
● PartCloseEnabled: set this to 'true' to enable the routine.
● Close_Lots: this is the amount of the trade you wish to close at each jump.
● Preserve_Lots: this is the amount you want to leave 'on the table'. The ea will
only close down the amount of the trade you specify in Close_Lots if there is
more than this setting left to close.
For example, suppose you have a 1 lot trade. You want:
● The jumping stop to move the sl every 20 pips profit.
● Lock in 2 pips profit at the first jump.
● 0.2 lots of the trade closed at each jump.
● 0.4 lots of the trade left on the table to follow the move until tp or a retrace hits your
stop.
These would be your settings:
● JumpingStop: true
● JumpingStopPips: 20
● AddBEP: true (and set AddBEP to 2 a little higher up)
● JumpAfterBreakevenOnly: false
● PartCloseEnabled: true
● Close_Lots: 0.2
● Preserve_Lots: 0.4
Please let me know how it works out for you.
Yes, the EA has so many parameters that it can be overwhelming. I too was overwhelmed in the beginning and searched online in vain for .set files with preset parameters. Since I didn't find any preset files, I had no choice but to take the time to read the manual to understand the different options. So to understand all the EA parameters, you can read Steve's original manual, plus within the MPTM_GLobal's input dialog window, you can read all the descriptions of each new feature I added.
Since the full descriptions in MPTM_GLobal's input dialog window are concise and self-explanatory, I felt that no manual was required. Just take your time and go through the descriptions in the order they appear, from top to bottom, to understand how all the different features work together.
As I mentioned in my first post to this topic, if the descriptions of some of the features are cut off because Empty4 doesn't allow resizing of their EA input dialog box, then I suggest that you use the very small portable ResizeEnable program for PCs to turn Non-Resizeable Windows into Resizeable Windows so that you can easily see the full descriptions.
You can also use the InputResizer EA/Indicator from
http://www.forexfactory.com/showthread.php?t=299017 but I prefer the easier to use ResizeEnable that sits in your system tray.
You can read about ResizeEnable here:
http://www.howtogeek.com/howto/11799/tu ... e-windows/
And you can download it here:
http://www.digitallis.co.uk/pc/ResizeEnable/index.html