MPTM's new home
-
sakisf
- Trader
- Posts: 11
- Joined: Fri Nov 15, 2013 9:09 am
- Location: Greece
Re: MPTM's new home
Seems to be working alright without the hidden settings. Would have loved though to have HiddenJS working too.
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
From the above, it's not MPTM closing your trade.sakisf wrote:I am still having the issue of MPTM closing down all my short trades immediately upon placing them, so I would appreciate if someone could take a look at it.
11:06:29 '100027': order was opened : #5962606 sell 0.01 GBPUSD at 1.60996 sl: 0.00000 tp: 0.00000
11:06:29 Publisher: starting
11:06:29 '100027': close order #5962606 sell 0.01 GBPUSD at 1.60996 sl: 0.00000 tp: 0.00000 at price 0.00000
11:06:29 '100027': request was accepted by server
11:06:29 '100027': request in process
11:06:29 Publisher: ok
11:06:29 '100027': order #5962606 sell 0.01 GBPUSD at 1.60996 sl: 0.00000 tp: 0.00000 closed at price 1.60998
11:06:29 Multi purpose trade manager EURUSD,H4: close #5962606 sell 0.01 GBPUSD at 1.60996 at price 1.60998
11:06:29 Multi purpose trade manager EURUSD,H4: Alert: Stop loss hit. Close of GBPUSD ticket no 5962606
11:06:29 Multi purpose trade manager EURUSD,H4: unknown ticket 5962606 for OrderModify function
11:06:29 Multi purpose trade manager EURUSD,H4: Alert: GBPUSD SL insertion failed with error(4108) : invalid ticket
11:06:29 Multi purpose trade manager EURUSD,H4: GBPUSD SL insertion failed with error(4108) : invalid ticket
11:06:29 Multi purpose trade manager EURUSD,H4: unknown ticket 5962606 for OrderModify function
11:06:29 Multi purpose trade manager EURUSD,H4: Alert: GBPUSD TP insertion failed with error(4108) : invalid ticket
11:06:29 Multi purpose trade manager EURUSD,H4: GBPUSD TP insertion failed with error(4108) : invalid ticket
By the time MPTM comes in to modify the SL and TP, it's finding the trade close, hence the "invalid ticket" error.
Who is "Publisher"?
.
-
sakisf
- Trader
- Posts: 11
- Joined: Fri Nov 15, 2013 9:09 am
- Location: Greece
Re: MPTM's new home
It is the ftp service sending stats to Myfxbook. Doesn't have to do with trades. The trades are indeed being closed by MPTM prematurely (11:06:29 Multi purpose trade manager EURUSD,H4: close #5962606 sell 0.01 GBPUSD at 1.60996 at price 1.60998) so the rest of the script does not have the time to apply correct SL/TP on them. When removing hidden SL/TP it does not close them, so there must be a conflict somewhere. Does not apply to long orders, only short.
Here it is running successfully without hidden SL/TP:
11:43:40 Expert Multi purpose trade manager (1) EURUSD,H4: loaded successfully
11:44:30 Publisher: starting
11:44:30 Publisher: ok
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 0.00000 -> sl: 1.61466 tp: 0.00000
11:44:33 '100027': request was accepted by server
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 0.00000
11:44:33 Publisher: starting
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 -> sl: 0.00000 tp: 1.58966
11:44:33 '100027': request was accepted by server
11:44:33 FTP: STOR command failed
11:44:33 Publisher: failed
11:44:33 Publisher: starting
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 0.00000 tp: 1.58966
11:44:34 Publisher: ok
11:44:39 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 -> sl: 1.61466 tp: 1.58966
11:44:39 '100027': request was accepted by server
11:44:39 Publisher: starting
11:44:39 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 1.58966
11:44:21 Multi purpose trade manager (1) EURUSD,H4: initialized
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 ok
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 ok
11:44:39 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 1.58966 ok
Here it is running successfully without hidden SL/TP:
11:43:40 Expert Multi purpose trade manager (1) EURUSD,H4: loaded successfully
11:44:30 Publisher: starting
11:44:30 Publisher: ok
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 0.00000 -> sl: 1.61466 tp: 0.00000
11:44:33 '100027': request was accepted by server
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 0.00000
11:44:33 Publisher: starting
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 -> sl: 0.00000 tp: 1.58966
11:44:33 '100027': request was accepted by server
11:44:33 FTP: STOR command failed
11:44:33 Publisher: failed
11:44:33 Publisher: starting
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 0.00000 tp: 1.58966
11:44:34 Publisher: ok
11:44:39 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 -> sl: 1.61466 tp: 1.58966
11:44:39 '100027': request was accepted by server
11:44:39 Publisher: starting
11:44:39 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 1.58966
11:44:21 Multi purpose trade manager (1) EURUSD,H4: initialized
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 ok
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 ok
11:44:39 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 1.58966 ok
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
Hallo,kwittusen wrote:
I have an idea for you about this, so if you answer my question that i posted long time ago and as a reminder here it is again:
I wonder if it's possible to set up the following senario: I want to set brake even to 130pips, and then it should secure 80pips and i want to use trail stop when i reach 150pips, and then i want to trail with 35pips.
So to explain it easy, when i reach 130pips in profit, it should move BE/SL to 90pips, then when i reach 150pips it should use trail stop with 35pips.
Is this possible to set up ?
..
How about you have 2 MPTM instances? One handing the BE part, and the other handling the TS part.
Cheers
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
Re: MPTM's new home
Ok. Hopefully Steve (or other coder) will have a look.sakisf wrote:It is the ftp service sending stats to Myfxbook. Doesn't have to do with trades. The trades are indeed being closed by MPTM prematurely (11:06:29 Multi purpose trade manager EURUSD,H4: close #5962606 sell 0.01 GBPUSD at 1.60996 at price 1.60998) so the rest of the script does not have the time to apply correct SL/TP on them. When removing hidden SL/TP it does not close them, so there must be a conflict somewhere. Does not apply to long orders, only short.
Here it is running successfully without hidden SL/TP:
11:43:40 Expert Multi purpose trade manager (1) EURUSD,H4: loaded successfully
11:44:30 Publisher: starting
11:44:30 Publisher: ok
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 0.00000 -> sl: 1.61466 tp: 0.00000
11:44:33 '100027': request was accepted by server
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 0.00000
11:44:33 Publisher: starting
11:44:33 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 -> sl: 0.00000 tp: 1.58966
11:44:33 '100027': request was accepted by server
11:44:33 FTP: STOR command failed
11:44:33 Publisher: failed
11:44:33 Publisher: starting
11:44:33 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 0.00000 tp: 1.58966
11:44:34 Publisher: ok
11:44:39 '100027': modify order #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 -> sl: 1.61466 tp: 1.58966
11:44:39 '100027': request was accepted by server
11:44:39 Publisher: starting
11:44:39 '100027': order #5963831 sell 0.01 GBPUSD at 1.60966 was modified -> sl: 1.61466 tp: 1.58966
11:44:21 Multi purpose trade manager (1) EURUSD,H4: initialized
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 0.00000 ok
11:44:33 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 0.00000 tp: 1.58966 ok
11:44:39 Multi purpose trade manager (1) EURUSD,H4: modify #5963831 sell 0.01 GBPUSD at 1.60966 sl: 1.61466 tp: 1.58966 ok
PS: then why not just use it with normal SL/TP? What's with hiding them? (esp if you have an STP/ECN-type broker)
.
-
sakisf
- Trader
- Posts: 11
- Joined: Fri Nov 15, 2013 9:09 am
- Location: Greece
Re: MPTM's new home
Well for Bully Pepperstone there is no reason to use it as I have not yet noticed any suspicious spikes, but I am also with SaxoMT4 and Oanda which like to send spikes, so I was thinking of using it with hidden stops and autoupdate delay of 10-20 seconds or so to try and avoid getting stopped out by them.
-
kwittusen
- Trader
- Posts: 47
- Joined: Thu Dec 13, 2012 9:44 am
Re: MPTM's new home
Well Dudest, that is a idea, but it would be nicer if that possibility was in the EA, then i dont have to run the same EA 2-10 at the same time depending on my wishesdudest wrote:Hallo,kwittusen wrote:
I have an idea for you about this, so if you answer my question that i posted long time ago and as a reminder here it is again:
I wonder if it's possible to set up the following senario: I want to set brake even to 130pips, and then it should secure 80pips and i want to use trail stop when i reach 150pips, and then i want to trail with 35pips.
So to explain it easy, when i reach 130pips in profit, it should move BE/SL to 90pips, then when i reach 150pips it should use trail stop with 35pips.
Is this possible to set up ?
..
How about you have 2 MPTM instances? One handing the BE part, and the other handling the TS part.
Cheers
- Mike
- Trader
- Posts: 272
- Joined: Sun Dec 11, 2011 12:30 pm
- Location: Italy
Re: MPTM's new home
Looks easy but I just do not get it right:
Move SL to BE+1 when 8 pips in profit and at 10 pips profit apply a Trailing-Stop of 5 pips.
Would anybody pass me these MPTM-settings, please. Thanks Mike
Move SL to BE+1 when 8 pips in profit and at 10 pips profit apply a Trailing-Stop of 5 pips.
Would anybody pass me these MPTM-settings, please. Thanks Mike
-
sakisf
- Trader
- Posts: 11
- Joined: Fri Nov 15, 2013 9:09 am
- Location: Greece
Re: MPTM's new home
@Mike: I think this is not possible. You can do BE with +1 but trailing stop doesn't let you decide at which percent you can start tracking, i.e. 50% at 10 pips.
- 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
Breaking ranks here as you are kind enough to offer a method of dealing with the ebay scammers.kwittusen wrote:I have an idea for you about this, so if you answer my question that i posted long time ago and as a reminder here it is again:SteveHopwood wrote:I know, but the sellers would remove it.sakisf wrote:Btw Steve, you should put some disclaimer in the code that the EA is free and if anyone bought it they should request a refund:
http://www.ebay.com/itm/Forex-Excellent ... 1141397178
Would help reporting such sellers with ebay or paypal, which they use to sell EA's.
I do make the occasional desultory attempt to get in touch with ebay but their bloody site rejects every attempt I make to log on. Not a clue how to do so and ebay appears to have no way of recovering logon details. If logging on is necessary to use ebay. Don't know - tis about 8 years since I last bought anything there and have never sold anything.
If anyone has any idea how to stop these bastards flogging my free software for a profit to themselves, do please let me know how it is done. ebay clearly couldn't give a shit so long as they are making their money.
Cheers
I wonder if it's possible to set up the following senario: I want to set brake even to 130pips, and then it should secure 80pips and i want to use trail stop when i reach 150pips, and then i want to trail with 35pips.
So to explain it easy, when i reach 130pips in profit, it should move BE/SL to 90pips, then when i reach 150pips it should use trail stop with 35pips.
Is this possible to set up ?
I never answer questions about 'how do I set up such-and-such' for two reasons:
- the harsh one. I wrote an entire User Guide explaining how to use mptm so I would not keep on having to do so. If you cannot find the answer in there, then it is probably not possible.
- the gentle one. I coded huge chunks of mptm in response to early requests to do so. I have never used these features, have no idea what they are supposed to do, and have no idea how the code works. All this is a loooooooooooooooong time ago. Subsequent coders have added some significant stuff; they are strong people not given to crying easily.
All I ever wanted was a few stop loss manipulation features. 
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.
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.