Job finished
Specification
What I would need is an EA that trades the 2 symbols "US500" and "US30" simultaneously, while only attached to the US500 symbol.
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Rules:
The EA will always BUY the "US500"
and always SELL the "US30".
The default lotsize for the US500 should be 10
and the default lotsize for the US30 should be 1.
When the EA is attached it instantly opens the 2 orders.
These orders will require a certain margin. In the attached example it is 236,85 € for both positions.
If the profit gets to a certain percentage of that margin (default 10%, would mean 23,68 € profit) it will close both positions and open
instantly 2 new orders in the same way. This will repeat over and over again. Exception is that there should be an input for trading hours where the EA does not open new orders
but closes trades that are still open if the profit target is reached.
Filter: There should also be a filter based on a simple 25 period moving average be included.
This filter will only take the US500 into account. If price is below the 25 period moving average
the lotsize should be 9 instead of 10.
Inputs would be as the following:
Lotsize US500 -->default 10
Lotsize US30 --> default 1
Margin Percent Profit -->default 10%
Moving Average Filter -->true/false
Trading Hours Start -->09:00
Trading Hours End -->22:00