simple allPairBasketManager

MPTM's new home
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

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
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!] simple allPairBasketManager

Post by milanese »

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
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
JRforex
Trader
Posts: 55
Joined: Tue Jan 13, 2015 4:50 pm

simple allPairBasketManager

Post by JRforex »

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.

:!!:
toc17
Trader
Posts: 34
Joined: Mon Mar 30, 2015 7:55 am
Location: Madrid, Spain

simple allPairBasketManager

Post by toc17 »

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
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

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
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!] simple allPairBasketManager

Post by Maximilian »

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
toc17
Trader
Posts: 34
Joined: Mon Mar 30, 2015 7:55 am
Location: Madrid, Spain

simple allPairBasketManager

Post by toc17 »

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
User avatar
basch312
Trader
Posts: 72
Joined: Mon Aug 19, 2013 10:53 pm
Location: Barcelona

simple allPairBasketManager

Post by basch312 »

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]
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

simple allPairBasketManager

Post by milanese »

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
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
basch312
Trader
Posts: 72
Joined: Mon Aug 19, 2013 10:53 pm
Location: Barcelona

simple allPairBasketManager

Post by basch312 »

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?
Post Reply

Return to “Utilities Indicators and Scripts”