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

simple allPairBasketManager
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4081
Page 8 of 28
Author:  milanese [ Tue May 19, 2015 4:49 pm ]
Post subject:  simple allPairBasketManager

JRforex » Tue May 19, 2015 4:40 pm wrote:Hi Tomasso

Thank you very much for this amazing manager. I have a feature on my wish list. Is there a possibility that you could add a function to enable or disable EAs at a specific time? This would be very handy when you want to disable EAs during NFP or other high impact news.

:hi:
I will consider this option with the next update ...

Cheers :)

Tommaso
Author:  milanese [ Tue May 19, 2015 5:22 pm ]
Post subject:  [update!] simple allPairBasketManager

update version 1.14
may 19th 2015

Added new functions to deactivate and activate EA trading on a certain user defined time, this uses the broker time as input-time.
New inputs for this function are:

Code: Select all

extern string tim="---Activate/Deactivate on specific Time settings---";
extern bool   useActivateOnXServertimeEATrading=false;
extern int    ActivateEATradingHour=16;
extern int    ActivateEATradingMinute=30;
extern bool   useDeactivateOnXServertimeEATrading=false;
extern int    DeactivateEATradingHour=14;
extern int    DeactivateEATradingMinute=00;
The new version 1.14 can be found attached to the first post...

Cheers :)

Tommaso
Author:  JRforex [ Tue May 19, 2015 5:36 pm ]
Post subject:  simple allPairBasketManager

milanese wrote: update version 1.14
may 19th 2015

Added new functions to deactivate and activate EA trading on a certain user defined time, this uses the broker time as input-time.
New inputs for this function are:

Code: Select all

extern string tim="---Activate/Deactivate on specific Time settings---";
extern bool   useActivateOnXServertimeEATrading=false;
extern int    ActivateEATradingHour=16;
extern int    ActivateEATradingMinute=30;
extern bool   useDeactivateOnXServertimeEATrading=false;
extern int    DeactivateEATradingHour=14;
extern int    DeactivateEATradingMinute=00;
The new version 1.14 can be found attached to the first post...

Cheers :)

Tommaso
That was fast! Thank you Tomasso, I just tested it and it works fine.

:!!:
Author:  toc17 [ Wed May 20, 2015 7:36 am ]
Post subject:  simple allPairBasketManager

Hi guys,

First, big thanks to Tommaso, this is very useful!

I don´t understand well the BE & JS parameters. For example, with this configuration:

useBasketBEandJump = true
AllOverProfitForSettingBE = 200
usePercentForSettingBE = true
InitialBalancePercentForSettingBE = 2
MinDistanzCashSLinWinToEquity = 125
JS_CashAdd = 100

a) When BE will be set, at +200 profit or at +2% profit?

b) When JS will do first jump? at +125 profit?
c) and the second jump? at +250 profit?

Can anybody help me with this?

Thanks in advance

Jose
Author:  milanese [ Wed May 20, 2015 7:50 am ]
Post subject:  simple allPairBasketManager

toc17 » Wed May 20, 2015 7:36 am wrote:Hi guys,

First, big thanks to Tommaso, this is very useful!

I don´t understand well the BE & JS parameters. For example, with this configuration:

useBasketBEandJump = true
AllOverProfitForSettingBE = 200
usePercentForSettingBE = true
InitialBalancePercentForSettingBE = 2
MinDistanzCashSLinWinToEquity = 125
JS_CashAdd = 100

a) When BE will be set, at +200 profit or at +2% profit?

b) When JS will do first jump? at +125 profit?
c) and the second jump? at +250 profit?

Can anybody help me with this?

Thanks in advance

Jose
With your settings will be used the percent value, as you have set usePercentForSettingBE=true setting this to false you can enter a value in your account currency you like with AllOverProfitForSettingBE.
the jumping steps will be every 225 USD(accountCurr) as the BasketSL in win will be moved 100 USD more in win and the MinDistanzCashSLinWinToEquity is set to 125, this is the MinDistanzCashSLinWinToEquity after the SL move.. Btw the EA shows the BE equity in the display both the value when the BE will be set and how much the BE-SL will be with the actual setting..

