MPTM updated

MPTM's new home
Post Reply
kiwiscole1
Posts: 2
Joined: Thu Oct 11, 2018 10:50 am

MPTM updated

Post by kiwiscole1 »

Read the manual. Very clear.
I only trade with Global prime. Best honest broker
Have MPTM loaded. every function works flawlesly

Except SuperSlope hedge.
I have all autoclose trades set to false.
Every time a hedge opens, it closes immediately, over and over, as if the autoclose is switched to true.

for 2 days I have tried to sort it out, read, and tried not to bother anyone here, after reading the warnings.
If I get banned, I understand, however, I have read the effing manual, and most of the MPTM threads going years back.

Thanks for your impressive FREE product, and I'll use it even if I cant work this out.
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.

MPTM updated

Post by SteveHopwood »

kiwiscole1 » Mon Oct 15, 2018 7:32 pm wrote:Read the manual. Very clear.
I only trade with Global prime. Best honest broker
Have MPTM loaded. every function works flawlesly

Except SuperSlope hedge.
I have all autoclose trades set to false.
Every time a hedge opens, it closes immediately, over and over, as if the autoclose is switched to true.

for 2 days I have tried to sort it out, read, and tried not to bother anyone here, after reading the warnings.
If I get banned, I understand, however, I have read the effing manual, and most of the MPTM threads going years back.

Thanks for your impressive FREE product, and I'll use it even if I cant work this out.
I read the post you deleted earlier.

It is easy to get code wrong so there may be a bug. MPTM updated is yet a relatively unused EA.

Do me a favour please. I am preoccupied with Desky at the mo. Live with what you have for now and send me a nudge to look at this again in a fortnight. I will have a lot more time then to sort this out.

: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.
kiwiscole1
Posts: 2
Joined: Thu Oct 11, 2018 10:50 am

MPTM updated

Post by kiwiscole1 »

No problem, I'll do that.
Yes, I discovered what I had missed, and I was asking the wrong question.

The problem remained, the symptom seems like its a autoclose thing, but I know nothing. Yes I will be using what I have, its pretty great.

Thanks.
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.

MPTM updated

Post by SteveHopwood »

The latest version is in post 1 with what I think is a fix for the instant closing of hedge trades.Try it out please, and sing out if the problem recurs.

: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
PeterUK
Trader
Posts: 79
Joined: Fri Jun 27, 2014 2:18 pm
Location: London, UK

MPTM updated

Post by PeterUK »

Hi Steve,

Thanks for taking the time to update MPTM, it's a very useful tool for managing our trades and improve our money management...

Query: Do you have a plan to include an option to select set/move stop-loss to BE when TP = ATR to this code? so that BE is dependent on the volatility/ATR of the currency... and not just a fixed number of pips?

I see the current options are:
- Pips to break even
- Pips profit to lock in...

I see the option for using ATR is currently available for setting TP and SL.

If there are no plans at the moment, I'll modify the code slightly to fit my requirements - I see you are busy with Desky at the moment... keep up the good work! :D

Regards,

Peter

Side note: I'm experimenting with TSL manually and seeing whether ATR would be a beneficial option to set in 'Number of Pips to trail' - I'll probably replicate and modify the UseCandlestickTrail code... if I choose to use it my trading system.
Knowledge owned is Pointless. Knowledge Shared is Priceless!
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.

MPTM updated

Post by SteveHopwood »

PeterUK » Sun Dec 02, 2018 1:50 pm wrote: Query: Do you have a plan to include an option to select set/move stop-loss to BE when TP = ATR to this code? so that BE is dependent on the volatility/ATR of the currency... and not just a fixed number of pips?
I will add this.

: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.

MPTM updated

Post by SteveHopwood »

PeterUK » Sun Dec 02, 2018 1:50 pm wrote: Query: Do you have a plan to include an option to select set/move stop-loss to BE when TP = ATR to this code? so that BE is dependent on the volatility/ATR of the currency... and not just a fixed number of pips?
Done. From the updated UG:
  • ATR breakeven: this allows you to use ATR to calculate your break even point:
    • UseAtrBE: turns this on/off.
    • AtrTimeFrameBE: your time frame for the ATR calculation.
    • AtrPeriodBE: the number of candles to use in the calculation.
    • AtrShiftBE: when to stop the calculation. 0 means now. 1 means the close of the previous candle. 2 means the close two candles ago etc.
It is a simple DIY so you can keep your own hard-wired inputs:

So a search for, "extern int BreakEvenProfitPips = 10;//Pips profit to lock in." and add this directly underneath:

Code: Select all

extern string  atrb                          = "-- ATR break even --";
extern bool    UseAtrBE                      = false;
extern ENUM_TIMEFRAMES AtrTimeFrameBE        = PERIOD_D1;
extern int     AtrPeriodBE                   = 14;
extern int     AtrShiftBE                    = 0;//Candle shift defaulting to now.
Go to void BreakEvenStopLoss(int ticket) . Scroll down to, "int err = 0;" and insert this in the blank space above:

Code: Select all

   //ATR BE
   if (UseAtrBE)
   {
      GetBasics(OrderSymbol() );//Make sure that factor is correct. It should be, but no harm to check
      double val = GetAtr(OrderSymbol(), AtrTimeFrameBE, AtrPeriodBE, AtrShiftBE);
      BreakEven = (val * factor);
   }//if (UseAtrBE)
I will add this to Desky as well.

: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
PeterUK
Trader
Posts: 79
Joined: Fri Jun 27, 2014 2:18 pm
Location: London, UK

MPTM updated

Post by PeterUK »

Thanks Steve for taking the time to implement this request...

Nice thing about MPTM is that I can experiment using HGI or SuperSlope as my exit Indicator, and now use ATR to calculate my TP, ST, BE and etc... :D

I'm sure this will also be a useful feature to have in Desky as well... when I and others plan to automate our own strategy using ATR as a tool :good:

I'm currently using TDesk to process my confirmation indicators... and will use MPTM to manage the trades I enter... we'll see how it goes... :youknow:
Knowledge owned is Pointless. Knowledge Shared is Priceless!
Sandovich
Trader
Posts: 37
Joined: Fri Dec 02, 2011 9:04 am
Location: South Africa

MPTM updated

Post by Sandovich »

Suggestion:

It would be nice if MPTM could have a global closure SL based on pips or percentage OR a SL pips or percentage on the shirt protection.

Reason it would be nice is that it could be used to manage SL for basket trades . The old MPTM, going back a few years, had this option but doesn't work now days probably with all the Empty4 updates .
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.

MPTM updated

Post by SteveHopwood »

Sandovich » Mon Feb 04, 2019 9:16 am wrote:Suggestion:

It would be nice if MPTM could have a global closure SL based on pips or percentage OR a SL pips or percentage on the shirt protection.

Reason it would be nice is that it could be used to manage SL for basket trades . The old MPTM, going back a few years, had this option but doesn't work now days probably with all the Empty4 updates .
I am not eager to start adding basket functions when there are successful basket managers available.

Try Tommaso's http://www.stevehopwoodforex.com/phpBB3 ... 430#p87430 and Paul's MPBM http://www.stevehopwoodforex.com/phpBB3 ... 112#p16112 to see if the features you want are already included.

: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”