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 »

jedrula » Tue Jan 17, 2017 9:09 am wrote:
better to use one robot :-)

I made litte mod for lock profit when we are in plus.

add new option

Code: Select all

extern bool UseBasketSL_LockProfit   = true;  // Use Basket SL for lock profit when in plus   in currency       
and modify OnTimer section

Code: Select all

// JED mod     
   
      if(UseBasketSLTP==true && UseBasketSLTPinAccountCurr==true && UseBasketSL_LockProfit==false)
        {
         double ProfitPair=GetProfitPair(Symbol());
         if(NormalizeDouble(BasketTP,2)!=0)
           {
            if(ProfitPair>=BasketTP) CloseAll();
           }
         if(NormalizeDouble(BasketSL,2)!=0)
           {
            if(ProfitPair<=-1*(BasketSL)) CloseAll();
           }

        }

 if(UseBasketSLTP==true && UseBasketSLTPinAccountCurr==true && UseBasketSL_LockProfit==true)
        {
         double ProfitPair=GetProfitPair(Symbol());
         if(NormalizeDouble(BasketTP,2)!=0)
           {
            if(ProfitPair>=BasketTP) CloseAll();
           }
         if(NormalizeDouble(BasketSL,2)!=0)
           {
          
            if(ProfitPair<=BasketSL) CloseAll();
           }

        }

I think that's a good thing :-) but I do not want to change anything without your consent.
I published the the code, so that everyone can, if he/she wants adapt the code for their own uses, so feel free to make your own changes, and if the work fine others will be for sure happy if you publish your modified version...

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
jankownacki
Trader
Posts: 10
Joined: Tue Dec 13, 2016 11:35 am

AllPairTradeManager(APTM)

Post by jankownacki »

Hi Milanese,

APTM is able to setup initial TP and SL. What is not working for me is moving SL.
If Price is in profit +20pips and going back to 0pips, Manager doesnt want to close it when its reaching +4pips.
Is it possible to setup something like this ? That each transaction which is equal or higher than 8pips in case of reverse will be always close with profit +4 pips. If transaction going against my direction needs to be closed on SL.


Is it possible to setup this ? At the moment only initial SL and TP working for me, I`m doing something wrong :(.

Thanks for Your support in advance.


Cheers

Jan
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

AllPairTradeManager(APTM)

Post by milanese »

jankownacki » Mon Feb 06, 2017 7:09 pm wrote:Hi Milanese,

APTM is able to setup initial TP and SL. What is not working for me is moving SL.
If Price is in profit +20pips and going back to 0pips, Manager doesnt want to close it when its reaching +4pips.
Is it possible to setup something like this ? That each transaction which is equal or higher than 8pips in case of reverse will be always close with profit +4 pips. If transaction going against my direction needs to be closed on SL.


Is it possible to setup this ? At the moment only initial SL and TP working for me, I`m doing something wrong :(.

Thanks for Your support in advance.


Cheers

Jan
read first post and the thread there are simil problems discussed more than one time..

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
rainsome
Posts: 1
Joined: Mon Aug 24, 2015 9:42 pm

AllPairTradeManager(APTM)

Post by rainsome »

As a newbie in using a Trade Manger EA Please forgive me for not really understanding how to use APTM Trade Manager Effectively. It would have been easier for me to understand it if you had place an example on how to use the Break Even, & Trailing Jump, Feature along with MA Stop.

Basically all I really want to do is place APTM on 3 different charts with 3 different Magic Settings Designation So I can trade & monitor 3 different Time Frames Magic numbers. 1)Magic #=61 for A) H1 Charts SL53pips B)BE at 0 at (Entry price) Once 53pips in Profits C)Once Price Reach BE Then start Trailing Behind 14 Smooth
Moving Average Once Price Keep Closing On hourly charts.

2)Magic #=241 for A) H4 Charts SL140pips B)BE at 0 at (Entry price) Once 140pips in Profits C)Once Price Reach BE Then start Trailing Behind 13 Smooth Moving Average Once Price Keep Closing On H4 charts.

3)Magic #=1441 for A) D1 Charts SL252ips B)BE at 0 at Entry price Once 252pips in Profits C)Once Price Reach BE Then start Trailing Behind 12 Smooth Moving Average Once Price Keep Closing On D1 charts.

I've Change Settings 1)Never Use ATR Settings=True 2)Manager By Magic #=241 3)Set Initial SL=True
Set Initial SL Pending True 4)Use MA as SL=True 5)MA TF=4 Hours 6)MAPeriod=13 MA Method=Smooth
7)Use BE & Jump=True 8)Move SL Only In Profit=True 9)BE Profit=140 10)Jump Step=0

