1) I want to an EA written.
a. The EA should be able to trade 4 & 5 digit brokers as well as ECN & NON ECN brokers.
b. The ea will have properties that can be set
i. Fix Lot size or money management
ii. Profit distance from entry in pips
iii. Trades distance in pips.
iv. Distance from current price.
v. Total trades
vi. trade direction - Long, Short, Both
If fixed size then the EA will open trades based on the value in the fixed lot size. Should be able to trade micro lots to a minimum of 0.01.
The EA will open long and a short trade pending trade. The entry price should be calculated based on the property "Distance from current price".
TP is based on "Profit from distance from Entry Pips.
Total number of trades the EA will open on each direction (long and short) based on "Total Trades"
EA will setup new trades based on the rules on every new candle open, all previous pending orders should be deleted.
Fix Lot size or money management - 0.10
Profit distance from entry in pips - 100 (for 5 digit broker)
Trades distance in pips - 200 (for 5 digit broker)
Distance from current price - 150 (for 5 digit broker)
Total trades - 3
If the new candle opens at 132.50 then 3 new short and 3 new long pending orders should be setup
1) Long entry 132.65, TP - 132.75
2) Long entry 132.85, TP - 132.95
3) Long entry 133.05, TP - 132.15
4) Short entry 132.35, TP - 132.25
5) Short entry 132.15, TP - 132.05
6) Short entry 131.95, TP - 131.85
When the next candle opens, all pending orders should be deleted
Another details, incase there are already open trades of a currency pair, the EA should check and not open new trades for that particular pair.