MPTM's new home

MPTM's new home
Locked
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's new home

Post by SteveHopwood »

Jason wrote:I just started tinkering with MPTM and I have a 5 digit criminal. Should MPTM automatically adjust to working with 5 digits?

Thanks
Yes. For crying out loud, do you really think I am such a total tit as not to have accommodated this? Thanks.

Tell you what. Ask around and find out what I can do here.

Get a grip fella and do not insult me with such a childish enquiry again or your will find that you no longer have the ability to post such a stupid enquiry.
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.
Jason

Re: Stumped

Post by Jason »

ChicagoRob wrote:I'm having a problem with MPTM stopping out trades immediately after the orders are placed. I recently put on a sell trade with a SL 35 pips away from the entry price. However, every time I tried to place the trade, MPTM would stop it out instantaneously. I had two buy trades set up with similar stop losses and they were executed without any problems.

If anyone can enlighten me as to what I may be doing wrong, please do not hesitate.

Rob
Making sure the EA was loaded stopped that from happening to me. Save then load.
User avatar
Mike
Trader
Posts: 272
Joined: Sun Dec 11, 2011 12:30 pm
Location: Italy

Re: MPTM's new home

Post by Mike »

SteveHopwood wrote:
Mike wrote:... how can I define more than one ticket number?...Mike
... You can apply mptm to manage one ticket number only. ...
Thanks ... so, ome mptm instance per ticket number, unless I use Magic numbers or Comments. Thanks Mike
Image
Image
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

Hallo peeps,

Quick question: must I have BreakEven=1 in order to use Trailing Stop or Jumping Stop?

My scenario: I want MPTM to immediately start trailing price by 13pips once my order is triggered
Does the below cover it?
TSL=Trailing stop loss settings
TrailingStop=1
UseStandardTrail=1
TrailingStopPips=13
UseCandlestickTrail=0
CandlestickTrailTimeFrame=60
CandleShift=1
HideTrailingStop=0
PipsAwayFromVisualTS=0
TrailAfterBreakevenOnly=0
StopTrailAtPipsProfit=0
StopTrailPips=0
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.

Re: MPTM's new home

Post by SteveHopwood »

A heads-up for those of you who have not seen this that I just added to post 1:

MPBM
There are basket management features in MPTM, but Baluda has created a dedicated Multi-Purpose Basket Manager. Find it at viewtopic.php?p=16112#p16112

:D
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
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: MPTM's new home

Post by cuzgeorge »

SteveHopwood wrote: There are basket management features in MPTM, but Baluda has created a dedicated Multi-Purpose Basket Manager. Find it at viewtopic.php?p=16112#p16112

:D
Thank you Steve, christmas came early for me, :D
Magnificent TradeManager. !

A quick question if you dont mind, going to the old issue of "GOLD" and SILVER" as opposed to "XAU" and "XAG".

Code: Select all

 {
     double Pipfactor=10000;         // correct factor for most pairs
	  if (StringFind(pair,"JPY",0) != -1 || StringFind(pair,"XAG",0) != -1) 
		      Pipfactor = 100;      // if jpy or silver
	  if (StringFind(pair,"XAU",0) != -1) 
            Pipfactor = 10;       // if gold
   return (Pipfactor);
  }
All we have to do is change this bit of code from XAG, XAU to SILVER, GOLD respectively, if our criminal uses SILVER and GOLD, right?

Thank you, and wishing you and wifey a very merry and blessed xmas week.
cuz
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
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's new home

Post by SteveHopwood »

cuzgeorge wrote:
SteveHopwood wrote: There are basket management features in MPTM, but Baluda has created a dedicated Multi-Purpose Basket Manager. Find it at viewtopic.php?p=16112#p16112

:D
Thank you Steve, christmas came early for me, :D
Magnificent TradeManager. !

A quick question if you dont mind, going to the old issue of "GOLD" and SILVER" as opposed to "XAU" and "XAG".

Code: Select all

 {
     double Pipfactor=10000;         // correct factor for most pairs
	  if (StringFind(pair,"JPY",0) != -1 || StringFind(pair,"XAG",0) != -1) 
		      Pipfactor = 100;      // if jpy or silver
	  if (StringFind(pair,"XAU",0) != -1) 
            Pipfactor = 10;       // if gold
   return (Pipfactor);
  }
All we have to do is change this bit of code from XAG, XAU to SILVER, GOLD respectively, if our criminal uses SILVER and GOLD, right?

Thank you, and wishing you and wifey a very merry and blessed xmas week.
cuz
I don't know George, but presumably so. Try adding it and see what the effect is:

Code: Select all

if (StringFind(pair,"JPY",0) != -1 || StringFind(pair,"XAG",0) != -1 || StringFind(pair,"SILVER",0) != -1)  Pipfactor = 100;      // if jpy or silver
:D
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.
global
Trader
Posts: 67
Joined: Wed Aug 15, 2012 2:16 am

Re: MPTM's new home

Post by global »

Thanks for coding and making MPTM available Steve. I was testing it for managing multiple trades simultaneously in different pairs on different timeframes so I attached the EA to each chart. I set it to ManageAllTrades but should I instead set ManageAllTrades to false and set ManageByMagicNumber to true plus set a different magic number for each new chart I attach it too so that the multiple MPTM instances would not interfere with each other?

If it is necessary to set a different magic number for each new chart/timeframe I attached it to then is there some code I can add to the EA so it creates a new magic number automatically for each new instance of MPTM?

I'm new to EAs so I hope you can forgive my ignorance. Thanks.
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: MPTM's new home

Post by cuzgeorge »

global wrote:Thanks for coding and making MPTM available Steve. I was testing it for managing multiple trades simultaneously in different pairs on different timeframes so I attached the EA to each chart. I set it to ManageAllTrades but should I instead set ManageAllTrades to false and set ManageByMagicNumber to true plus set a different magic number for each new chart I attach it too so that the multiple MPTM instances would not interfere with each other?

If it is necessary to set a different magic number for each new chart/timeframe I attached it to then is there some code I can add to the EA so it creates a new magic number automatically for each new instance of MPTM?

I'm new to EAs so I hope you can forgive my ignorance. Thanks.
Hi Global,
hope i can help a little.
For what you are describing here, i think you must NOT set 'managealltrades', but rather, 'managethispaironly". MAnaging all trades will manage everything on the platform, read the guide and the code in the mql4 editor and you'll see the warnings.Its all there.

The magics are usually '1' for each and any pair that MPTM takes a position for regardless of original trades magic. Careful with these magics, i dont know of a script to change the way MPTM issues them and would'nt like to play with the code too much.

EG, if you want to control a trade on EURUSD, you must attach the main EA on a chart that only trades EURUSD, and then on another EURUSD chart, attach MPTM with 'managethispaironly' as true. Then check the rest of the parameters that they dont clash down the road with another setting. You'll get strange errors. That way you keep these this pair on its own. DO the same for the rest of the pairs you want to trade.

I dont know the effect of the magics though. never tried trading using magics.
cuz
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
global
Trader
Posts: 67
Joined: Wed Aug 15, 2012 2:16 am

Re: MPTM's new home

Post by global »

Thank you very much CuzGeorge. I just reread the manual and looked at the code comments again and you are right so I'll try the ManageThisPairOnly setting. Steve would be angry with my question since the answer was right in from of my face. As it is always recommended, RTFM and if you still don't get it, then RTFM again :-) Of course, RTFM means, Read the FULL Manual, right :-)
Locked

Return to “Utilities Indicators and Scripts”