simple allPairBasketManager

MPTM's new home
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[update]simple allPairBasketManager

Post by milanese »

jauhar » Thu Feb 05, 2015 5:16 pm wrote:I want to set a Basket TP only and no Basket SL. My account balance is 6100. When I set:
InitialBalancePercentForTP_Close = 2.5
InitialBalancePercentForSL_Close = 0.0

The EA info box displays:
Close All TP is: 6253
Close All SL is: 120

I don't understand the "Close All SL is: 120". Shouldn't it disable the basket SL when I enter 0.0 above?

Thanks for all your efforts.
update version 1.06
feb. 5, 2015


new input doNotUseSL_Close setting this to true the SAPTM will not use any Basekt-SL, not setting InitialBalancePercentForSL_Close= 0 has the same effect.
If you will set InitialBalancePercentForTP_Close to 0 the SAPTM will use 1000% account balance as TP..
If you prefer the userInfos in the old fashion style set showDisplayBox=false..
New Version attached at first post!
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
jauhar
Trader
Posts: 24
Joined: Wed Apr 17, 2013 6:08 pm

[update]simple allPairBasketManager

Post by jauhar »

milanese » Thu Feb 05, 2015 10:27 pm wrote:
jauhar » Thu Feb 05, 2015 5:16 pm wrote:I want to set a Basket TP only and no Basket SL. My account balance is 6100. When I set:
InitialBalancePercentForTP_Close = 2.5
InitialBalancePercentForSL_Close = 0.0

The EA info box displays:
Close All TP is: 6253
Close All SL is: 120

I don't understand the "Close All SL is: 120". Shouldn't it disable the basket SL when I enter 0.0 above?

Thanks for all your efforts.
update version 1.06
feb. 5, 2015


new input doNotUseSL_Close setting this to true the SAPTM will not use any Basekt-SL, not setting InitialBalancePercentForSL_Close= 0 has the same effect.
If you will set InitialBalancePercentForTP_Close to 0 the SAPTM will use 1000% account balance as TP..
If you prefer the userInfos in the old fashion style set showDisplayBox=false..
New Version attached at first post!
Cheers :)

Tommaso
Wow ... thanks for the quick update.
Jauhar
nicolkoekoek
Trader
Posts: 72
Joined: Tue Mar 11, 2014 4:27 pm
Location: De Bilt

simple allPairBasketManager

Post by nicolkoekoek »

Hi Tommaso,
Many Thanks for all your code work! But correct me if I am wrong, is the TP and SL from the simpleAllPairBasketManagerE.mq4 not based on account Balance iso Equity? I like your Equity_EA_A.mq4, but it doesn't have the "disableExpertsAfterClose" function. It would be nice to have a equity based simpleAllPairBasketManager, as can be useful for these tests.. :-)
PS: Does the "disableExpertsAfterClose=True", includes deleting of the pending orders?
Cheers,
Nicolaas
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

nicolkoekoek » Fri Feb 13, 2015 4:06 pm wrote:
Hi Tommaso,
Many Thanks for all your code work! But correct me if I am wrong, is the TP and SL from the simpleAllPairBasketManagerE.mq4 not based on account Balance iso Equity? I like your Equity_EA_A.mq4, but it doesn't have the "disableExpertsAfterClose" function. It would be nice to have a equity based simpleAllPairBasketManager, as can be useful for these tests.. :-)
PS: Does the "disableExpertsAfterClose=True", includes deleting of the pending orders?
Cheers,
Nicolaas
Hi Nicolaas,
I moved your post here, as here is the right place for this
It uses the equity, only for the initial values the basic accountbalance is used..for the SL and TP and all moving SL operations is the Account Equity used.
Yes the SAPBM will delete all pending orders when Sl/ or TP is hit.

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
nicolkoekoek
Trader
Posts: 72
Joined: Tue Mar 11, 2014 4:27 pm
Location: De Bilt

simple allPairBasketManager

Post by nicolkoekoek »

