That needs removing from the guide as it is redundant. One of the clever coders here amended the code so that the preservation is automatic.renegade wrote:Thanks Steve for another great tool. I have one question though. I am setting up per PDF and when Partial close is enabled I can not find the preserve lots setting anywhere. I am setting up per your first example in the guide. Any help would be greatly appreciated.
MPTM's new home
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: MPTM's new home
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
renegade
- Trader
- Posts: 12
- Joined: Tue Apr 30, 2013 3:37 pm
Re: MPTM's new home
Thanks Steve for the quick reply. Can't wait to test this baby out!
-
fxturtle
- Posts: 1
- Joined: Sat Nov 09, 2013 6:47 pm
Re: MPTM's new home
Hi Steve,
This is what i'm trying to achieve in the great ea. Thanks Steve for the generosity.
I want to set BE after moving 50 pips in my favor.
I want to secure 10 pips profit after 50 pips.
I want to trail by 5 pips after 100 pips profit is hit and a maximum TP of 125 pips.
These are my setting:
BreakEven Settings
BreakEven: True
BreakEvenPips: 50
BreakEvenProfit: 10
Trailing Stop Loss Setting
TrailingStop: True
UseStandardTrail: True
TrailingStopPips: 100
StopTrailAtPipsProfit: True
StopTrailPips: 5
Hidden Take Profit Setting
HiddenTakeProfitEnabled: True
HiddenTakeProfitPips: 125
I've never used an EA before, but your tool is very handy when i'm away from my computer.
Thanks a lot.
This is what i'm trying to achieve in the great ea. Thanks Steve for the generosity.
I want to set BE after moving 50 pips in my favor.
I want to secure 10 pips profit after 50 pips.
I want to trail by 5 pips after 100 pips profit is hit and a maximum TP of 125 pips.
These are my setting:
BreakEven Settings
BreakEven: True
BreakEvenPips: 50
BreakEvenProfit: 10
Trailing Stop Loss Setting
TrailingStop: True
UseStandardTrail: True
TrailingStopPips: 100
StopTrailAtPipsProfit: True
StopTrailPips: 5
Hidden Take Profit Setting
HiddenTakeProfitEnabled: True
HiddenTakeProfitPips: 125
I've never used an EA before, but your tool is very handy when i'm away from my computer.
Thanks a lot.
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
Hallo fxturtle,
The BreakEven settings are pretty straightforward, and your setfile for these looks OK.
However, the 2nd part ("...I want to trail by 5 pips after 100 pips profit is hit...") is a bit tricky.
Your trailing stop settings (as per your setfile) means TS will be active at start of trade but will stop trailing when your trade gets to +5pips (!) [ at which point your SL is not yet at BreakEven ]
The most I can recommend is using the "UseTigheningStop" settings to reduce the trailing SL as it approaches your TP.
If this still doesn't come close to meeting your need, check out Global's MPTM with some added functionality: http://www.stevehopwoodforex.com/phpBB3 ... =21&t=1633
Cheers
The BreakEven settings are pretty straightforward, and your setfile for these looks OK.
However, the 2nd part ("...I want to trail by 5 pips after 100 pips profit is hit...") is a bit tricky.
Your trailing stop settings (as per your setfile) means TS will be active at start of trade but will stop trailing when your trade gets to +5pips (!) [ at which point your SL is not yet at BreakEven ]
The most I can recommend is using the "UseTigheningStop" settings to reduce the trailing SL as it approaches your TP.
If this still doesn't come close to meeting your need, check out Global's MPTM with some added functionality: http://www.stevehopwoodforex.com/phpBB3 ... =21&t=1633
Cheers
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
E.g:
100pips is 80% of 125 pips. Thus:
NB: x is pips you'd like to trail by when price gets to +62.5 pips
Cheers
100pips is 80% of 125 pips. Thus:
Code: Select all
extern string TSF = "Tightening stop feature";
extern bool UseTigheningStop = true;
extern double TrailAt50Percent = x;
extern double TrailAt80Percent = 5;
Cheers
- jako
- Trader
- Posts: 105
- Joined: Wed Jun 20, 2012 6:07 pm
- Location: Slovensko
Re: MPTM's new home
Can you please give here a sample set-file? For Global MPTM. Setting the PT by ATR. Move SL to BE also by ATR. Or% by PT.dudest wrote:Hallo fxturtle,
The BreakEven settings are pretty straightforward, and your setfile for these looks OK.
However, the 2nd part ("...I want to trail by 5 pips after 100 pips profit is hit...") is a bit tricky.
Your trailing stop settings (as per your setfile) means TS will be active at start of trade but will stop trailing when your trade gets to +5pips (!) [ at which point your SL is not yet at BreakEven ]
The most I can recommend is using the "UseTigheningStop" settings to reduce the trailing SL as it approaches your TP.
If this still doesn't come close to meeting your need, check out Global's MPTM with some added functionality: http://www.stevehopwoodforex.com/phpBB3 ... =21&t=1633
Cheers
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
Your post partly assumes i have mind reading skills (which i dont)jako wrote: Can you please give here a sample set-file? For Global MPTM. Setting the PT by ATR. Move SL to BE also by ATR. Or% by PT.
Please elaborate your request in more detail
.
- jako
- Trader
- Posts: 105
- Joined: Wed Jun 20, 2012 6:07 pm
- Location: Slovensko
Re: MPTM's new home
I used Google translator and short sentences.dudest wrote:Your post partly assumes i have mind reading skills (which i dont)jako wrote: Can you please give here a sample set-file? For Global MPTM. Setting the PT by ATR. Move SL to BE also by ATR. Or% by PT.
Please elaborate your request in more detail
.
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
Hallo,jako wrote:
I used Google translator and short sentences.I would need a sample file "*. set" for Global MPTM. I want to learn how to set profit target by ATR indicator and simultaneously move stop loss to BE after making a profit by ATR indicator. (Or% of profit).
To move SL to BE (using ATR or TP) after trade moves in profit:
1. Using ATR ( 20% of ATR calculated on 20 Daily (1440) periods )
--> BreakEvenPips will be over-ridden by ATR calculation
--> BreakEvenProfit will remain, and be added to ATR calculation
--> If ATR calculation comes up with less than 5 pips, a min of 5pips for BreakEvenPips will be enforced
Code: Select all
extern string sep1 = "---------------------------------------------------------------------";
extern string BE = "----Break even STD settings----";
extern string BENote = " ==>(Mode: BE STD)";
extern bool BreakEven = true;
extern double BreakEvenPips = 15;
extern double BreakEvenProfit = 2;
extern bool HideBreakEvenStop = false;
extern double PipsAwayFromVisualBE = 100;
Code: Select all
extern string sep3= "---------------------------------------------------------------------";
extern string BEPATR = "----BreakEvenPercentageATR feature----";
extern string BeNote = " ==>(Mode: BE %ATR)";
extern string BeNote1 = "Sets the BreakEvenPips as a % of the ATR.";
extern string BeNote2 = "BreakEven above must be true for BEPATR to work.";
extern string BeNote3 = "BreakEvenPercentageATR overrides";
extern string BeNote4 = "BreakEvenPips but not BreakEvenProfit.";
extern bool UseBreakEvenPercentageATR = true;
extern int AtrBePeriod = 20;
extern int AtrBeTimeFrame = 1440;
extern double BreakEvenPercentAtr = 20;
extern double MinimumBeAtrPips = 5;
2. Using % of TP
Code: Select all
extern string sep1 = "---------------------------------------------------------------------";
extern string BE = "----Break even STD settings----";
extern string BENote = " ==>(Mode: BE STD)";
extern bool BreakEven = true;
extern double BreakEvenPips = 15;
extern double BreakEvenProfit = 2;
extern bool HideBreakEvenStop = false;
extern double PipsAwayFromVisualBE = 100;
Code: Select all
extern string sep2 = "---------------------------------------------------------------------";
extern string BETP = "----BreakEvenPercentageTP feature----";
extern string BetpNote = " ==>(Mode: BE %TP)";
extern string BetpNote1 = "Sets the BreakEvenPips as a % of the TP.";
extern string BetpNote2 = "BreakEven above must be true for BETP to work.";
extern string BetpNote3 = "BreakEvenPercentageTP overrides";
extern string BetpNote4 = "BreakEvenPips but not BreakEvenProfit.";
extern bool UseBreakEvenPercentageTP = true;
extern double BreakEvenPercentTP = 20;
extern double MinimumBeTPPips = 5;
extern string BetpNote5 = "If no takeprofit (TP) is set, then BreakEven is set";
extern string BetpNote6 = "from the BreakEvenPercentageATR feature section below.";
extern string BetpNote7 = " ==>(Mode: BE %TP->ATR)";
Code: Select all
extern string sep15 = "---------------------------------------------------------------------";
extern string MTPA = "----Add a missing Take Profit----";
extern bool AddMissingTakeProfit = true;
extern double MissingTakeProfitPips = 80;
extern bool UseTpAtr = false;
extern int AtrTpPeriod = 20;
extern int AtrTpTimeFrame = 1440;
extern double AtrTpMultiplier = 1;
Essentially,
1. To set BE using ATR:
-> Make sure you set BreakEven to true [ under section sep1 ], then set BEPATR settings [ under section sep3 ]
2. To set BE using %age of TP:
-> Set BreakEven [ sep1 ]
-> Set BETP [ sep2 ]
-> Set MTPA [ sep 15 ]
=====
Hope that helps
Cheers
- jako
- Trader
- Posts: 105
- Joined: Wed Jun 20, 2012 6:07 pm
- Location: Slovensko
Re: MPTM's new home
EXAMPLE.
How do I change the setting to:
PT = 50% (0.5) ATR (period 20, TF 1440)
SL = PT
Shift SL BE after reaching 25% (0.25) ATR (period 20, TF 1440)
sep 1
BreakEven = false
sep 2
UseBreakEvenPercentageTP = false
sep 3
BreakEvenPercentageATR = true
BreakEvenPercentAtr = 25
sep 6
TrailingStop = false
sep 9
UseTigheningStop = false
sep 10
UseTsPercentageTp = false
sep 11
UseTrailJumpStopPercentageTP = false
sep 14
AddMissingStopLoss = true
sep 15
AddMissingTakeProfit = true
UseTpAtr = true
AtrTpMultiplier = 0.5
Is this correct?
How do I change the setting to:
PT = 50% (0.5) ATR (period 20, TF 1440)
SL = PT
Shift SL BE after reaching 25% (0.25) ATR (period 20, TF 1440)
sep 1
BreakEven = false
sep 2
UseBreakEvenPercentageTP = false
sep 3
BreakEvenPercentageATR = true
BreakEvenPercentAtr = 25
sep 6
TrailingStop = false
sep 9
UseTigheningStop = false
sep 10
UseTsPercentageTp = false
sep 11
UseTrailJumpStopPercentageTP = false
sep 14
AddMissingStopLoss = true
sep 15
AddMissingTakeProfit = true
UseTpAtr = true
AtrTpMultiplier = 0.5
Is this correct?