AllPairTradeManager(APTM)

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

AllPairTradeManager(APTM)

Post by milanese »

Over60 » Mon Apr 20, 2015 9:47 am wrote:Hi Milanese,

After PC = 10 pips in profit, the EA should lock SL at BE = OpenPrice + 4 pips. Distance 5 pips to actual price. It does not perform.
That makes me confuse, because I tried already different settings.

Please refer to the attached set-file. Not for use for the followers.

Regards
Over60
it is your setting MoveSLOnlyIfWin=false that caused this, the APTM gives you too for this an alert message, when you initialize the EA (since build 211)

Code: Select all

 Alert("APTM:Note BE with PartClose set to false, as you are using'MoveSLOnlyIfWin==false'");
BE can only be set if you use MoveSLOnlyIfWin=true what is the OOTB setting, as a BE with the other trailing technic is incompatible...

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
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

AllPairTradeManager(APTM)

Post by Over60 »

Hi Milanese,

it works immediatly, but I want to place BE and start trailing only after the first Partial Close.

Do you have a setting-advice?

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

AllPairTradeManager(APTM)

Post by milanese »

Over60 » Mon Apr 20, 2015 10:18 am wrote:Hi Milanese,

it works immediatly, but I want to place BE and start trailing only after the first Partial Close.

Do you have a setting-advice?

Over60
Use like I mentioned before your setting, but with MoveSLOnlyIfWin=true, this should do it...

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
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

AllPairTradeManager(APTM)

Post by Over60 »

Hi Milanese,

By trailing I noticed certain deviations by execution performance in the range of 3-5 pips by minor vola, low spread and only slightly slippage. APTM was attached only to a single pair, no basket.
Check seconds set = 1. Internet-connection and tick-signal-service seems to be OK so far.

Does the APTM use internal spread-control or with other words, is there any possibility to improve the execution performance, resp. a more accurate and faster execution?

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

AllPairTradeManager(APTM)

Post by milanese »

Over60 » Wed Apr 22, 2015 9:50 am wrote:Hi Milanese,

By trailing I noticed certain deviations by execution performance in the range of 3-5 pips by minor vola, low spread and only slightly slippage. APTM was attached only to a single pair, no basket.
Check seconds set = 1. Internet-connection and tick-signal-service seems to be OK so far.

Does the APTM use internal spread-control or with other words, is there any possibility to improve the execution performance, resp. a more accurate and faster execution?

Kind regards
Over60
The APTM uses the ask for sell trades, and bid for buy trades, this is normal as this prices will be the eventual close prices.It is normal that there can be a minor deviation in moving the SL to BE or in the JS, but nromaly this will not be relevant, the problem is that the APTM gets a price checks if a BE can be set or the SL can be moved, than if the check is positiv it will change the SL- value. Naturally can the price in that time (normaly nanoseconds) move or a delay be caused by the APTM waiting to a server-respond. A will add a function with the next update, that will if you use the APTM on a single pair, make it better perform.

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 +

[update!!] AllPairTradeManager(APTM)

Post by milanese »

apr.22th,2015
Update for better performance if you use ManageOnlyActualSymbol=true, the APTM will no be now faster in most cases in all operations. Note you must too set ManageAllOpenTrades=false, if you want the APTM to use a single-pair TM. Too the problem alerting if you use the CloseALL button is fixed, you will not have for every position to close have an alert, but only one time. (Only if you have the alerts activated)
The build 215 is as always attached to the 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
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

AllPairTradeManager(APTM)

Post by Over60 »

Hi Milanese,

Sorry, you are to fast with your updates.

As far as I know, by ordering (open and close), only the bid price will be executed.

With TP/SL-settings it might be different, it should work mandatory for our advantage to use bid and ask, depending on the order-direction of the position.

Now, might be overdue.

Thanks as always for assistance.

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

AllPairTradeManager(APTM)

Post by milanese »

Over60 » Wed Apr 22, 2015 10:30 am wrote:Hi Milanese,

Sorry, you are to fast with your updates.

As far as I know, by ordering (open and close), only the bid price will be executed.

With TP/SL-settings it might be different, it should work mandatory for our advantage to use bid and ask, depending on the order-direction of the position.

Now, might be overdue.

Thanks as always for assistance.

Over60
BUY orders user the ask price to open and the bid price to close, SELL Orders vice versa that is why we need to look for ask and bid too with trailing.
The update has here nothing changed only made the APTM more reactive for single-pair use... and fixed soem alerting glitch..

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
Mike
Trader
Posts: 272
Joined: Sun Dec 11, 2011 12:30 pm
Location: Italy

AllPairTradeManager(APTM)

Post by Mike »

Hi Milanese
Just to make sure. did I understand the APTM ootb settings right?
suppose ATR = 200, 1 Pip by 0.3 Lotsize = 3$ My reading would be:

On the Chart is a user display and a Close Button, which deletes pending trades. Alarms show.
If not deactivated on the single items ATR is used to calculate SL, BE, TP and JS.
ootb settings manage all trades and do not have any time constraints.
The TM sets a SL at 1*ATR (200 Pips) and TP at 3*ATR (600 Pips)
A 10% partial closure (= 180$) is enabled at 0.5*ATR (100 Pips) independent of BE as first TP
The EA in profit moves SL at 1*ATR adding a 4 pips profit (= 204 Pips).
The next SL-move is a jump stop at the minimal distance to price of 1.5*ATR (=300 Pips). i.e. at (204 + 300) Pips = 504 Pips in profit. SL moves with this Jump Stop to 504 - 200 = 304 Pips.
The trade does not close at a predefined time nor on a Friday.


Thanks for some short comment Mike
Image
Image
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

AllPairTradeManager(APTM)

Post by milanese »

Mike » Fri Apr 24, 2015 9:28 am wrote:Hi Milanese
Just to make sure. did I understand the APTM ootb settings right?
suppose ATR = 200, 1 Pip by 0.3 Lotsize = 3$ My reading would be:

On the Chart is a user display and a Close Button, which deletes pending trades. Alarms show.
If not deactivated on the single items ATR is used to calculate SL, BE, TP and JS.
ootb settings manage all trades and do not have any time constraints.
The TM sets a SL at 1*ATR (200 Pips) and TP at 3*ATR (600 Pips)
A 10% partial closure (= 180$) is enabled at 0.5*ATR (100 Pips) independent of BE as first TP
The EA in profit moves SL at 1*ATR adding a 4 pips profit (= 204 Pips).
The next SL-move is a jump stop at the minimal distance to price of 1.5*ATR (=300 Pips). i.e. at (204 + 300) Pips = 504 Pips in profit. SL moves with this Jump Stop to 504 - 200 = 304 Pips.
The trade does not close at a predefined time nor on a Friday.


Thanks for some short comment Mike
Hi Mike,


yes, but note if ATR will change the values for PartClose,JS and BE will change analogous to the ATR changes, as always try your setting on a demo-account before using it live, so you will better understand, how the APTM works.

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”