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

AllPairTradeManager(APTM)
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3482
Page 23 of 65
Author:  milanese [ Mon Apr 20, 2015 9:52 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  Over60 [ Mon Apr 20, 2015 10:18 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  milanese [ Mon Apr 20, 2015 10:23 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  Over60 [ Wed Apr 22, 2015 9:50 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  milanese [ Wed Apr 22, 2015 10:05 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  milanese [ Wed Apr 22, 2015 10:26 am ]
Post subject:  [update!!] AllPairTradeManager(APTM)

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
Author:  Over60 [ Wed Apr 22, 2015 10:30 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  milanese [ Wed Apr 22, 2015 10:34 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  Mike [ Fri Apr 24, 2015 9:28 am ]
Post subject:  AllPairTradeManager(APTM)

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
Author:  milanese [ Fri Apr 24, 2015 9:40 am ]
Post subject:  AllPairTradeManager(APTM)

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
All times are UTC Page 23 of 65