MPTM's new home

MPTM's new home
Locked
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

FXAddict wrote: Hello,
The info are:

...
Regards
OK.

Last question: what do u want to achieve with MPTM? (how do you want it to manage your trades?)

Give as much detail as possibe
FXAddict
Posts: 7
Joined: Thu May 30, 2013 1:19 pm

Re: MPTM's new home

Post by FXAddict »

dudest wrote: OK.

Last question: what do u want to achieve with MPTM? (how do you want it to manage your trades?)

Give as much detail as possibe
Hello Thanks for the response.
I want two things with MPTM.

1. I want that whenever my trades go into profit, i.e. the market price crosses my trade's opening price, the Stop Loss should move to my Entry Point or a Few pips ahead like I can customize it.

As an example, say I opened an Buy order at 1.3000 and set Stop Loss at 1.2980. Now I want that whenever the market reaches 1.3004, I want that stop loss to move at 1.3003. (So the BreakEvenProfit will be 3 pips, right?)

a. Here a thought. If I don't set the Stop Loss during opening order and Set Stop Loss later, would it be valid for MPTM or each time I have to set Stop Loss along with order opening?

b. Does setting SL is essential? If I don't set SL, will MPTM function and move SL to BE or to a certain pips level automatically?

2. Secondly I want that as the market prices moves towards my direction the Stop Loss will also move.

Like as above example, when the market price will be reached at 1.3020, the SL will be moved to 1.3015. Again when the price will be 1.3040, the SL will move to 1.3030.

I think the 'JumpingStop' option does it. But here I have a confusion. As it is written in the manual that 1st time 'JumpingStop' will move the SL to BE. Then it will increment the SL.
My confusion is if 'Break Even' and 'JumpingStop' together then what will happen because BE will move the SL ahead of my pre set pips when the market will cross my pre defined number of pips in favor of me. 'JumpingStop' will do the same but move SL to BE initially.

Now, what instruction MPTM will follow first if I set 'Break Even Pips' at 4 and 'Jumping Stop Pips' at 3?

3. I want that when the market will go in my favor then after a certain number of pips, a certain portion of my lot will be closed.

Like I would like to get my half of the trade auto closed when the market will reach 1.3020.

For this I think I'll have to use 'PartCloseEnabled'. I have to set 'Close_Lots' for my desired portion.

Let me present my thought about the whole like in the manual.

If I want my SL to be moved to 2 pips ahead of my opening order (for Buy) when the market reaches 3 pips. That is Sl has to be moved to 1.3002 from 1.2980 when the market price is 1.3003.
Then I want to lock profit after 20 pips by half of the trade and SL to be move by 15 pips (That means the market has to be moved by 30 pips?).

So, I'll set:
JumpingStop- True.
JumpingStopPips- 15
AddBEP- 2
PartCloseEnabled- True
Close_Lots- 0.5

Now will I have to set BreakEven- false ?

Thans
FXAddict
Posts: 7
Joined: Thu May 30, 2013 1:19 pm

Re: MPTM's new home

Post by FXAddict »

And another question.
If I want that the Stop Loss will move along with the market price at a distance of say 5 pips when the market is in my favor and ensures at least say 3 pips profit if the market starts to go opposite of my trade after being profitable, then what to do?

Like, when the market crossed 1.3003 and the SL moved to 1.3002, then I want the SL to move with the market price with a distance of 5 pips. So when the price will be 1.3020 the SL will move to 1.3015. MP at 1.3030, SL at 1.3025 and if the market comes down sat at 1.3010 then the SL will also be moved to 1.3005.
And when the MP becomes 1.3003 that trade got closed automatically.

Is this really possible?

Thanks
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

Meta Trader: FXOpen
Version: 4.00
Build 500
I have no idea what could be causing your platform to freeze (maybe Empty4 is running out of memory when spitting out all those errors...)
For the moment, this is all i can suggest:

1) Empty4 >> Tools >> Options >> Expert Advisors: do as screenshot below
EA dialog.png
2) Go to experts\logs and delete all log files, they are probably huge right now...
For the set file I want to Experts---> Preset Folder but I got it empty( see attachment). Pardon my ignorance.
I actually don't know where to find that MPTM Set file.
When you load MPTM on a chart and change the settings, you should SAVE the settings (click "Save" and it will save in the experts\presets folder)

Then, if you want to modify settings, load MPTM onto the chart ANEW, and "Load" the existing setfile, make changes, then "Save" the setfile before doing "OK"
MTPM dialog.png
As an example, say I opened an Buy order at 1.3000 and set Stop Loss at 1.2980.
Now I want that whenever the market reaches 1.3004, I want that stop loss to move at 1.3003. (So the BreakEvenProfit will be 3 pips, right?)
a. Here a thought. If I don't set the Stop Loss during opening order and Set Stop Loss later, would it be valid for MPTM or each time I have to set Stop Loss along with order opening?
b. Does setting SL is essential? If I don't set SL, will MPTM function and move SL to BE or to a certain pips level automatically?

Code: Select all

