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

AllPairTradeManager(APTM)
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3482
Page 53 of 65
Author:  yosarian0 [ Sun Jan 15, 2017 12:10 am ]
Post subject:  AllPairTradeManager(APTM)

Hello,

Is anyone else getting this error on the new version 248?
Author:  milanese [ Sun Jan 15, 2017 5:49 am ]
Post subject:  AllPairTradeManager(APTM)

yosarian0 » Sun Jan 15, 2017 12:10 am wrote:Hello,

Is anyone else getting this error on the new version 248?
version is tested here and works, but if you use the exe, you must use the latest Empty4 build 1031 (17 December 2016) or compile it yourself..
GER30H1.png
Cheers :)

Tommaso
Author:  milanese [ Sun Jan 15, 2017 1:24 pm ]
Post subject:  [update]AllPairTradeManager(APTM)

update version 2.49 January 14,2017
little cosmetic update, APTM shows now in the user display the excluded symbols
GER30H1.png
Update to be found on first post..

Cheers :)

Tommaso
Author:  yosarian0 [ Sun Jan 15, 2017 9:44 pm ]
Post subject:  AllPairTradeManager(APTM)

milanese » Sun Jan 15, 2017 12:49 am wrote: version is tested here and works, but if you use the exe, you must use the latest Empty4 build 1031 (17 December 2016) or compile it yourself..

Cheers :)

Tommaso
It is the latest version of Empty4.
Author:  milanese [ Sun Jan 15, 2017 11:34 pm ]
Post subject:  AllPairTradeManager(APTM)

yosarian0 » Sun Jan 15, 2017 9:44 pm wrote:
milanese » Sun Jan 15, 2017 12:49 am wrote: version is tested here and works, but if you use the exe, you must use the latest Empty4 build 1031 (17 December 2016) or compile it yourself..

Cheers :)

Tommaso
It is the latest version of Empty4.
as it runs here problem is on your back end..
Author:  jedrula [ Mon Jan 16, 2017 2:52 pm ]
Post subject:  AllPairTradeManager(APTM)

Hi.
What is the logic behind "basket SL" ?

For example, if I have open trade in + 8 500 profit and turn option to "true" as in picture

1. the EA close if I have +50 000 (TP = 50 000)
2. or +1900 (SL = 1900)
3. or -1900 ?

Today EA close all at "-1900".

It is posible to "lock" profit for all basket?
Author:  milanese [ Mon Jan 16, 2017 4:07 pm ]
Post subject:  AllPairTradeManager(APTM)

jedrula » Mon Jan 16, 2017 2:52 pm wrote:Hi.
What is the logic behind "basket SL" ?

For example, if I have open trade in + 8 500 profit and turn option to "true" as in picture

1. the EA close if I have +50 000 (TP = 50 000)
2. or +1900 (SL = 1900)
3. or -1900 ?

Today EA close all at "-1900".

It is posible to "lock" profit for all basket?
The SL setting is automatic negative set, so EA closed by -1900 and would close too with TP +50000, but for more Basket-managing-functions you should use the simpleAllPairBasketTradeManger
---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081
----> http://www.stevehopwoodforex.com/phpBB3 ... 00#p144044 special version
read a bit through the thread, thes ABPTM has many Basket-managing-options like BE and moving locked win...

Cheers :)

Tommaso
Author:  yosarian0 [ Mon Jan 16, 2017 7:27 pm ]
Post subject:  AllPairTradeManager(APTM)

milanese » Sun Jan 15, 2017 6:34 pm wrote: as it runs here problem is on your back end..
So just to update; ver 2.49 is running just fine; 2.48 is giving the same error; previous version I was running 2.44 also runs just fine : :roll: :?: :!: :roll:
Well, just glad that I have a working version. As always , a big thank you. :clap: :clap:
Author:  milanese [ Mon Jan 16, 2017 7:30 pm ]
Post subject:  AllPairTradeManager(APTM)

yosarian0 » Mon Jan 16, 2017 7:27 pm wrote:
milanese » Sun Jan 15, 2017 6:34 pm wrote: as it runs here problem is on your back end..
So just to update; ver 2.49 is running just fine; 2.48 is giving the same error; previous version I was running 2.44 also runs just fine : :roll: :?: :!: :roll:
Well, just glad that I have a working version. As always , a big thank you. :clap: :clap:
glad to hear that it now runs fine..

Cheers :)

Tommaso
Author:  jedrula [ Tue Jan 17, 2017 9:09 am ]
Post subject:  AllPairTradeManager(APTM)

milanese » 16 Jan 2017, 18:07 wrote: The SL setting is automatic negative set, so EA closed by -1900 and would close too with TP +50000, but for more Basket-managing-functions you should use the simpleAllPairBasketTradeManger
---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081
----> http://www.stevehopwoodforex.com/phpBB3 ... 00#p144044 special version
read a bit through the thread, thes ABPTM has many Basket-managing-options like BE and moving locked win...

Cheers :)

Tommaso
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.
All times are UTC Page 53 of 65