MPTM's new home

MPTM's new home
Locked
Bruster400
Trader
Posts: 192
Joined: Tue Sep 24, 2013 3:19 pm

JPY Pairs issue

Post by Bruster400 »

Hi,

I've got this setup and working fine across most pairs (FX only) but I'm getting Error (130) issues just on the JPY pairs when the stop tries to jump. I've looked back through the thread and it appears that the EA should be looking at the decimal difference for these pairs so that shouldn't be the issue but it's a conincidence that it doesn't work on just those pairs that are 3dp rather than 5dp. I'm managing all pairs with a jumping stop - everything elses is turned off.

Can anyone suggest where I've gone wrong or a possible work around if required?

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

Post by SteveHopwood »

Latest version of mptm is in post 1. This one is mostly for the coders - read 'For the coders' in post 1.

For the rest of you, I have added some input separators to make reading the inputs easier and extra code to try to force mptm to close baskets during the global closure and basket closure functions. A few of us have had experiences in the FB thread where mptm has claimed that a basket should be closed, but did bugger all about it. Not certain the extra code will work, but we can try.

:xm:
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.
webregs
Trader
Posts: 31
Joined: Tue Jan 10, 2012 10:59 pm

MPTM's new home

Post by webregs »

Hi All,

Apologies if this isn't the right area to post but I have some questions about how to configure MPTM for FB.

Steve makes the comment in FB post 1:
all trades opened by FB on all charts are regarded as being part of a basket of trades. The basket is closed by mptm at $6 profit per 0.01 lot size. 0.02 lost, profit target is $12. 0.03 lots, target is $18. Global Prime live trading account: 1 pip = 10 cents, so a 10 pip movement is $1.
Given the GP pip/price above, does this mean that $6 profit per 0.01 lot size translates to a 60 pip movement (ie. $1 = 10 pips so $6 = 60 pips per 0.01 lot size).

If so, then I see reference to ProfitInPips under GOC and have configured it as shown below. Is this correct?
You do not have the required permissions to view the files attached to this post.
manoj_3986
Trader
Posts: 15
Joined: Thu Mar 28, 2013 6:16 am

MPTM's new home

Post by manoj_3986 »

I need your help to add following two functions in MPTM.

1) Close order with ABP color change ( As this helps to stay longer to get maximum pips from trade)---EA can close open trade when APB candle closed with opposite color. For example if buy order is open and there after apb candle closed with red candle then ea should close the order and same for vise versa. APB indicator attached.