BE=Break even settings
BreakEven=1
BreakEvenPips=4.00000000
BreakEvenProfit=3.00000000
HideBreakEvenStop=0
PipsAwayFromVisualBE=0.00000000
I don't know why you'd want to do that though, you'd be stopped out at 3pips everytime (guaranteed) [stop is too close to price]

=> You don't have to set SL at order opening. MPTM will still function and move SL to BE when the BE condition is met (whether using BreakEven or JumpingStop or any of the Stop functionalities.)
2. Secondly I want that as the market prices moves towards my direction the Stop Loss will also move. Like as above example, when the market price will be reached at 1.3020, the SL will be moved to 1.3015. Again when the price will be 1.3040, the SL will move to 1.3030.

I think the 'JumpingStop' option does it. But here I have a confusion.
As it is written in the manual that 1st time 'JumpingStop' will move the SL to BE. Then it will increment the SL.

My confusion is if 'Break Even' and 'JumpingStop' together then what will happen because BE will move the SL ahead of my pre set pips when the market will
cross my pre defined number of pips in favor of me. 'JumpingStop' will do the same but move SL to BE initially.
OK, you're confused, you're mental jumping stop is haphazard
-> 1.3020/1.3015: you're trailing by 5pips [ you can't ]
-> 1.3040/1.3030: you're trailing by 10pips [ mix them like this]

'Break Even' and 'Jumping Stop' can be used either independently or together

=> 'Break Even' alone: will move SL to BE when BE condition is met

=> 'Jumping Stop' alone: first jump will move SL to BE (when JumpingStopPips is reached)
Then when price moves a further JumpingStopPips, it will move the SL by the same amount

E.g JumpingStopPips=30
-> When price is +30pips in your favour: SL moved to BE
-> When price is +60pips in your favour: SL is moved to +30pips
-> etc

=> When used together: for example

Code: Select all

BE=Break even settings
BreakEven=1
BreakEvenPips=20.00000000
BreakEvenProfit=2.00000000
HideBreakEvenStop=0
PipsAwayFromVisualBE=0.00000000
JSL=Jumping stop loss settings
JumpingStop=1
JumpingStopPips=10
AddBEP=1
JumpAfterBreakevenOnly=1
HideJumpingStop=0
PipsAwayFromVisualJS=0.00000000
Means that when price gets to +20pips, SL will be moved to BE+2pips.
Then JumpingStop takes over and moves SL by 10pips every time price moves +10pips
3. I want that when the market will go in my favor then after a certain number of pips, a certain portion of my lot will be closed.
Like I would like to get my half of the trade auto closed when the market will reach 1.3020.
For this I think I'll have to use 'PartCloseEnabled'. I have to set 'Close_Lots' for my desired portion.
Let me present my thought about the whole like in the manual.
If I want my SL to be moved to 2 pips ahead of my opening order (for Buy) when the market reaches 3 pips. That is Sl has to be moved to 1.3002 from 1.2980 when
the market price is 1.3003. Then I want to lock profit after 20 pips by half of the trade and SL to be move by 15 pips (That means the market has to be moved
by 30 pips?).

So, I'll set:
JumpingStop- True.
JumpingStopPips- 15
AddBEP- 2
PartCloseEnabled- True
Close_Lots- 0.5

Now will I have to set BreakEven- false ?
When using BreakEven and JumpingStop together, set JumpAfterBreakevenOnly=1
That means JS will only start working after BE has moved SL to breakeven.

Also, how you are jumping your SL is skewed.
Decide on how many pips you want to jump by (fixed, not variable)

Code: Select all

BE=Break even settings
BreakEven=1
BreakEvenPips=3.00000000
BreakEvenProfit=2.00000000
HideBreakEvenStop=0
PipsAwayFromVisualBE=0.00000000
JSL=Jumping stop loss settings
JumpingStop=1
JumpingStopPips=17
AddBEP=1
JumpAfterBreakevenOnly=1
HideJumpingStop=0
PipsAwayFromVisualJS=0.00000000
pcbe=PartClose settings can be used in
pcbe1=conjunction with Breakeven settings
PartCloseEnabled=1
Close_LotsFract=0.5
Close_Lots=0.0
Preserve_Lots=0.0
PS: i don't guarantee this will work as you want. The best way I've seen PartClose work is when using 'Jumping Stop' or 'Trailing Stop' alone
And another question.
If I want that the Stop Loss will move along with the market price at a distance of say 5 pips when the market is in my favor and ensures at least say
3 pips profit if the market starts to go opposite of my trade after being profitable, then what to do?
Like, when the market crossed 1.3003 and the SL moved to 1.3002, then I want the SL to move with the market price with a distance of 5 pips.
So when the price will be 1.3020 the SL will move to 1.3015. MP at 1.3030, SL at 1.3025 and if the market comes down sat at 1.3010 then the SL will also be
moved to 1.3005. And when the MP becomes 1.3003 that trade got closed automatically.

Is this really possible?

