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

MPTM's new home
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=64
Page 46 of 57
Author:  4XLord [ Thu May 15, 2014 4:13 pm ]
Post subject:  MPTM's new home

milanese » Thu May 15, 2014 3:11 pm wrote:
4XLord » Thu May 15, 2014 2:58 pm wrote:Hi guys!

I'd need MPTM with basket trailing option in "pips".

Is there any modified version that has that feature, or could someone give me a help on that?


Kind Regards,
4XL
You can try for this proposes the attached one, it is the Multi Purpose Basket Manager.

Cheers :)

Tommaso

Hi Milanese!

I'm having some issues understanding/configuring the "MPBM" to my needs...

I need to trail my basket @ total +5pips profit, then I want to lock 3 pips profit, and after that, continuing trailing the profit basket at 1 pip step. How should I configure it?

Regards,
4XL
Author:  milanese [ Thu May 15, 2014 4:35 pm ]
Post subject:  MPTM's new home

4XLord » Thu May 15, 2014 4:13 pm wrote:
Hi Milanese!

I'm having some issues understanding/configuring the "MPBM" to my needs...

I need to trail my basket @ total +5pips profit, then I want to lock 3 pips profit, and after that, continuing trailing the profit basket at 1 pip step. How should I configure it?

Regards,
4XL
I think this explains very good all settings

Code: Select all

extern string  gen = "----- General inputs -----";
extern int     MagicNumber = 0;
extern string  TradeComment = "";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
extern string  tpsl = "----- Take profit and stop loss -----";
extern string  tpi = "--- Take profit ---";
extern string  tpp = "Pips TP";
extern int     AdaptivePipsTakeProfit = 50; //Pips per open trade. A zero input will disable this.
extern int     PipsTakeProfit = 0; //Hard tp, overridden by AdaptivePipsTakeProfit
extern string  ctp = "Cash TP";
extern int     CashTakeProfit = 0; //integer declaration is deliberate - no need to muck around with pence
extern double  RewardPercentageTakeProfit = 0; //Percent of balance to use as cash tp. Zero to disable
extern string  sli = "--- Stop loss ---";
extern string  tsl = "Pips SL";
extern int     AdaptivePipsStopLoss = 75; //Pips per open trade. A zero input will disable this.
extern int     PipsStopLoss = 0; //Hard sl, overridden by AdaptivePipsStopLoss
extern string  csl = "Cash SL";
extern int     CashStopLoss = 0; //integer declaration is deliberate - no need to muck around with pence
extern double  RiskPercentageStopLoss = 0; //Percent of balance to use as sl. Zero to disable
extern string  bei = "Break even";
extern int     BreakEvenProfitPips = 200; //Set to zero to disable this function
extern int     BreakEvenProfitPipsLock = 20;
extern int     AdaptiveBreakEvenProfitPips = 25; //Set to zero to disable this function
extern int     AdaptiveBreakEvenProfitPipsLock = 10; //Pips per open trade. A zero input will disable this.
int            BreakEvenProfitCash = 0; //Set to zero to disable this function
int            BreakEvenProfitCashLock = 0;
extern string  jsli = "Jumping stop loss";
extern int     JumpingStopPips = 0; //Zero to disable
extern int     AdaptiveJumpingStopPips = 15; //Zero to disable
Cheers:)

Tommaso
Author:  4XLord [ Thu May 15, 2014 10:21 pm ]
Post subject:  MPTM's new home

Ok Tommaso,

Thank you very much

;-)
Author:  4XLord [ Fri May 16, 2014 9:37 am ]
Post subject:  MPTM's new home

milanese » Thu May 15, 2014 4:35 pm wrote:
4XLord » Thu May 15, 2014 4:13 pm wrote:
Hi Milanese!

I'm having some issues understanding/configuring the "MPBM" to my needs...

I need to trail my basket @ total +5pips profit, then I want to lock 3 pips profit, and after that, continuing trailing the profit basket at 1 pip step. How should I configure it?

Regards,
4XL
I think this explains very good all settings

Code: Select all