milanese » Fri Feb 13, 2015 4:25 pm wrote:
nicolkoekoek » Fri Feb 13, 2015 4:06 pm wrote:
Hi Tommaso,
Many Thanks for all your code work! But correct me if I am wrong, is the TP and SL from the simpleAllPairBasketManagerE.mq4 not based on account Balance iso Equity? I like your Equity_EA_A.mq4, but it doesn't have the "disableExpertsAfterClose" function. It would be nice to have a equity based simpleAllPairBasketManager, as can be useful for these tests.. :-)
PS: Does the "disableExpertsAfterClose=True", includes deleting of the pending orders?
Cheers,
Nicolaas
Hi Nicolaas,
I moved your post here, as here is the right place for this
It uses the equity, only for the initial values the basic accountbalance is used..for the SL and TP and all moving SL operations is the Account Equity used.
Yes the SAPBM will delete all pending orders when Sl/ or TP is hit.

Cheers :)

Tommaso
Hi Tommaso,
Thanks for your fast reply! Woo you are fast!
So in the name in the settings: "InitialBalancePercentForTP_Close" is a bit misleading then. (I am testing an EA that has very great Balance increment each day, but the account equity is decreasing. :( ) Well another great tool to test! :-)
Keep smiling,
Nicolaas
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

nicolkoekoek » Fri Feb 13, 2015 4:53 pm wrote:
Hi Tommaso,
Thanks for your fast reply! Woo you are fast!
So in the name in the settings: "InitialBalancePercentForTP_Close" is a bit misleading then. (I am testing an EA that has very great Balance increment each day, but the account equity is decreasing. :( ) Well another great tool to test! :-)
Keep smiling,
Nicolaas
I used this term as for the initial values the Account balance is used, as we have a basket manager that manages all open positions as basket, so the initial value for setting BE is calculated with the balance, the BE will be set when the equity hits this value analog it works with SL&TP..

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
dydynamic
Trader
Posts: 293
Joined: Fri Feb 28, 2014 4:19 pm

simple allPairBasketManager

Post by dydynamic »

Hi,
pls can you add hedging to the trade manger, for instance if the market goes against you by x amount of pips, open a hedge trade and there can be breakeven for the hedge trade at zero in case the market turns against the hedge trade and the hedge trade will close at the point the original trade was hedged and taking commission,spread and swap into consideration when closing the hedge trade at breakeven and vice versa,and is it possible for the hedge trade not to be affected by breakeven and jumping stop loss set by the main ea, if both the original trade and hedge trade have their own unique magic no.?
The hedge function will help in minimizing losses and also protect ones equity and it will be very useful for us that want to set tight stoploss and use multiple pending orders like HGI and HGB. We can easily use the hedge function to set tight stop loss while opening multiple pending orders with HGI and HGB.Thanks
:good:
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

dydynamic » Sat Feb 14, 2015 8:03 am wrote:Hi,
pls can you add hedging to the trade manger, for instance if the market goes against you by x amount of pips, open a hedge trade and there can be breakeven for the hedge trade at zero in case the market turns against the hedge trade and the hedge trade will close at the point the original trade was hedged and taking commission,spread and swap into consideration when closing the hedge trade at breakeven and vice versa,and is it possible for the hedge trade not to be affected by breakeven and jumping stop loss set by the main ea, if both the original trade and hedge trade have their own unique magic no.?
The hedge function will help in minimizing losses and also protect ones equity and it will be very useful for us that want to set tight stoploss and use multiple pending orders like HGI and HGB. We can easily use the hedge function to set tight stop loss while opening multiple pending orders with HGI and HGB.Thanks
:good:
No to this Basketmanager I will add no hedging functions, as this would be to much for a simple Basket Manger, but if you you are interested in hedging functions take a look to the HiddenPending EA---click--> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3573 this one has much options, offering you the possibility to create different hedging strategies..

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
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

simple allPairBasketManager

Post by matt_32 »

Does anybody know if this Manager closes pending orders when profit is reached ?

What I wanna do is close all trades when equity is reached but leave all the pendings intact.
Can I do that ?

Matt
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

matt_32 » Fri Mar 20, 2015 10:18 am wrote:Does anybody know if this Manager closes pending orders when profit is reached ?

What I wanna do is close all trades when equity is reached but leave all the pendings intact.
Can I do that ?

Matt
yes it closes too all pending orders...

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
Post Reply

Return to “Utilities Indicators and Scripts”