Trabalho concluído
Termos de Referência
I currently have 2 working EA's. 1 EA is reading EMAILS through Python and opens these trades accordingly.
An example of this is: email arrives with the plain text: BUY EURUSD TP = 1.09785 SL=1.06896
The email then opens this trade, with a lot size depending on the set risk settings in the EA.
The other EA works with a BUY/SELL indicator in the EA and opens a trade when a BUY or SELL signal presents itself. risk management is arranged in the EA.
There are settings to determine SL placement based on the last x candles or fixes nr of pips, risk %,.... this is all working fine.
What I want to achieve is this: I want to use the 2nd EA but instead of it opening trades based on an internal signal (BUY/SELL) I want the trade signals coming from an email. (example: email with plain text 'BUY EURUSD')
The rest of the EA should just remain the same as it works now. (to determine SL, TP, risk,... all that is already there and working, I only need the entry of the trade to come from an email signal instead of an internal indicator)
How it should work in practice:
Example 1:
- A buy email comes in (BUY EURUSD)
- The EA checks the last closed bar
- If it is bullish, the trade opens, if it is bearish the trade does not open (signal gets ignored)
example 2:
- A sell email comes in (SELL GBPJPY)
- The EA checks the last closed bar
- If it is bearish, the trade opens, if it is bullish the signal gets ignore
You can either just change the code for the 2nd EA to make it able to read emails (Python knowledge is required for this) or you can take the code from the first EA (that already does something similar) and modify this to make it work for EA 2 as mentioned above.
The end result should simply be that the existing EA can open trades by reading email.