Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Hi programmers,
I'm new here, hope we can benefit from each other.
Here is the plan: (image just added to clarify)
EA - Based on SMA slope ==> BUY/SELL/CLOSE criteria
1) Active on all 35 majors Forex pairs
or
Selected pairs
2) Criteria to Buy/Close a Buy
- SMA5 on M5 got a slope over "X" value
- Spread must be bellow "Y" value
- Lot size at "Z"% of the balance
- SL at -10 pips from EP
- Set TP to "V" pips over EP
- If no open trade on this pair
3) - Set trailme SL to "W" pips
4) - Close when SMA5 goes flat on M15 timeframe
Criteria to Sell/Close a Sell (exact same opposite as Buy)
- SMA5 on M5 got a slope under X value
- Spread must be bellow Y value
- Lot size at Z% of the balance
- SL at +10 pips from EP
- If no open trade on this pair
- Set TP to V pips under EP
- Set trailme SL to W pips
- Close when SMA5 goes flat on M15 timeframe
---------------- Don't know what else to say ----------------
I need the source code for this EA with comments in order to understand.
Let say I would like to change M5 to M30 and M15 to H1, I should be able to do it myself.
Next steps (version 1.2) will be about fine tuning:
- lot size
- initial SL
- Trailme SL
For each and every pair individually.
Best regards,