Cheers :)

Tommaso
Author:  Maximilian [ Wed May 20, 2015 1:02 pm ]
Post subject:  [update!] simple allPairBasketManager

milanese » Tue May 19, 2015 5:22 pm wrote: update version 1.14
may 19th 2015

Added new functions to deactivate and activate EA trading on a certain user defined time, this uses the broker time as input-time.
New inputs for this function are:

Code: Select all

extern string tim="---Activate/Deactivate on specific Time settings---";
extern bool   useActivateOnXServertimeEATrading=false;
extern int    ActivateEATradingHour=16;
extern int    ActivateEATradingMinute=30;
extern bool   useDeactivateOnXServertimeEATrading=false;
extern int    DeactivateEATradingHour=14;
extern int    DeactivateEATradingMinute=00;
The new version 1.14 can be found attached to the first post...

Cheers :)

Tommaso
Thx Tommaso,
this function will be so handy. :clap:
Max
Author:  toc17 [ Thu May 21, 2015 7:46 am ]
Post subject:  simple allPairBasketManager

milanese » Wed May 20, 2015 7:50 am wrote: With your settings will be used the percent value, as you have set usePercentForSettingBE=true setting this to false you can enter a value in your account currency you like with AllOverProfitForSettingBE.
the jumping steps will be every 225 USD(accountCurr) as the BasketSL in win will be moved 100 USD more in win and the MinDistanzCashSLinWinToEquity is set to 125, this is the MinDistanzCashSLinWinToEquity after the SL move.. Btw the EA shows the BE equity in the display both the value when the BE will be set and how much the BE-SL will be with the actual setting..

Cheers :)

Tommaso
Ahh, thank you Tommaso!

So, if I understand correctly:
- the first jump will be when +225 in profit, and the JSL will be set at BE+100
- the second jump will be when +325 in profit, and the JSL will be set at BE+200, an so on

Thanks and congrats for this awesome "simple" basket manager :clap:
Jose
Author:  basch312 [ Fri May 22, 2015 8:04 am ]
Post subject:  simple allPairBasketManager

Hi,

I've done a little mod to this manager so we can choose the magic number to manage.
Lines added: 28, 488, 530 and 547.

Tommaso, if this mod works, I'd appreciate you add it in your next updates.

Thank you and regards,
Adrián.

[mod=]attachment removed as it would not work as intended see next post, but thanks for this I will it with a further update introduce
Cheers :)
Tommaso[/mod]
Author:  milanese [ Fri May 22, 2015 8:21 am ]
Post subject:  simple allPairBasketManager

basch312 » Fri May 22, 2015 8:04 am wrote:Hi,

I've done a little mod to this manager so we can choose the magic number to manage.
Lines added: 28, 488, 530 and 547.

Tommaso, if this mod works, I'd appreciate you add it in your next updates.

Thank you and regards,
Adrián.
with your code adapting it will not work as intended, as it will always use the entire equity for the calculations, and only in display and basketclose the magicnumber will be used...
I removed the attachment(as it would not work as intended), but I will consider for a next update this feature...
It will need some recoding of the entire structure.
Cheers :)

Tommaso
Author:  basch312 [ Fri May 22, 2015 8:30 am ]
Post subject:  simple allPairBasketManager

milanese » Fri May 22, 2015 9:21 am wrote: with your code adapting it will not work as intended, as it will always use the entire equity for the calculations, and only in display and basketclose the magicnumber will be used...
I removed the attachment(as it would not work as intended), but I will consider for a next update this feature...
It will need some recoding of the entire structure.
Cheers :)

Tommaso
Thanks Tommaso for the explanation. If I'm understanding it correctly, what we need to achieve this feature is to calculate ONLY the profit/loss of the magic ?¿?¿? Am I missing something else?
All times are UTC Page 8 of 28