MPTM's new home

MPTM's new home
Locked
4XLord
Posts: 5
Joined: Sat Sep 08, 2012 9:31 am

MPTM's new home

Post by 4XLord »

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

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
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
4XLord
Posts: 5
Joined: Sat Sep 08, 2012 9:31 am

MPTM's new home

Post by 4XLord »

Ok Tommaso,

Thank you very much

;-)
4XLord
Posts: 5
Joined: Sat Sep 08, 2012 9:31 am

MPTM's new home

Post by 4XLord »

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
craig65
Posts: 9
Joined: Mon Jan 16, 2012 2:56 pm

MPTM's new home

Post by craig65 »

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

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
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
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home [fixed ATR SL/TP]

Post by milanese »

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
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
User avatar
cad0811
Trader
Posts: 97
Joined: Sat Sep 08, 2012 1:09 pm

MPTM's new home [fixed ATR SL/TP]

Post by cad0811 »

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
You do not have the required permissions to view the files attached to this post.
Thank you so much for all the people here!Thank you for your selfless!My growth cannot leave your work!Cheers!
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

MPTM's new home [fixed ATR SL/TP]

Post by milanese »

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
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
User avatar
cad0811
Trader
Posts: 97
Joined: Sat Sep 08, 2012 1:09 pm

MPTM's new home [fixed ATR SL/TP]

Post by cad0811 »

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!
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”