Once I placed On chart It Immediately move my 241 Magic H4 Charts behind MA 13 which was 13pips behind market price at the Time on 1 of (241 magic # H4 chart).The SL wasn't 140pips Behind Price.

If possible can any one make a set file for any one Of the Magic settings above so I can see how to set my APTM properly. Insights will be highly appreciated.
User avatar
Pedro2
Trader
Posts: 29
Joined: Tue Jan 24, 2012 8:36 am
Location: Australia

AllPairTradeManager(APTM)

Post by Pedro2 »

Problem with APTM disappearing. Wonder if some one could advise me here. I think the APTM is great and has worked well for me up to now. But now when I load it on to a chart after I finished with the settings or not even touching them. When I hit okay for normal operation the green text screen comes up fine but the APTM_249_milanese and smiley just vanish. On Demo and live account. Somehow it is unloading itself when I hit the Okay key.

All other EA's including MPTM appear to work fine. Downloaded another copy of APTM and replaced the originals. Still no joy. The only thing I could think of that I have done lately is I hit F3 key and put in and a entry EO_ALLOWTRADING = 1 to get Easy Order working on my live account. Thanks for some advice.

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

AllPairTradeManager(APTM)

Post by milanese »

Pedro2 » Mon Jun 19, 2017 7:15 am wrote:Problem with APTM disappearing. Wonder if some one could advise me here. I think the APTM is great and has worked well for me up to now. But now when I load it on to a chart after I finished with the settings or not even touching them. When I hit okay for normal operation the green text screen comes up fine but the APTM_249_milanese and smiley just vanish. On Demo and live account. Somehow it is unloading itself when I hit the Okay key.

All other EA's including MPTM appear to work fine. Downloaded another copy of APTM and replaced the originals. Still no joy. The only thing I could think of that I have done lately is I hit F3 key and put in and a entry EO_ALLOWTRADING = 1 to get Easy Order working on my live account. Thanks for some advice.

Pedro2
here it works without any problem, probably you are doing something wrong, maybe look in the experts log to understand better what is happening..
GBPNZDH4.png
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
taipan
Trader
Posts: 355
Joined: Sat Feb 16, 2013 11:27 am

AllPairTradeManager(APTM)

Post by taipan »

Hi Milanese,

What is the indicator in the Sub-windows? Appreciate you could share it here.

taipan
User avatar
Pedro2
Trader
Posts: 29
Joined: Tue Jan 24, 2012 8:36 am
Location: Australia

AllPairTradeManager(APTM)

Post by Pedro2 »

Thanks Tomaso for the idea of looking in the logs. Actually I found two indicators that were not doing the right things according to the logs. So that was a easy fix. I just deleted them out of Empty4. But it still did not fix the APTM not loading problem. :arrrg:

Never mind I did finally find in the logs that the user32.dll which was suppose to be in the libraries folder was not loading for APTM. On checking the the folder the user32.dll file was there okay but for some reason APTM could not access it according to the logs. I do have another computer running Empty4 aptm on it so I looked in the libraries folder there. There was no user32.dll file there? So wondering what the heck I transferred the user32 file to another folder in the computer I was having the problem. Well you probably guess it the APTM EA worked fine after that from what I can see so far. So my logic took a fair battering. Can you enlighten me as to why not having the user32 file in the libraries folder APTM seems to work? I do not have any idea of what the user32.dll file does? It must have some function. Thanks for your help Tomaso it is appreciated.

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

AllPairTradeManager(APTM)

Post by milanese »

Pedro2 » Mon Jun 19, 2017 12:30 pm wrote:Thanks Tomaso for the idea of looking in the logs. Actually I found two indicators that were not doing the right things according to the logs. So that was a easy fix. I just deleted them out of Empty4. But it still did not fix the APTM not loading problem. :arrrg:

Never mind I did finally find in the logs that the user32.dll which was suppose to be in the libraries folder was not loading for APTM. On checking the the folder the user32.dll file was there okay but for some reason APTM could not access it according to the logs. I do have another computer running Empty4 aptm on it so I looked in the libraries folder there. There was no user32.dll file there? So wondering what the heck I transferred the user32 file to another folder in the computer I was having the problem. Well you probably guess it the APTM EA worked fine after that from what I can see so far. So my logic took a fair battering. Can you enlighten me as to why not having the user32 file in the libraries folder APTM seems to work? I do not have any idea of what the user32.dll file does? It must have some function. Thanks for your help Tomaso it is appreciated.

Pedro2 :good:
this dll is needed for some special function, like deactivating trading ecc. and so requested by the APTM..

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
goodo
Trader
Posts: 38
Joined: Thu Mar 23, 2017 10:31 pm

AllPairTradeManager(APTM)

Post by goodo »

Hi Milanese, I think your APTM is fantastic.

If I may suggest two additions for whenever you decide to add new features:

1) The ability to also exclude trades by Ticket Number.

2) That option to also display the Equity and Profit of the managed trades. (Useful if Basket TP is actually excluding the MagicNumber, which is the way I think it is working)

Both of these requests come from observations made during my daily trading practice. I am well aware of my newbie status but please don't think I came up with these only after sitting on the throne.

Thank you for sharing such a wonderful utility.
Post Reply

Return to “Utilities Indicators and Scripts”