MPTM's new home

MPTM's new home
Locked
CanadianKodiak
Posts: 1
Joined: Fri Feb 07, 2014 2:22 am

Re: MPTM's new home

Post by CanadianKodiak »

I cant seem to compile the new version of MPTM. I get 2 errors. One of the errors says it can't open the file for some reason, the 2nd error says Ex4 write error. Any suggestions as to how to get this puppy working?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: MPTM's new home

Post by milanese »

CanadianKodiak » Wed Feb 12, 2014 10:59 pm wrote:I cant seem to compile the new version of MPTM. I get 2 errors. One of the errors says it can't open the file for some reason, the 2nd error says Ex4 write error. Any suggestions as to how to get this puppy working?
this error seems at your backend, try it with a new install of the Empty4 not a updated one, it should work as I use the EA here with build 604 without problems since days.. If you have problems to find the folders try this:
In the 6xx build the place where are present the directories like config, history, logs,templates ecc. is mostly different to the main Empty4 installation folder.
The only way to find out where the correct "Data folder" location is, is to read the "Journal" log of Empty4.
The second line from start reports the used Data folder.

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
varso
Trader
Posts: 44
Joined: Mon Oct 22, 2012 7:19 am

MPTM's new home

Post by varso »

Hi i have problem.
I use only MPTM for hedge, nothink more. ALL other setting is false.
My setting are like Manage all trade. Hedge open position after 15 pip lost with 15 and TP 15. BUt some reasom MPTM modifate also original trade with 0 SL and 0 TP. Anybody know why?

I will try manage with magic number. I will see if it repeat again.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home

Post by milanese »

varso » Mon Feb 17, 2014 11:46 am wrote:Hi i have problem.
I use only MPTM for hedge, nothink more. ALL other setting is false.
My setting are like Manage all trade. Hedge open position after 15 pip lost with 15 and TP 15. BUt some reasom MPTM modifate also original trade with 0 SL and 0 TP. Anybody know why?

I will try manage with magic number. I will see if it repeat again.
Hi varso,

how is your setting for

Code: Select all

extern double  HedgeTradeStopLoss            = 0;
extern double  HedgeTradeTakeProfit          = 0;
if you use 0 like it it is OOTB this is normal...


Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
varso
Trader
Posts: 44
Joined: Mon Oct 22, 2012 7:19 am

MPTM's new home

Post by varso »

milanese » Mon Feb 17, 2014 1:20 pm wrote:
varso » Mon Feb 17, 2014 11:46 am wrote:Hi i have problem.
I use only MPTM for hedge, nothink more. ALL other setting is false.
My setting are like Manage all trade. Hedge open position after 15 pip lost with 15 and TP 15. BUt some reasom MPTM modifate also original trade with 0 SL and 0 TP. Anybody know why?

I will try manage with magic number. I will see if it repeat again.
Hi varso,

how is your setting for

Code: Select all

extern double  HedgeTradeStopLoss            = 0;
extern double  HedgeTradeTakeProfit          = 0;
if you use 0 like it it is OOTB this is normal...


Cheers :)

Tommaso
Sorry for my english but i try it one more time.

I had open buy position at NZDCAD with SL 30 and TP 30
The MPTM open sell hedge position after when buy trade rich -15pips with 15SL and 15TP this was OK.
But then some reason MPTM change the original buy trade and modifate SL and TP to 0. This was wrong i dont want anythink change on original trade.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home

Post by milanese »

varso » Mon Feb 17, 2014 12:45 pm wrote:
Sorry for my english but i try it one more time.

I had open buy position at NZDCAD with SL 30 and TP 30
The MPTM open sell hedge position after when buy trade rich -15pips with 15SL and 15TP this was OK.
But then some reason MPTM change the original buy trade and modifate SL and TP to 0. This was wrong i dont want anythink change on original trade.
This is like the hedge funtion is programmed, as I understand the code in this part right, this function tries to close all positions if the BE is reached..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
varso
Trader
Posts: 44
Joined: Mon Oct 22, 2012 7:19 am

MPTM's new home

Post by varso »

milanese » Mon Feb 17, 2014 1:53 pm wrote:
This is like the hedge funtion is programmed, as I understand the code in this part right, this function tries to close all positions if the BE is reached..

Cheers :)

Tommaso
Im not shure of this because there is a closeonbreak setting true or false. And i have false. Also the closeonbreak make sence only if i have double position hedge but if i have the some size like original trade than the closeonbreak its not possible.(You never reach zero on money).

but i write how i understood it but maybe im wrong.

the easy one
i have buy EU SL is 30pips Tp 30pips.
volume 1 lot.
the trade going bad. We are -15 pips.
Now the hedge come. We have many possibilities.
1.First
Keep original buy like it is with same SL and TP
Open sell hedge with 1 lot 15SL and 15TP.
when sell hedge reach TP15 also the original buy close on SL30.

