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

simple allPairBasketManager
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4081
Page 2 of 28
Author:  milanese [ Thu Feb 05, 2015 6:27 pm ]
Post subject:  [update]simple allPairBasketManager

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
Author:  jauhar [ Thu Feb 05, 2015 6:53 pm ]
Post subject:  [update]simple allPairBasketManager

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
Author:  nicolkoekoek [ Fri Feb 13, 2015 4:06 pm ]
Post subject:  simple allPairBasketManager

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
Author:  milanese [ Fri Feb 13, 2015 4:25 pm ]
Post subject:  simple allPairBasketManager

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
Author:  nicolkoekoek [ Fri Feb 13, 2015 4:53 pm ]
Post subject:  simple allPairBasketManager

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
Author:  milanese [ Fri Feb 13, 2015 5:55 pm ]
Post subject:  simple allPairBasketManager

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
Author:  dydynamic [ Sat Feb 14, 2015 8:03 am ]
Post subject:  simple allPairBasketManager

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:
Author:  milanese [ Sat Feb 14, 2015 8:39 am ]
Post subject:  simple allPairBasketManager

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
Author:  matt_32 [ Fri Mar 20, 2015 10:18 am ]
Post subject:  simple allPairBasketManager

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
Author:  milanese [ Fri Mar 20, 2015 10:38 am ]
Post subject:  simple allPairBasketManager

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
All times are UTC Page 2 of 28