Nov-06-2019, 10:43 AM
Hi,
I need to develop a script which will read in and place trades from emails sent each hour.
The email text is as follows:
1 EURCHF Sell 1.1011
2 EURCAD Sell 1.4594
3 CHFJPY Buy 109.757
4 AUDCHF Sell 0.6853
5 NZDCHF Sell 0.6338
I need to read in the second and 3rd columns and place the trades at the market prices. Each hour the system shoudl open the portfolio with the 5 trades. Each portfolio generated each hour needs to be separately managed. For each porfolio there are 3 simple hard rules:
1) If portfolio reaches loss of 100 pips it is closed and the opposite portfolio is opened (which should be closed after 24 hours from the initial portfolio generation time)
2) If the portfolio does not reach the 100 pips stop-loss it will be closed in 24 hours from portfolio initiation time.
Can you suggest a toolbox for that?
I guess I need the email parser, and then the trade placement toolbox and also the multiple portfolio manager. I guess I also need the trade size manager - lot size should be adapted to account size.
I need to develop a script which will read in and place trades from emails sent each hour.
The email text is as follows:
1 EURCHF Sell 1.1011
2 EURCAD Sell 1.4594
3 CHFJPY Buy 109.757
4 AUDCHF Sell 0.6853
5 NZDCHF Sell 0.6338
I need to read in the second and 3rd columns and place the trades at the market prices. Each hour the system shoudl open the portfolio with the 5 trades. Each portfolio generated each hour needs to be separately managed. For each porfolio there are 3 simple hard rules:
1) If portfolio reaches loss of 100 pips it is closed and the opposite portfolio is opened (which should be closed after 24 hours from the initial portfolio generation time)
2) If the portfolio does not reach the 100 pips stop-loss it will be closed in 24 hours from portfolio initiation time.
Can you suggest a toolbox for that?
I guess I need the email parser, and then the trade placement toolbox and also the multiple portfolio manager. I guess I also need the trade size manager - lot size should be adapted to account size.