we lost 30-15=-15pips

2.Second
Open sell position with SL 15and TP 0
but with 2 lots+spread +commision ( another word it must bring more like double money like original trade on pip)
Original trade -TP dont change SL is change to 0.
close trades on break when income with hedge trade will be the same like outcome original trade.

we lost 30(1lot) -15(2lots)=0

This is the easy ones, NOT RECOMENDED.

On original
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home

Post by milanese »

varso » Mon Feb 17, 2014 2:39 pm wrote:
Im not shure of this because there is a closeonbreak setting true or false. And i have false. Also the closeonbreak make sence only if i have double position hedge but if i have the some size like original trade than the closeonbreak its not possible.(You never reach zero on money).

but i write how i understood it but maybe im wrong.

the easy one
i have buy EU SL is 30pips Tp 30pips.
volume 1 lot.
the trade going bad. We are -15 pips.
Now the hedge come. We have many possibilities.
1.First
Keep original buy like it is with same SL and TP
Open sell hedge with 1 lot 15SL and 15TP.
when sell hedge reach TP15 also the original buy close on SL30.

we lost 30-15=-15pips

2.Second
Open sell position with SL 15and TP 0
but with 2 lots+spread +commision ( another word it must bring more like double money like original trade on pip)
Original trade -TP dont change SL is change to 0.
close trades on break when income with hedge trade will be the same like outcome original trade.

we lost 30(1lot) -15(2lots)=0

This is the easy ones, NOT RECOMENDED.

On original
Could you post the setting you are using?

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
varso
Trader
Posts: 44
Joined: Mon Oct 22, 2012 7:19 am

MPTM's new home

Post by varso »

yes sure
here it is


and here is log

2014.02.17 09:31:10.051 Multi-purpose trade manager600 USDCHF,M1: modify #31425622 buy 0.08 NZDCAD at 0.91931 sl: 0.00000 tp: 0.00000 ok
2014.02.17 09:31:09.786 Multi-purpose trade manager600 USDCHF,M1: Alert: Sell hedge trade set for NZDCAD buy
2014.02.17 09:31:09.786 Multi-purpose trade manager600 USDCHF,M1: open #31444672 sell 0.08 NZDCAD at 0.91690 sl: 0.91938 tp: 0.91540 ok
2014.02.17 00:13:55.455 TMA_CG_MultiTrader v1.05 USDCHF,M1: modify #31425622 buy 0.08 NZDCAD at 0.91931 sl: 0.91561 tp: 0.00000 ok
2014.02.17 00:13:55.111 TMA_CG_MultiTrader v1.05 USDCHF,M1: TMA_CG_MultiTrader v1.05 31425622 ModifyOrder() take profit < market 0: no error
2014.02.17 00:13:55.111 TMA_CG_MultiTrader v1.05 USDCHF,M1: Alert: TMA_CG_MultiTrader v1.05 31425622 ModifyOrder() take profit < market 0: no error
2014.02.17 00:13:54.987 TMA_CG_MultiTrader v1.05 USDCHF,M1: open #31425622 buy 0.08 NZDCAD at 0.91931 ok

Why the red one?
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home

Post by milanese »

varso » Mon Feb 17, 2014 3:53 pm wrote:yes sure
here it is


and here is log

2014.02.17 09:31:10.051 Multi-purpose trade manager600 USDCHF,M1: modify #31425622 buy 0.08 NZDCAD at 0.91931 sl: 0.00000 tp: 0.00000 ok
2014.02.17 09:31:09.786 Multi-purpose trade manager600 USDCHF,M1: Alert: Sell hedge trade set for NZDCAD buy
2014.02.17 09:31:09.786 Multi-purpose trade manager600 USDCHF,M1: open #31444672 sell 0.08 NZDCAD at 0.91690 sl: 0.91938 tp: 0.91540 ok
2014.02.17 00:13:55.455 TMA_CG_MultiTrader v1.05 USDCHF,M1: modify #31425622 buy 0.08 NZDCAD at 0.91931 sl: 0.91561 tp: 0.00000 ok
2014.02.17 00:13:55.111 TMA_CG_MultiTrader v1.05 USDCHF,M1: TMA_CG_MultiTrader v1.05 31425622 ModifyOrder() take profit < market 0: no error
2014.02.17 00:13:55.111 TMA_CG_MultiTrader v1.05 USDCHF,M1: Alert: TMA_CG_MultiTrader v1.05 31425622 ModifyOrder() take profit < market 0: no error
2014.02.17 00:13:54.987 TMA_CG_MultiTrader v1.05 USDCHF,M1: open #31425622 buy 0.08 NZDCAD at 0.91931 ok

Why the red one?
Hi varso,

ok try the attached one, it should work as you wanted, should not change the sl of the original trade to 0..
Multi-purpose trade manager_V_6xx.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Locked

Return to “Utilities Indicators and Scripts”