Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
I need an Expert Advisor able to trigger buy/sell orders based on moving average crossing.
I need to add a new option in the moving average.
We have only Simple, Exponential, Smoothed and Linear. I want to add triangular moving average. The indicator (Triangular Moving Average) goes attached.
After this, the EA will have these options:
1)FAST MOVING AVERAGE
Options:
a) number of periods
b) type: Simple, Exponential, Smoothed, Linear and Triangular
2) SLOW MOVING AVERAGE
Options:
a) number of periods
b) type: Simple, Exponential, Smoothed, Linear and Triangular
3) ENTRY POINT
BUY ORDER
a) fast moving average crosses above slow moving average
b) open trade in the next candle after crossing
SELL ORDER
a) fast moving average crosses below slow moving average
b) open trade in the next candle after crossing
4) STOP LOSS
Options
BUY ORDER
a) Previous candle low
b) Previous candle low - (n) pips
c) lowest low from previous (n) candles
d) previous candle range (candle high - candle low)
SELL ORDER
a) Previous candle high
b) Previous candle high + (n) pips
c) highest high from previous (n) candles
d) previous candle range (candle high - candle low)
5) TAKE PROFIT
BUY ORDER
a) a factor multiplied by Stop Loss size (ex: 1,5 x SL)
b) previous candle range (candle high - candle low)
c) highest high from previous (n) candles
SELL ORDER
a) a factor multiplied by Stop Loss size (ex: 1,5 x SL)
b) previous candle range (candle high - candle low)
c) lowest low from previous (n) candles
6) MONEY MANAGEMENT
a) fixed lot size: the trades have the same size in lots
b) % of balance - The risk will be calculated in % of balance - If the balance is 10.000 USD and risk 1%, the Stop Loss size will have 100 USD
c) Stop Loss size - The risk will have a fixed value - If this value is 100 USD, the Stop Loss will have 100 USD size
d) Stop daily trades if profit is bigger than (n)% - if daily profit is bigger than this value - the EA will stop trading until next day.
e) Stop daily trades if loss is bigger than (n)% - if daily profit is bigger than this value - the EA will stop trading until next day.
7) MAX NUMBER OF TRADES
a) The maximum number of trades at the same time.
8) DAY AND TIME TO TRADE
a) The days of week and hours that EA will trade
b) Close all trades at Friday (n) hours - Will close all trades (profit/loss) at Friday xx:xx hour