extern string  gen = "----- General inputs -----";
extern int     MagicNumber = 0;
extern string  TradeComment = "";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
extern string  tpsl = "----- Take profit and stop loss -----";
extern string  tpi = "--- Take profit ---";
extern string  tpp = "Pips TP";
extern int     AdaptivePipsTakeProfit = 50; //Pips per open trade. A zero input will disable this.
extern int     PipsTakeProfit = 0; //Hard tp, overridden by AdaptivePipsTakeProfit
extern string  ctp = "Cash TP";
extern int     CashTakeProfit = 0; //integer declaration is deliberate - no need to muck around with pence
extern double  RewardPercentageTakeProfit = 0; //Percent of balance to use as cash tp. Zero to disable
extern string  sli = "--- Stop loss ---";
extern string  tsl = "Pips SL";
extern int     AdaptivePipsStopLoss = 75; //Pips per open trade. A zero input will disable this.
extern int     PipsStopLoss = 0; //Hard sl, overridden by AdaptivePipsStopLoss
extern string  csl = "Cash SL";
extern int     CashStopLoss = 0; //integer declaration is deliberate - no need to muck around with pence
extern double  RiskPercentageStopLoss = 0; //Percent of balance to use as sl. Zero to disable
extern string  bei = "Break even";
extern int     BreakEvenProfitPips = 200; //Set to zero to disable this function
extern int     BreakEvenProfitPipsLock = 20;
extern int     AdaptiveBreakEvenProfitPips = 25; //Set to zero to disable this function
extern int     AdaptiveBreakEvenProfitPipsLock = 10; //Pips per open trade. A zero input will disable this.
int            BreakEvenProfitCash = 0; //Set to zero to disable this function
int            BreakEvenProfitCashLock = 0;
extern string  jsli = "Jumping stop loss";
extern int     JumpingStopPips = 0; //Zero to disable
extern int     AdaptiveJumpingStopPips = 15; //Zero to disable
Cheers:)

Tommaso

Hi Tommaso,

I can't implement my basket management strategy with the MPBM version...
Would it be possible to just add to the "classic" MPTM_Global, the feature: TrailingStopPips?
e.g.

extern string sep20 = "---------------------------------------------------------------------";
extern string bin7 = "----Basket trailing stop settings----";
extern bool BasketTrailingStop = false;
extern double BasketTsAtProfit = 1;
extern double BasketTrailPercent = 75;
extern double BasketTrailPips = 10; (with BasketTrailPercent feature)

Thank you very much

Regards
Author:  craig65 [ Wed May 21, 2014 9:41 am ]
Post subject:  MPTM's new home

Milanese I worked it out. the new build 625 has allow live trading deslected by default. I had to tick the box for mptm to work. didn't have to do that before.
Author:  milanese [ Wed May 21, 2014 9:43 am ]
Post subject:  MPTM's new home

craig65 » Wed May 21, 2014 9:41 am wrote:Milanese I worked it out. the new build 625 has allow live trading deslected by default. I had to tick the box for mptm to work. didn't have to do that before.
yes, that is since build 625, it makes it at one hand more secure, at the other hand it is irritating much people..

Cheers :)

Tommaso
Author:  milanese [ Tue May 27, 2014 8:50 am ]
Post subject:  MPTM's new home [fixed ATR SL/TP]

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.
Multi-purpose trade manager_ATR.mq4
Cheers :)

Tommaso
Author:  cad0811 [ Tue May 27, 2014 9:36 am ]
Post subject:  MPTM's new home [fixed ATR SL/TP]

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
The following mistakes, fail to load!
aaa.png
bbb.png
Author:  milanese [ Tue May 27, 2014 9:49 am ]
Post subject:  MPTM's new home [fixed ATR SL/TP]

cad0811 » Tue May 27, 2014 9:36 am 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
The following mistakes, fail to load!


this will only run with builds >600 I attach you too the ex4 file.., btw you tried to compile not the complete mq4 that is why you see the errors, make always sure to copy past the complete file..
Multi-purpose trade manager_ATR.ex4
Cheers :)

Tommaso
Author:  cad0811 [ Tue May 27, 2014 2:29 pm ]
Post subject:  MPTM's new home [fixed ATR SL/TP]

milanese » Tue May 27, 2014 5:49 pm wrote:
cad0811 » Tue May 27, 2014 9:36 am 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
The following mistakes, fail to load!


this will only run with builds >600 I attach you too the ex4 file.., btw you tried to compile not the complete mq4 that is why you see the errors, make always sure to copy past the complete file..

Cheers :)

Tommaso
Thank you very much!
I tested, good work!
Cheers!
All times are UTC Page 46 of 57