2) Maximize profit / jumping profit function (Attached image for better understanding

This function will move TP & SL to next level when price is near to current TP(Trigger distance)


The Maximize Profit has 3 sections to set.

MTP - No of pips to move the take profit to the next level
MSL - No of pips to set the SL at trigger
Trigger - Distance in pips of the trigger area. This area is subtracted from the current take profit value
Level - number of levels that the Maximize Profit will have. So as that many times TP will be moved.

For example,
MTP- 50 pips
MSL-30 pips( It should be more than Trigger pips)
Trigger- 20pips
Level -3


With above setting if our buy order is 138.00 and initial TP was 139.20(120 pips) and initial SL was 137.40 (60 pips). Once price reach to 139, that 20pips from our initial TP then it triggers this function.

Level 1 triggered and TP move to 139.70(50 pips) and SL move to 138.90(30pips from previous TP). Once maximizing profit triggers JSL function should not work. Even if we set it true.

Then if price move in favor and go to 139.50, That is 20 pips distance from TP. Then it triggers level 2

Level 2 TP =140.20 SL 139.40

If price go again in favor upto 140 then It trigger level 3.

Level3 TP =140.70 SL 139.90. Same will be followed till the time no of level mentioned in parameter.

Thanks
You do not have the required permissions to view the files attached to this post.
Last edited by manoj_3986 on Sat Oct 11, 2014 1:17 pm, edited 2 times in total.
User avatar
dydynamic
Trader
Posts: 293
Joined: Fri Feb 28, 2014 4:19 pm

MPTM's new home

Post by dydynamic »

This Trade manger can only manage one magic number and one trade comment at a time.
please modify it to manage more than one magic number and trade comment at a time, for those EAs like
Bobs Second Brainless Thingy that have more than one magic no and trade comment.
Thanks. :hi: :yahoo: :good:
jacktrade
Posts: 1
Joined: Wed Oct 10, 2012 3:18 pm

MPTM for MT5

Post by jacktrade »

Hi All,

I'm a satisfied user of this wonderful EA (though still in demo).
Is there any version working in Mt5?

Thanks

Giacomo
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

MPTM's new home: stupid settings question

Post by BobbyT »

Hi everyone and anyone,

Short time lurker, first time poster here.
I have 2 questions that i was hoping some kind soul could assist me with.

First off, a question about MPTM which has been asked previously (and answered in this thread). How on earth do I get MPTM to only partial close a position once with jumping stop loss? I understand in a previous response to a similar question Steve indicated that that the old 'preserve lots' function was now hardcoded in the EA and is therefore automatic. However, I've been playing with it for the past couple of weeks and no matter what i do, it seems to close half the position at each jump (as I have partial close set to 0.5). I have read this thread and the user guide several times and can't resolve this.
I know I can pretty dim sometimes so I attached the set file in the hope someone could point out my dumbass mistake :roll:

Second question is more strategy based and probably out of place here, but, what stop loss options do folks use for daily strategies. What have you found to be a good balance between locking in some profit and losing some on heavy retraces. I was on the right side of the NZD craziness this week but only caught 30 pips of it :arrrg:

Finally, I would like to thank Steve, Nanningbob, CaptainJack, pips400, Baluda, and all the other wonderful coders, traders and contributors on this forum for sharing their amazing indicators, EAs, strategies, opinions and most of all your knowledge. This forum and it's members have transformed my trading (albeit still demo) beyond recognition, and I owe you all a great debt of gratitude (and a hell of a lot more) :clap:

Cheers from 'the upside down land',
BobbyT
You do not have the required permissions to view the files attached to this post.
Procrastination provides exponentially negative returns - BobbyT
boskywtd
Posts: 2
Joined: Sun Nov 02, 2014 4:10 pm

MPTM's new home

Post by boskywtd »

SteveHopwood » Sat Oct 04, 2014 1:23 pm wrote:Latest version of mptm is in post 1. This one is mostly for the coders - read 'For the coders' in post 1.

For the rest of you, I have added some input separators to make reading the inputs easier and extra code to try to force mptm to close baskets during the global closure and basket closure functions. A few of us have had experiences in the FB thread where mptm has claimed that a basket should be closed, but did bugger all about it. Not certain the extra code will work, but we can try.

:xm:

Hi

Version from the first post has got problems with closing all basket trades (some of them stay open).Milanese version 6xx working fine so far. Just to let you know, but I will keep testing them.
boskywtd
Posts: 2
Joined: Sun Nov 02, 2014 4:10 pm

MPTM's new home

Post by boskywtd »

Any chance somebody can have a look on this EA Equity Manager for Martingale Lover v2.mq4 (trailing equity). Has got similar problem, does not wont to close all trades. It could be something with 6xx build.

Trailing equity is the only mising thing for me in the MPMT.


Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
cad0811
Trader
Posts: 97
Joined: Sat Sep 08, 2012 1:09 pm

MPTM's new home [new ATR BE/JS]

Post by cad0811 »

milanese » Thu Jun 12, 2014 1:27 am wrote:
cad0811 » Wed Jun 11, 2014 5:23 pm wrote:
milanese » Thu Jun 12, 2014 1:10 am wrote:
cad0811 » Wed Jun 11, 2014 4:28 pm wrote:
milanese » Tue May 27, 2014 4:50 pm wrote:Hi all :hi:

as cad0811 me requested for an ATR SL/TP setting, I found a little bloop in the code here is the fixed MPTM version now you can use UseTpAtr and UseSlAtr, the OOTB setting is set to use both.

Cheers :)

Tommaso
Hi,Tommaso!
To request you a request again?Modify the BE and the way of JSL!

BE="Break even settings";
BreakEven=false;
BreakEvenPips=10; (Fixed points is modified to use the ATR)
BreakEvenProfit=2;
HideBreakEvenStop=false;
PipsAwayFromVisualBE=100;
JSL="Jumping stop loss settings";
JumpingStop=false;
JumpingStopPips=50; (Fixed points is modified to use the ATR)


Thank you!
cheers!
here you go

new settings:

Code: Select all

extern string  BE                            = "Break even settings";
extern bool    BreakEven                     = true;
extern bool    UseBEAtr                      = true;
extern int     AtrBEPeriod                   = 14;
extern int     AtrBETimeFrame                = PERIOD_H4;
extern double  AtrBEMultiplier               = 1;
extern double  BreakEvenPips                 = 25;
extern double  BreakEvenProfit               = 10;
extern bool    HideBreakEvenStop             = false;
extern double  PipsAwayFromVisualBE          = 100;
extern string  JSL                           = "Jumping stop loss settings";
extern bool    JumpingStop                   = true;
extern bool    UseJSAtr                      = true;
extern int     AtrJSPeriod                   = 14;
extern int     AtrJSTimeFrame                = PERIOD_H4;
extern double  AtrJSMultiplier               = 1;
extern double  JumpingStopPips               = 30;
extern bool    AddBEP                        = false;
extern bool    JumpAfterBreakevenOnly        = false;
extern bool    HideJumpingStop               = false;
extern double  PipsAwayFromVisualJS          = 100;

Cheers :)

Tommaso
Hello, I test it appear the following error, thank you!Can you give me a compiled?
sure :smile:

Cheers :)

Tommaso
Several months of test, work is quite perfect.
There is a small problem, if you use ATR_BE, close 50% ,the same currency have multiple orders, will happen error, close the order directly.
Thank you very much!
Thank you so much for all the people here!Thank you for your selfless!My growth cannot leave your work!Cheers!
Locked

Return to “Utilities Indicators and Scripts”