MPTM's new home

MPTM's new home
Locked
ArthurV
Posts: 3
Joined: Thu Feb 28, 2013 8:47 pm

Re: MPTM's new home

Post by ArthurV »

Actually, now it represents accurately my BE figures and stuff, but still does not open properties window... Any ideas?
Wkcfx
Trader
Posts: 48
Joined: Sun Feb 17, 2013 6:25 am

Re: MPTM's new home

Post by Wkcfx »

Good day all, a couple of questions on the MPTM;
I am working with NBob's 10.4.1.1 with info page and attempting to use the MPTM offered on page 3 of that forum indicated as "10.4 mptm SL only". Is this the correct and most current MPTM to use with the 10.4 sys and info page? I understand from the that the trade is entered manually then the MPTM kicks in. The SL should be set to the 204ma by the MPTM. I also understand from reading through the code that on enter of the second position the SL should move to BE if and when the EA is fully operational. I don't see that this or any of the other functionality is disabled?
I assume the manual position may be entered by any method or must it be a specific script or method?
I have the MPTM running on a demo, have opened 2 trades. I have “ManageAllTrades” and ManagingNanningbobTrades both set to True. EA appears active as it says "managing 2 trades" or something like that and other screen messages but I see no indication of SL at 240MA is this normal?

Thanks very much in advance!
wk
User avatar
Pippopotamus
Trader
Posts: 70
Joined: Wed Nov 16, 2011 2:32 pm
Location: NY/NJ Metro Area

Re: MPTM's new home

Post by Pippopotamus »

ArthurV wrote:Actually, now it represents accurately my BE figures and stuff, but still does not open properties window... Any ideas?
ArthurV, Disable EAs before trying to open properties.
Trading is Art
ArthurV
Posts: 3
Joined: Thu Feb 28, 2013 8:47 pm

Re: MPTM's new home

Post by ArthurV »

Pippopotamus wrote:
ArthurV wrote:Actually, now it represents accurately my BE figures and stuff, but still does not open properties window... Any ideas?
ArthurV, Disable EAs before trying to open properties.
Thank you mate!

Later I found out that it opens everything normally on the weekend when the market is closed.

Is it a special feature related to a hidden SL or just something ordinary? I've never seen this before..
Misterdaz
Posts: 2
Joined: Thu Jan 31, 2013 1:59 pm

Re: MPTM's new home

Post by Misterdaz »

fxarun wrote:Hi Daz ,

Since you are using candlestick trail timeframe as 1,
It may be very close to set a sl from the current price .
So try may be 15 or 60 , It will work.

Thanks

Arun
Thanks Arun I will try it. I am trying to get the jumping stop to work now, not having much luck with any of the settings to be honest. The stops do not seem to activate.

Daz.
fahedksa
Trader
Posts: 274
Joined: Fri Jun 08, 2012 10:20 am
Location: Jordan & Egypt

Re: MPTM's new home

Post by fahedksa »

Hi ,I face strange issue today my order gain +50 pips and i but breakeven=30 and breakevenprofit=30
trailing stop on and set to 30 pipsstop
instatmt trailing stop disbaled
managebymagivnumber=F,Magicnumber=0,Managebytradecomment=False,Tradecomment=""
manage all trader=T,MangaingNannigbobtrades=T
CJ Thread ( PDF & Charts )
https://goo.gl/PXbfKC
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: MPTM's new home

Post by alex_forex »

Hi FT,

The new topic for MPTM modded by global is here http://www.stevehopwoodforex.com/phpBB3 ... =21&t=1633

All related posts are there too ;)

Enjoy
Alex
tintindelr
Posts: 1
Joined: Sat Sep 29, 2012 3:07 pm

Re: MPTM's new home

Post by tintindelr »

Is it possible to add an optional feature to set TP/SL an x number of pips away from the current price (only for trades with no TP/SL)? TP/SL to be adjusted every y minutes (where x and y are both parameters). The purpose of this is to provide emergency 'stop' in case of a VPS crash or emergency situation. It would be good if we can enable this option for selected trades only (via MPTM's filters), or for all trades.

There's only one EA I know which has this feature and it is here: http://www.donnaforex.com/forum/index.p ... #msg195998.

I like using MPTM and with this feature included, it would really become an all-in-one trade manager. 8-)
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

Hallo Steve,

I'm using the "Add a Missing Stop Loss" functionality of MTPM as follows:

Code: Select all

MSLA=Add a missing Stop Loss
AddMissingStopLoss=1
MissingStopLossPips=30.00000000
I've noticed though, in the last couple of weeks, the following error once or twice every week:

Code: Select all

05:15:03 Multi purpose trade manager USDCHF,M5: Alert: USDJPY SL insertion failed with error(130) :  invalid stops
05:15:03 Multi purpose trade manager USDCHF,M5: USDJPY SL insertion failed with error(130) :  invalid stops
usdjpy_past_sl.png
On further checking, I realised that (if I'm not wrong), sometimes price goes in the opposite direction so fast after order opening, that by the time MPTM is trying to set the SL, the number of SL pips has already been exceeded (30pips in my case) [ sounds crazy but can't find any other reason for this, as MPTM works great all other times ]

I'm also using the Hedge functionality of MPTM (HedgeAtLossPips=25), and I noticed when SL insertion fails, the hedge trade is NOT opened. This means that the trade is left free-wheeling in the wrong direction, with nothing to counter-it :/

Suggestion: can the code be modified to CLOSE an order when SL insertion fails?
( since, if my reasoning is right, the trade should already be closed anyways, & there's no hedge to counter our loss )

Thanks for your time and consideration!

Cheers

EDIT: Would this do the trick?
bool result = OrderModify(OrderTicket(),OrderOpenPrice(), SL, OrderTakeProfit(), OrderExpiration(),CLR_NONE);
if (!result)
{
int err=GetLastError();
Alert(OrderSymbol(), " SL insertion failed with error(",err,") : ",ErrorDescription(err));
Print(OrderSymbol(), " SL insertion failed with error(",err,") : ",ErrorDescription(err));

bool result2 = OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask,Digits), 5, CLR_NONE);
if (result2)
{
Alert(OrderSymbol(), " order closed following SL insertion error");
Print(OrderSymbol(), " order closed following SL insertion error");
}


return(false);
}//if (!result)
Cheers
You do not have the required permissions to view the files attached to this post.
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

EDIT 2: Correction to my code suggestion above:

Code: Select all

bool result = OrderModify(OrderTicket(),OrderOpenPrice(), SL, OrderTakeProfit(), OrderExpiration(),CLR_NONE);

if (!result)
{
  int err=GetLastError();
  Alert(OrderSymbol(), " SL insertion failed with error(",err,") :  ",ErrorDescription(err));
  Print(OrderSymbol(), " SL insertion failed with error(",err,") :  ",ErrorDescription(err));
  
  // start mod //
  double close_price = NormalizeDouble(MarketInfo(OrderSymbol(),MODE_ASK),MarketInfo(OrderSymbol(),MODE_DIGITS));
  
  bool result2 = OrderClose(OrderTicket(), OrderLots(), close_price, 7, CLR_NONE);
  
  if (result2)
  { 
     Alert(OrderSymbol(), " order closed following SL insertion error");
     Print(OrderSymbol(), " order closed following SL insertion error");
  }
  // end mod //
  
  return(false);

}//if (!result)
Locked

Return to “Utilities Indicators and Scripts”