AllPairTradeManager(APTM)

MPTM's new home
Post Reply
kwittusen
Trader
Posts: 47
Joined: Thu Dec 13, 2012 9:44 am

AllPairTradeManager(APTM)

Post by kwittusen »

milanese » Mon Nov 02, 2015 10:13 am wrote:
kwittusen » Mon Nov 02, 2015 9:02 am wrote:Hi,

Dont know if this question is in the right forum, i think i read sometime ago that there was a ea/indicator that you could add that took snapshot of the basket, meaning the trades you have in there, but i cant seem to find it right now.

The reason im asking is because the broker i used demo account on has removed allot of trades from my basket, and of course only those who where in good profit, i had eur/nzd that i was positive with 140 pips when the market closed on friday, but when the market opened this trade was gone and nothing in the trade history either.

/Kenneth
I think you are searching for this.. http://www.stevehopwoodforex.com/phpBB3 ... ot#p129332

Cheers :)

Tommaso

Thanks allot Tommaso, ill try that one, it seems like it could be right one.

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

AllPairTradeManager(APTM)

Post by milanese »

Bernhard » Mon Nov 02, 2015 9:33 am wrote:gbpjpy the TP was a lot to high 5 times
with eurusd it was OK
edit: then some minutes later gbpjpy has printed TP correct. I don't know what is here going on.
TP atr x2 m5

2015.11.02 09:19:00.817 milaneseAPTM XAUUSD,M15: modify #76839826 buy 0.02 GBPJPY at 186.461 sl: 186.331 tp: 187.331 ok
2015.11.02 09:19:00.577 milaneseAPTM XAUUSD,M15: modify #76839826 buy 0.02 GBPJPY at 186.461 sl: 186.331 tp: 0.000 ok
if you look in your M5 chart at this time you see that exactly in this moment the pair did a big move causing a change of the ATR value during the sl/tp setting, as you see tp was with some delay setted. GBPJPY is a very volatil pair, so this can happen if you set M5 as tf for your SL/TP calculations..

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
Bernhard
Trader
Posts: 28
Joined: Thu Oct 24, 2013 8:15 am

AllPairTradeManager(APTM)

Post by Bernhard »

milanese » Mon Nov 02, 2015 10:36 am wrote:
Bernhard » Mon Nov 02, 2015 9:33 am wrote:gbpjpy the TP was a lot to high 5 times
with eurusd it was OK
edit: then some minutes later gbpjpy has printed TP correct. I don't know what is here going on.
TP atr x2 m5

2015.11.02 09:19:00.817 milaneseAPTM XAUUSD,M15: modify #76839826 buy 0.02 GBPJPY at 186.461 sl: 186.331 tp: 187.331 ok
2015.11.02 09:19:00.577 milaneseAPTM XAUUSD,M15: modify #76839826 buy 0.02 GBPJPY at 186.461 sl: 186.331 tp: 0.000 ok
if you look in your M5 chart at this time you see that exactly in this moment the pair did a big move causing a change of the ATR value during the sl/tp setting, as you see tp was with some delay setted. GBPJPY is a very volatil pair, so this can happen if you set M5 as tf for your SL/TP calculations..

Cheers :)

Tommaso
please let me disagree. The entry was 10 minutes before the news. While the SL was correct printed.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

AllPairTradeManager(APTM)

Post by milanese »

Bernhard » Mon Nov 02, 2015 10:51 am wrote:
please let me disagree. The entry was 10 minutes before the news. While the SL was correct printed.
If you want more stable values you should at least use the M15 TF for the atr calculations, you can with the multiplicator adapt, as in M5 with period 10 some nanoseconds delay between the SL and TP setting can cause in pairs like GBPJPY that what you have seen..
Or use fixed values.
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 +

AllPairTradeManager(APTM)

Post by milanese »