Thanks
NO, not possible.
The most you can do is trail by 5pips using Trailing Stop. When price reverses, the SL will remain where it is, can't be moved lower.

Code: Select all

BE=Break even settings
BreakEven=1
BreakEvenPips=3.00000000
BreakEvenProfit=2.00000000
HideBreakEvenStop=0
PipsAwayFromVisualBE=0.00000000
..
TSL=Trailing stop loss settings
TrailingStop=1
UseStandardTrail=1
TrailingStopPips=5.00000000
UseCandlestickTrail=0
CandlestickTrailTimeFrame=60
CandleShift=1
HideTrailingStop=0
PipsAwayFromVisualTS=0.00000000
TrailAfterBreakevenOnly=0
StopTrailAtPipsProfit=0
StopTrailPips=0.00000000
FREE ADVICE:

1) Moving to breakeven+2pips when your trade is at +3pips is guaranteed to get you stopped out VERY QUICKLY

2) Decide on a fixed trailing stop in pips (to be implemented using either Break Even &/or Jumping Stop or Trailing Stop). If it's 5pips, stick to 5pips (or 10pips or whatever). Don't overcomplicate

Cheers
You do not have the required permissions to view the files attached to this post.
FXAddict
Posts: 7
Joined: Thu May 30, 2013 1:19 pm

Re: MPTM's new home

Post by FXAddict »

dudest wrote: FREE ADVICE:

1) Moving to breakeven+2pips when your trade is at +3pips is guaranteed to get you stopped out VERY QUICKLY

2) Decide on a fixed trailing stop in pips (to be implemented using either Break Even &/or Jumping Stop or Trailing Stop). If it's 5pips, stick to 5pips (or 10pips or whatever). Don't overcomplicate

Cheers
I really don't know how to Thank you yet Thanks a Lot for taking my problem sincerely and replying back with detailed possible solutions. :)
I will definitely try in the way you have suggested. I hope this time everything will be fine.
I just want to ensure No-Loss after a trade turns into profit, that's why I was thinking for such tight BE and SL. But I'll follow your advices.

Regards.
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

FXAddict wrote: I really don't know how to Thank you yet Thanks a Lot for taking my problem sincerely and replying back with detailed possible solutions. :)
I will definitely try in the way you have suggested. I hope this time everything will be fine.
I just want to ensure No-Loss after a trade turns into profit, that's why I was thinking for such tight BE and SL. But I'll follow your advices.

Regards.
You're welcome friend :) Let us know how it goes and if we can help further

Cheers
FXAddict
Posts: 7
Joined: Thu May 30, 2013 1:19 pm

Re: MPTM's new home

Post by FXAddict »

Hello,
I am once again.
After cleaning the Log file and doing others, I am not able to Edit the MPTM from the chart either by clicking the face adjacent with the 'Multi Purpose Trade Manager :)' or by right clicking on the chart and properties of EA as no properties box is popping up like before.

Secondly, a problem occurred for a setting I was testing at CHFUSD.

It's telling that Jumping Stop function failed. (See attachment)
Probably I did something wrong.

My setting was:
Break Even: 20
Break Even pips: 10
Jumping Stop Pips: 10
AddBEP: True
JumpingafterBE: True

It was a sell order at 105.05 and when the market reached 104.94 the Alarm rang on and continued to rang till the price went back above 104.95.

What did I wrong here?

Thanks
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 »

Hallo,

When AlwaysOn=1, you can not edit MPTM's properties by right-clicking (or F7)

But that's just what I said earlier: don't edit the properties, drag MPTM into the chart afresh, load the setfile, make changes, save, then OK. [ Or edit the setfile in a text editor, then drag MPTM into chart and load new setfile, then OK ]

Now, the error you are getting is invalid stop. It doesn't mean that MPTM is failing, it means that it is encountering error when trying to set stops (coz the stops are invalid/fake/can't work)

Your settings:

Break Even: 20
Break Even pips: 10
Jumping Stop Pips: 10
AddBEP: True
JumpingafterBE: True

-> When price is +20pips: SL is moved to +10pips
-> When price is +30pips: SL is jumped to +20, then BEP is added, which is +30pips

You are setting the SL at the exact current price ==> WILL NOT WORK!

That's why you are getting the invalid stop errors
Viz77
Posts: 1
Joined: Mon Jun 03, 2013 9:27 pm

Re: MPTM's new home

Post by Viz77 »

Hi

I was wondering if someone could help me with a partial close implementation into the EA in the event a trade was to go against me...

ie close 50% when trade moves minus 5 pips and then another 50% of the remainder, and if the trade decision was that bad then the remainder get closed of at the SL.

Over all trade is based on a % of the base account and has multi TP,s and partial closes in the positive like those noted above.

Thanks in advance advise/support.

Regards, Viz
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: MPTM's new home

Post by dudest »

@fxaddict, viz77:

The kind of moving you want [ "non-linear" ] might be possible with Global's version of MPTM

See here: http://www.stevehopwoodforex.com/phpBB3 ... =21&t=1633

Cheers
Locked

Return to “Utilities Indicators and Scripts”