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

MPTM's new home
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=64
Page 22 of 57
Author:  dudest [ Fri Apr 05, 2013 7:35 am ]
Post subject:  Re: MPTM's new home

Update:

SL insertion errors happened quite alot with GBPJPY yesterday.

A thought crossed my mind this morning -> My MPTM is on a USDCHF M5 chart, and AlwaysOn set to off (coz it runs up the CPU). So maybe the problem is when USDCHF M5 does not get some ticks, other charts (e.g GBPJPY) are moving furiously. By the time the USDCHF M5 gets a quote, MPTM finds price is far gone.

So I've scrapped the workaround above (noticed also that despite closing the trade, the hedge doesn't come on right or doesn't come on at all). I have put MPTM on a GBPJPY M1 chart (high frequency ticks). I have a feeling this may solve the issue for me.

Cheers!
Author:  cuzgeorge [ Fri Apr 05, 2013 8:18 am ]
Post subject:  Re: MPTM's new home

dudest wrote:Update:

SL insertion errors happened quite alot with GBPJPY yesterday.

A thought crossed my mind this morning -> My MPTM is on a USDCHF M5 chart, and AlwaysOn set to off (coz it runs up the CPU). So maybe the problem is when USDCHF M5 does not get some ticks, other charts (e.g GBPJPY) are moving furiously. By the time the USDCHF M5 gets a quote, MPTM finds price is far gone.

So I've scrapped the workaround above (noticed also that despite closing the trade, the hedge doesn't come on right or doesn't come on at all). I have put MPTM on a GBPJPY M1 chart (high frequency ticks). I have a feeling this may solve the issue for me.

Cheers!
Hi Dudest,
i was also having problems like this in the early days with my MPTM's and it was because i was attaching the EA to the dollar index. Steve nearly bit my leg off when i mentioned that, :lol: :lol: .
I couldnt understand why when i changed TF's , MPTM would kick in and take the positions it had missed before. :? Now we know.

It definately needs ticks, although Steve reckons it can go on any TF. I use it on EURUSD M1 now.

With help for your code, the only person apart from Steve that seems to really understand the code for MPTM, is Global. Maybe if you ask him for some help on the code, but i know he has his hands full at the moment.
Steve doesnt like changes to MPTM from post 1 as you will notice from his posts, but if your code works, it s always appreciated as you post your work here.
Thanks for your input here, :D , I like your methodology.
cuz
Author:  dudest [ Fri Apr 05, 2013 8:53 am ]
Post subject:  Re: MPTM's new home

cuzgeorge wrote:
Hi Dudest,
i was also having problems like this in the early days with my MPTM's and it was because i was attaching the EA to the dollar index. Steve nearly bit my leg off when i mentioned that, :lol: :lol: .
I couldnt understand why when i changed TF's , MPTM would kick in and take the positions it had missed before. :? Now we know.

It definately needs ticks, although Steve reckons it can go on any TF. I use it on EURUSD M1 now.

With help for your code, the only person apart from Steve that seems to really understand the code for MPTM, is Global. Maybe if you ask him for some help on the code, but i know he has his hands full at the moment.
Steve doesnt like changes to MPTM from post 1 as you will notice from his posts, but if your code works, it s always appreciated as you post your work here.
Thanks for your input here, :D , I like your methodology.
cuz
Thanks cuz!, your wisdom is always much appreciated!

Going by your confirmation, I def think the issue is (was) ticks :)

Thanks for the tip about Global (vis a vis help with code), I'll holla at him for future code change ideas.

Cheers!
Author:  SteveHopwood [ Fri Apr 05, 2013 1:43 pm ]
Post subject:  Re: MPTM's new home

Guys, just a quick reminder that you cannot expect an ea to work properly if you do not use it as intended.

Any multi-pair trader/manager needs to be working all the time. If you rely on ticks to the chart that is hosting the software, you are riding for a fall.

And then, on top of that you place it on a chart that has three ticks a week......................words fail me. :lol: Ok, so I am exaggerating, but I am sure you get the point.

dudest, FYI there is a slightly better code for order closing. It is this:
bool result = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 7, CLR_NONE);

OrderClosePrice() will calculate the close price for you and saves a bit of hassle with the code.

:D
Author:  dudest [ Mon Apr 08, 2013 8:14 am ]
Post subject:  Re: MPTM's new home

Thanks Steve, much appreciated.
SteveHopwood wrote:Guys, just a quick reminder that you cannot expect an ea to work properly if you do not use it as intended.

Any multi-pair trader/manager needs to be working all the time. If you rely on ticks to the chart that is hosting the software, you are riding for a fall.

