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 +

simple allPairBasketManager

Post by milanese »

acostafulano » Sun Jul 03, 2016 8:27 pm wrote:Hello Tommaso!
I hope you don't mind me posting this in the APTM thread as well.

I'm trying to find a trade manager that is capable of managing baskets of SAME-PAIR trades. For example, if I'm trading with an EA and i have 10 Long EURCAD and 8 Short EURCAD, I'd like a trade manager that treats the whole EURCAD basket as "the position" and acts accordingly as instructed (basket TP/SL, etc) but independently of what's going on in other pairs.

Do you know of any EA that is capable of doing this?

What I'm trying to avoid is having to install 20 trade managers (one per pair, or magic number) in one Empty4
Thansk for the comments.
see APTM thread..
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
FWN85BBK
Posts: 6
Joined: Sun Jul 24, 2016 11:29 pm

simple allPairBasketManager

Post by FWN85BBK »

Hi, the SAPBTM nicely shuts off the EA at a specified time on a specific day but the problem is that, I'm trying to close all open trades, and delete all pending orders (before) this tool shuts down all EAs on a specific time and weekday. Is that possible?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

FWN85BBK » Mon Jul 25, 2016 8:33 pm wrote:Hi, the SAPBTM nicely shuts off the EA at a specified time on a specific day but the problem is that, I'm trying to close all open trades, and delete all pending orders (before) this tool shuts down all EAs on a specific time and weekday. Is that possible?
attached version has this new optional; set closeAllPositionsDeactivating=true and a open basket will be closed before decativating automatic trading..
SAPBTM127.ex4
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
FWN85BBK
Posts: 6
Joined: Sun Jul 24, 2016 11:29 pm

simple allPairBasketManager

Post by FWN85BBK »

milanese » Mon Jul 25, 2016 11:47 pm wrote: attached version has this new optional set closeAllPositionsDeactivating=true and a open basket will be closed before decativating automatic trading..

Cheers :)

Tommaso
Great, thanks! :)
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

simple allPairBasketManager

Post by traderduke »

Tommaso
You and I have touched on this before and I have seen many other members ask for it, a Pair specific basket manager. I have since come across a couple of enlightening coding ideas.

1. Rene helped me add Pair specific basket manager to the HnG EA which is loaded on each and every chart, it works great but of course only works with BnG EA charts. http://www.stevehopwoodforex.com/phpBB3 ... 8&start=30

2. I found that the newer version of TargetCloseAllTradesBE with the EmergPairLossPerc option (line 37), on BnG pg88, provided the SL Pair specific but with pending failures. It does give a glimpse into the coding requirements.
http://www.stevehopwoodforex.com/phpBB3 ... &start=870

Your SAPBM EA appears to be the ideal place for the "Basket Specific Pair" SL & TP function.

If nothing else I shall endeavor to fix the TargetCloseAllTradesBE EA pending problems.

Thank you for your consideration and all the help that you have bestowed on this forum.

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

simple allPairBasketManager

Post by milanese »

traderduke » Sat Jul 30, 2016 2:32 pm wrote:Tommaso
You and I have touched on this before and I have seen many other members ask for it, a Pair specific basket manager. I have since come across a couple of enlightening coding ideas.

1. Rene helped me add Pair specific basket manager to the HnG EA which is loaded on each and every chart, it works great but of course only works with BnG EA charts. http://www.stevehopwoodforex.com/phpBB3 ... 8&start=30

2. I found that the newer version of TargetCloseAllTradesBE with the EmergPairLossPerc option (line 37), on BnG pg88, provided the SL Pair specific but with pending failures. It does give a glimpse into the coding requirements.
http://www.stevehopwoodforex.com/phpBB3 ... &start=870

Your SAPBM EA appears to be the ideal place for the "Basket Specific Pair" SL & TP function.

If nothing else I shall endeavor to fix the TargetCloseAllTradesBE EA pending problems.

Thank you for your consideration and all the help that you have bestowed on this forum.

Ray
I will later publish a special version that has a new limitation, for the pair it is attached at, user- selectable..

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 +

simple allPairBasketManager

Post by milanese »

milanese » Sat Jul 30, 2016 5:02 pm wrote: I will later publish a special version that has a new limitation, for the pair it is attached at, user- selectable..

Cheers :)

Tommaso
the attached one can be used too as one Pair BasketManager....
just set onlyManageThisPair to true, you can use too the EA with only a specific MagicNumber, for this set onlyManageOneMagicNumber to true
SAPBTM129.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
dydynamic
Trader
Posts: 293
Joined: Fri Feb 28, 2014 4:19 pm

simple allPairBasketManager

Post by dydynamic »

milanese » Sat Jul 30, 2016 5:13 pm wrote:
milanese » Sat Jul 30, 2016 5:02 pm wrote: I will later publish a special version that has a new limitation, for the pair it is attached at, user- selectable..

Cheers :)

Tommaso
the attached one can be used too as one Pair BasketManager....
just set onlyManageThisPair to true, you can use too the EA with only a specific MagicNumber, for this set onlyManageOneMagicNumber to true


Cheers:)

Tommaso
Thanks Milanese....
You've always been a star...... :clap:
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

simple allPairBasketManager

Post by traderduke »

Tommaso
Thanks a lot, I'll give it a try.

Ray
kaiserchen
Posts: 3
Joined: Wed Jun 01, 2016 6:55 am

simple allPairBasketManager

Post by kaiserchen »

milanese » Sun Jul 31, 2016 1:13 am wrote:
milanese » Sat Jul 30, 2016 5:02 pm wrote: I will later publish a special version that has a new limitation, for the pair it is attached at, user- selectable..

Cheers :)

Tommaso
the attached one can be used too as one Pair BasketManager....
just set onlyManageThisPair to true, you can use too the EA with only a specific MagicNumber, for this set onlyManageOneMagicNumber to true


Cheers:)

Tommaso
Hello!
If you are using onlyManageOneMagicNumber
1.Existing open trade, to achieve profits after close all trades
OR
2.The existing open and closed trade, to achieve profits after close all trades
Thank you very much!
Post Reply

Return to “Utilities Indicators and Scripts”