stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

MPTM's new home
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=64
Page 21 of 57
Author:  ArthurV [ Sat Mar 02, 2013 1:52 am ]
Post subject:  Re: MPTM's new home

Actually, now it represents accurately my BE figures and stuff, but still does not open properties window... Any ideas?
Author:  Wkcfx [ Mon Mar 04, 2013 8:34 am ]
Post subject:  Re: MPTM's new home

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
Author:  Pippopotamus [ Wed Mar 06, 2013 2:22 pm ]
Post subject:  Re: MPTM's new home

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.
Author:  ArthurV [ Mon Mar 11, 2013 10:20 am ]
Post subject:  Re: MPTM's new home

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..
Author:  Misterdaz [ Fri Mar 15, 2013 12:41 pm ]
Post subject:  Re: MPTM's new home

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.
Author:  fahedksa [ Fri Mar 15, 2013 5:34 pm ]
Post subject:  Re: MPTM's new home

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
Author:  alex_forex [ Sat Mar 16, 2013 6:42 pm ]
Post subject:  Re: MPTM's new home

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
Author:  tintindelr [ Sun Mar 17, 2013 8:07 am ]
Post subject:  Re: MPTM's new home

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-)
Author:  dudest [ Thu Apr 04, 2013 1:46 pm ]
Post subject:  Re: MPTM's new home

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
Author:  dudest [ Thu Apr 04, 2013 2:45 pm ]
Post subject:  Re: MPTM's new home

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)
All times are UTC Page 21 of 57