And then, on top of that you place it on a chart that has three ticks a week......................words fail me. :lol: Ok, so I am exaggerating, but I am sure you get the point.

dudest, FYI there is a slightly better code for order closing. It is this:
bool result = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 7, CLR_NONE);

OrderClosePrice() will calculate the close price for you and saves a bit of hassle with the code.

:D
Author:  basist13 [ Thu Apr 11, 2013 12:37 pm ]
Post subject:  Re: MPTM's new home

Hi all,

I need help with setting MPTM for the following example. I have a basket of trades and now my profit for the whole basket is 100 EUR. I want to leave basket to open, but I also want to lock my profit -for example 50 EUR.

How can I set MPTM so that my SL would be 50 EUR?

I tried several setting (Basket trade management, Basket stop loss settings: 80;....) but It is not working?

Can anyone help me?

Thank you and best regards,

Dejan
Author:  dudest [ Thu Apr 11, 2013 1:53 pm ]
Post subject:  Re: MPTM's new home

basist13 wrote:Hi all,

I need help with setting MPTM for the following example. I have a basket of trades and now my profit for the whole basket is 100 EUR. I want to leave basket to open, but I also want to lock my profit -for example 50 EUR.

How can I set MPTM so that my SL would be 50 EUR?

I tried several setting (Basket trade management, Basket stop loss settings: 80;....) but It is not working?

Can anyone help me?

Thank you and best regards,

Dejan
Uhm,...have never used the basket side of MPTM, but might you have tried this?

// My understanding: jump basket SL every 50 EURO

Code: Select all

bin13=Basket jumping stop settings
BasketJumpingStop=1
BasketJumpingStopProfit=50
BasketAddBEP=0
BasketBreakEvenProfit=0
DisableBasketJumpStopAfterBE=0
or

// My understanding: Trail by 50% (=50 EURO) when profit gets to 100EURO

Code: Select all

bin7=Basket trailing stop settings
BasketTrailingStop=1
BasketTsAtProfit=100
BasketTrailPercent=50
Hope it helps.

Cheers
Author:  basist13 [ Thu Apr 11, 2013 8:24 pm ]
Post subject:  Re: MPTM's new home

dudest wrote:
basist13 wrote:Hi all,

I need help with setting MPTM for the following example. I have a basket of trades and now my profit for the whole basket is 100 EUR. I want to leave basket to open, but I also want to lock my profit -for example 50 EUR.

How can I set MPTM so that my SL would be 50 EUR?

I tried several setting (Basket trade management, Basket stop loss settings: 80;....) but It is not working?

Can anyone help me?

Thank you and best regards,

Dejan
Uhm,...have never used the basket side of MPTM, but might you have tried this?

// My understanding: jump basket SL every 50 EURO

Code: Select all

bin13=Basket jumping stop settings
BasketJumpingStop=1
BasketJumpingStopProfit=50
BasketAddBEP=0
BasketBreakEvenProfit=0
DisableBasketJumpStopAfterBE=0
or

// My understanding: Trail by 50% (=50 EURO) when profit gets to 100EURO

Code: Select all

bin7=Basket trailing stop settings
BasketTrailingStop=1
BasketTsAtProfit=100
BasketTrailPercent=50
Hope it helps.

Cheers
It's working. Thank you!
Author:  dudest [ Wed Apr 17, 2013 10:44 am ]
Post subject:  Re: MPTM's new home

Hallo Steve, all,

I'm facing an issue with the Hedging functionality.

I've noticed that when CloseAtBreakEven=0, hedge trade is NOT opened (regardless of whether or not I've set HedgeTradeStopLoss and HedgeTradeTakeProfit)

When I set CloseAtBreakEven=1, hedge trade is opened OK (regardless of whether or not I've set HedgeTradeStopLoss and HedgeTradeTakeProfit)

I checked the GlobalVariables, and they were set OK

I've gone through the code (as best as I can), and I don't see anything wrong... :/

There are no errors in experts or journal tabs.

Has anyone else faced this? Is anyone running the latest MPTM with Hedging enabled and CloseAtBreakEven=0?

Holla!

Thanks

Attached: mptm setfile
Author:  lsburrows [ Thu Apr 18, 2013 11:46 pm ]
Post subject:  Re: MPTM's new home

Hi:

For some reason I am not able to view the MPTM properties when I right click on the chart where it is running. I am certain this used to work. The problem exists on several brokers. I get the dialogue box when there are trades in process so it seems to be running. Smiley face is present.

Any suggestions?
lawrence_s_burrows@yahoo.com
All times are UTC Page 22 of 57