MPTM updated

MPTM's new home
Post Reply
User avatar
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 updated

Post by SteveHopwood »

V1h is in post 1. The only difference between 1h and the version a few posts ago is that I have added the TPSL info to the chart display.

:xm: :rocket:
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.
qvintus
Trader
Posts: 220
Joined: Sat Nov 30, 2013 7:02 pm

Re: MPTM updated

Post by qvintus »

Hi, for the atrBE function, should it not be two inputs? Something like:
Breakeven at ATR
Break even profit ATR


Using latest v1h from the first post.
atrBE.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
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 updated

Post by SteveHopwood »

qvintus wrote: Sun Feb 18, 2024 10:26 pm Hi, for the atrBE function, should it not be two inputs? Something like:
Breakeven at ATR
Break even profit ATR


Using latest v1h from the first post.

atrBE.PNG
No.
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.
frog
Posts: 5
Joined: Mon Dec 05, 2016 4:51 pm

Re: MPTM updated

Post by frog »

Does anyone know of a trade manager that will work on the MT5 platform? Would be much appreciated!
User avatar
josch
Trader
Posts: 72
Joined: Tue Dec 06, 2011 4:55 pm

Re: MPTM updated

Post by josch »

Good morning,

using some features of the (excellent) MPTM for quite some time, now trying the jumping SL with BE, there seems to be a problem or I oversaw something:

1. Using function BE incl. Locking in x pips profit at BE and
2. Using function Jumping stop set to jump eyery x pips
3. incl. Only jump after BE has been achieved = TRUE

If using 1+2 without 3 (3 = FALSE), the jumping SL worked from trade exec, but
if using 1+2+3, the jumping SL seems not acting.

Anyone using this features too?
Anything I am wrong with it? - thanks a lot!

josch
... trading is war - life is simple ...
Daily EUR/USD Range https://twitter.com/traderjjs
User avatar
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 updated

Post by SteveHopwood »

josch wrote: Wed Oct 23, 2024 7:34 am Good morning,

using some features of the (excellent) MPTM for quite some time, now trying the jumping SL with BE, there seems to be a problem or I oversaw something:

1. Using function BE incl. Locking in x pips profit at BE and
2. Using function Jumping stop set to jump eyery x pips
3. incl. Only jump after BE has been achieved = TRUE

If using 1+2 without 3 (3 = FALSE), the jumping SL worked from trade exec, but
if using 1+2+3, the jumping SL seems not acting.

Anyone using this features too?
Anything I am wrong with it? - thanks a lot!

josch
I will have a look and see if I can spot a bloop in the coding.

:xm: :rocket:
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.
User avatar
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 updated

Post by SteveHopwood »

I have looked at the jumping stop code and noticed the need for an extra conditional, to cater for sell orders without a stop loss. I cannot se how this would cause josch's problem but try it and see.

If you want to DIY, go to void JumpingStopLoss(int ticket) and scroll down a few lines to the code block that handles JumpAfterBreakevenOnly

Scroll down 6 lines to: if(OrderType()==OP_SELL). Replace the existing code block with this:

Code: Select all

      if(OrderType()==OP_SELL)
         if (!CloseEnough(OrderStopLoss(), 0))//In cse a sell order has no stop loss
            if(OrderStopLoss() > OrderOpenPrice())
               return;
Let me know if this does not solve the problem.

:xm: :rocket:
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.
User avatar
josch
Trader
Posts: 72
Joined: Tue Dec 06, 2011 4:55 pm

Re: MPTM updated

Post by josch »

Hi Steve,

thank you - I'll come back to give results.

josch
... trading is war - life is simple ...
Daily EUR/USD Range https://twitter.com/traderjjs
User avatar
josch
Trader
Posts: 72
Joined: Tue Dec 06, 2011 4:55 pm

Re: MPTM updated

Post by josch »

Hi Steve,

I put your code from above into the mptm (replacing old one) and checked all twice. Result unfortunately is, that no jump is executed, neither buy nor sell.

Used settings are only few ones:
YES Manage only this pair
TRUE Use Break even Pips 8 Pips profit lock in 1
TRUE Jumping Stop loss Pips increment 10
FALSE Only jump after BE
TRUE Add SL if none set SL 30
TRUE Hide SL from broker Real SL 10
TRUE Add TP if none set TP Pips 50

It's my understanding that,
if trade profit 8+, BE is set and if price retraces, cover with 1+ (this is working)
if trade profit is 10+, jumping SL is activated to SL 10+
and next level to move the jumping SL should be 20+ (this is not working).

Just had a buy with 12+ without activity of the jumping SL and a sell with 14.5+.
Still I hope (or better not), that I was misunderstanding the rules, but read the manual line by line.
Hope you may be able to check the problem, if there is one in the expert code.
If helpful, I may send you the mql4 and set files.

Thank you!
josch
... trading is war - life is simple ...
Daily EUR/USD Range https://twitter.com/traderjjs
User avatar
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 updated

Post by SteveHopwood »

josch wrote: Tue Nov 26, 2024 1:42 pm Hi Steve,

I put your code from above into the mptm (replacing old one) and checked all twice. Result unfortunately is, that no jump is executed, neither buy nor sell.

Used settings are only few ones:
YES Manage only this pair
TRUE Use Break even Pips 8 Pips profit lock in 1
TRUE Jumping Stop loss Pips increment 10
FALSE Only jump after BE
TRUE Add SL if none set SL 30
TRUE Hide SL from broker Real SL 10
TRUE Add TP if none set TP Pips 50

It's my understanding that,
if trade profit 8+, BE is set and if price retraces, cover with 1+ (this is working)
if trade profit is 10+, jumping SL is activated to SL 10+
and next level to move the jumping SL should be 20+ (this is not working).

Just had a buy with 12+ without activity of the jumping SL and a sell with 14.5+.
Still I hope (or better not), that I was misunderstanding the rules, but read the manual line by line.
Hope you may be able to check the problem, if there is one in the expert code.
If helpful, I may send you the mql4 and set files.

Thank you!
josch
I am reasonably sure that I tested each routine as I coded the manager but it is a long time ago, so I will check.

I have set up hedged buy/sells on demo and loaded mptm to manage just the pair. I have used your BE and JS inputs, so I can see what happens.

:xm: :rocket:
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.
Post Reply

Return to “Utilities Indicators and Scripts”