milanese » Mon Nov 02, 2015 11:35 am wrote:
Bernhard » Mon Nov 02, 2015 10:51 am wrote:
please let me disagree. The entry was 10 minutes before the news. While the SL was correct printed.
If you want more stable values you should at least use the M15 TF for the atr calculations, you can with the multiplicator adapt, as in M5 with period 10 some nanoseconds delay between the SL and TP setting can cause in pairs like GBPJPY that what you have seen..
Or use fixed values.
Cheers :)

Tommaso
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
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
LearnAlways
Posts: 4
Joined: Thu Nov 20, 2014 1:27 pm
Location: Singapore

AllPairTradeManager(APTM)

Post by LearnAlways »

Hi,

Does anyone know if I just want the EA to

1) Set initial SL automatically 100 pips (or SL calculated based upon D1 ATR SL)
2) Move SL to BE if price move 50 pips from BE
3) Move SL to BE + few pips to cover spread

Which parameters should I change. I was thinking of setting the basic first to protect my account before understanding how the EA works, sorry to ask this stupid question as too many parameters with the ATR also makes me very confused. And what is the best setting to protect one's account if there's any, pls kindly advise

Thanks & Best Regards,
LearnAlways
I only know I know nothing
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

AllPairTradeManager(APTM)

Post by milanese »

LearnAlways » Mon Nov 02, 2015 1:36 pm wrote:Hi,

Does anyone know if I just want the EA to

1) Set initial SL automatically 100 pips (or SL calculated based upon D1 ATR SL)
2) Move SL to BE if price move 50 pips from BE
3) Move SL to BE + few pips to cover spread

Which parameters should I change. I was thinking of setting the basic first to protect my account before understanding how the EA works, sorry to ask this stupid question as too many parameters with the ATR also makes me very confused. And what is the best setting to protect one's account if there's any, pls kindly advise

Thanks & Best Regards,
LearnAlways
This was explained before in this thread, read the first post and the thread after feb this year and you will find the answer..

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 »

update version 2.36
nov. 25th 2015

new version with the following new settings:

Code: Select all

extern string genmang1="---ManageAllOpenTrades overwrites all others---";
extern bool     ManageAllOpenTrades=true;
extern string genmang1a="---Set excludeMagicNumber to true---";
extern string genmang1b="---for excluding one MagicNumer using---";
extern string genmang1c="---ManageAllOpenTrades=true---";
extern bool excludeMagicNumber=false;
extern int    MagicNumberToExclude=15;
just set excludeMagicNumber ti true and set MagicNumberToExclude to the MagicNumber you want to exclude, note this works with ManageAllOpenTrades=true
As always you find the new version 2.36 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
Maximilian
Trader
Posts: 150
Joined: Sat Sep 06, 2014 2:43 pm

[update] AllPairTradeManager(APTM)

Post by Maximilian »

milanese » Wed Nov 25, 2015 12:22 pm wrote:update version 2.36
nov. 25th 2015

new version with the following new settings:

Code: Select all

extern string genmang1="---ManageAllOpenTrades overwrites all others---";
extern bool     ManageAllOpenTrades=true;
extern string genmang1a="---Set excludeMagicNumber to true---";
extern string genmang1b="---for excluding one MagicNumer using---";
extern string genmang1c="---ManageAllOpenTrades=true---";
extern bool excludeMagicNumber=false;
extern int    MagicNumberToExclude=15;
just set excludeMagicNumber ti true and set MagicNumberToExclude to the MagicNumber you want to exclude, note this works with ManageAllOpenTrades=true
As always you find the new version 2.36 attached to the first post.

Cheers :)

Tommaso
:clap:
Thx,that´s a nice feautre!
:good:
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[update]AllPairTradeManager(APTM)

Post by milanese »

update version 2.38
dic. 7th 2015

New the APTM can too to PendingOrders, if wished, set a missing SL or TP, you must set SetInitialSLtoForPendings and SetInitialTPtoForPendings to true and it will too set initial SL/TP if wished to your pending orders (works in combination with all other settings together).
New version 2.38 is to find on the first post as always.

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”