AllPairTradeManager(APTM)

MPTM's new home
Post Reply
qvintus
Trader
Posts: 220
Joined: Sat Nov 30, 2013 7:02 pm

AllPairTradeManager(APTM)

Post by qvintus »

milanese » 02 Nov 2015, 13:14 wrote: As you use always very small distances for SL and/or TP I have changed in the attached version the security code to accept a min distance of 1pip+spread, try this one it should work better for your use..

Cheers :)

Tommaso
Hi Tommaso, could you share the version which accepts tighter settings? It is not in your post above anymore.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

AllPairTradeManager(APTM)

Post by milanese »

qvintus » Wed Jun 08, 2016 12:45 pm wrote:
milanese » 02 Nov 2015, 13:14 wrote: As you use always very small distances for SL and/or TP I have changed in the attached version the security code to accept a min distance of 1pip+spread, try this one it should work better for your use..

Cheers :)

Tommaso
Hi Tommaso, could you share the version which accepts tighter settings? It is not in your post above anymore.
all later versions have this included, so too the version on page onee

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
qvintus
Trader
Posts: 220
Joined: Sat Nov 30, 2013 7:02 pm

AllPairTradeManager(APTM)

Post by qvintus »

milanese » 08 Jun 2016, 14:21 wrote:
qvintus » Wed Jun 08, 2016 12:45 pm wrote:
milanese » 02 Nov 2015, 13:14 wrote: As you use always very small distances for SL and/or TP I have changed in the attached version the security code to accept a min distance of 1pip+spread, try this one it should work better for your use..

Cheers :)

Tommaso
Hi Tommaso, could you share the version which accepts tighter settings? It is not in your post above anymore.
all later versions have this included, so too the version on page onee

Cheers :)

Tommaso
Good to know, thanks :clap:
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

AllPairTradeManager(APTM)

Post by acostafulano »

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

AllPairTradeManager(APTM)

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.
APTM is able to manage only the symbol it is attached too for the basket functions, but if you will use this function on more than one pair you have to attach it moretimes..
I think I understood what you want , aTM that can manage for each individual pair baskets, but must only one time be attached..
This sound interesting and could be coded, I don't think it is already disponible, and I have at the moment to much coding requests in pipeline, for adding this, but it sounds interesting and maybe when I will find in future more time I will add this to the APTM or code a new TM for this..

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
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

AllPairTradeManager(APTM)

Post by acostafulano »

Thanks for your attention Tomasso.

I think such Trade Manager would be very useful for trading the EA "HGB in a different hedge" from Steve

Diego
milanese » Sun Jul 03, 2016 3:39 pm wrote: APTM is able to manage only the symbol it is attached too for the basket functions, but if you will use this function on more than one pair you have to attach it moretimes..
I think I understood what you want , aTM that can manage for each individual pair baskets, but must only one time be attached..
This sound interesting and could be coded, I don't think it is already disponible, and I have at the moment to much coding requests in pipeline, for adding this, but it sounds interesting and maybe when I will find in future more time I will add this to the APTM or code a new TM for this..

Cheers :)

Tommaso
Timid
Posts: 6
Joined: Mon Dec 07, 2015 5:32 pm

AllPairTradeManager(APTM)

Post by Timid »

Hi,

I was using the SL by MA as the only way to set and manipulate SL, so no initial SL set by any other means.

I found that it did not set any SL at all on sell trades and my investigation shows that it is because the setting of SL by MA is depending on that there is a SL from the beginning, for sell trades that is.

My humble fix is to change line 1968 to:

Code: Select all

      if(NormalizeDouble(NewStop,Xdigits)>=NormalizeDouble((OrderStopLoss()-(5/factor)),Xdigits) && NormalizeDouble(OrderStopLoss(), Digits) != 0 ) modify=false;
i.e. adding the check if SL exist.

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

AllPairTradeManager(APTM)

Post by milanese »

Timid » Wed Jul 13, 2016 10:05 am wrote:Hi,

I was using the SL by MA as the only way to set and manipulate SL, so no initial SL set by any other means.

I found that it did not set any SL at all on sell trades and my investigation shows that it is because the setting of SL by MA is depending on that there is a SL from the beginning, for sell trades that is.

My humble fix is to change line 1968 to:

Code: Select all

      if(NormalizeDouble(NewStop,Xdigits)>=NormalizeDouble((OrderStopLoss()-(5/factor)),Xdigits) && NormalizeDouble(OrderStopLoss(), Digits) != 0 ) modify=false;
i.e. adding the check if SL exist.

Thanks,
Timid
Your fix will not work as you have to use Xdigits and not Digits, and you have not understood right the function re-read first post and the special post in re. to this subject..

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
Timid
Posts: 6
Joined: Mon Dec 07, 2015 5:32 pm

AllPairTradeManager(APTM)

Post by Timid »

milanese » Wed Jul 13, 2016 12:13 pm wrote: Your fix will not work as you have to use Xdigits and not Digits, and you have not understood right the function re-read first post and the special post in re. to this subject..

Cheers :)

Tommaso
Thanks for the correction! :hi:
Timid
anelef
Posts: 2
Joined: Fri Jul 15, 2016 10:01 am

AllPairTradeManager(APTM)

Post by anelef »

Thank you for the great EA. Im off to practice on demo, should i have any issues will definitely ask . Great work :clap:
Post Reply

Return to “Utilities Indicators and Scripts”