仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Creation of Sample EA that open sell and buy trade depending on two indicators.
one indicator is to open trade ( when signals are generated ).
the second indicator ( zigzag indicator ) is for putting the SL and TP when the first indicator generate sell or buy signal.
SL should be N pips under the previous low (if signal are buy) and previous high (if signal are sell)
. In short, SL and TP will be added automatically.
take profit should be N number*SL
lot size should be calculated based on the SL on each trade.
lot size should be calculated based on specific cash amount USD.
EX: instead of entering risk as percentage i want to enter it as cash amount.
Breakeven after Npips
N Number of trades can run on same time (limit trades)
Money management:
the EA should monitor all the running trades so if :
1-all running lose and win trades equal to N$ (+net profit)
then the Ea must close all the running trades.
EA should have daily limit profit ( so if the total profit on a day is equal to N$ then the EA should stop trading until next day)
EA should have daily limit lose ( so if the total lose on a day is equal to N$ then the EA should stop trading until next day)
The ea should monitor the equity: if the equity = N$ then the ea must close all the running trades and stop open any more trades until I resume it again.
Session trading time
London True or false
NY True or false
Asian True or false
the EA should display the following information on the chart
- balance
- equity
- free margin
- total profit
-Session trading
- number of running trades