작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
EA USING MOVING AVERAGES WITH RSI AND MACD AS FILTER
The filter is taking from RSI and MACD Signal on higher time frame
SELL example if RSI on 1 hours chart closed below 50 line and MACD is below Zero line and its MACD bar built over its line, it means we are to look for Only SELL signals on the time frame the EA is attached to.
BUY example if RSI on 1 hours chart closed above 50 line and MACD is above Zero line and its MACD bar built over its line, it means we are to look for Only BUY signals on the time frame the EA is attached to.
The EA should take all the signals generated from higher TF to lower time frame in confirmation from the higher TF.
If it take a SELL trade and it hasn’t closed in TP and another SELL signals appears it should take it as well likewise to BUY.
When a trade is closed in loss EA looks for another signal and takes a trade to recover the loss without profit. (Based on the new martingale)
Filter time frame = 1HR, 4HR, DAILY, WEEKLY, MONTHLY
SELL SIGNAL
Wait for RSI to close below 50 line and MACD to be below the Zero line with MACD bars below the MACD default line then take sell with TP and SL when a trade is closed in loss. And EA should not take trade when RSI hit 30 line
EA looks for another signal and take a trade to recover the loss without profit.
(Based on the new martingale)
BUY SIGNAL
Wait for RSI to close above 50 line and MACD to be above the Zero line with MACD bars above the MACD default line then wait for buy arrow to appear take buy with TP and SL when a trade is closed in loss. And shouldnt take trade when RSI hit 70 lines
EA looks for another signal and take a trade to recover the loss without profit.
(Based on the new martingale)
New Martingale
When a trade closed in loss (stop loss) the EA should calculate the next trade lots that will only recover the loss without profit. After recovery the EA will start a new circle to make profit.
In the input you will have if the martingale is turned off EA uses the default lots in the input there will be Use filter = True/False
If filter is turned off the EA only trade without the filter only uses RSI and MACD.
For the filter, before the EA takes the trade it must make sure the RSI and MACD is in line with the signal, if RSI and MACD have change course no need to take the signal when the arrow appears.
ADDITIONAL INPUTS
TP in money; this means take profit in money, if I set it as 1 EA closes trade when it made 1usd.
TP in pips; take profit in pips, if I set 10, then when 10 pips is achieved EA will close the trade.
Risk MM; Risk money management, the EA calculated the lots based on the risk applied.
% Risk; % Risk if I use 1 % EA will calculate 1% risk and choose lots to use.
No-martingale = 5; number of martingale to open, after 5 times EA will revert back to using default lots.
Martingale = true /false; this settings will activate the settings.
Max spread; this will not take trade when spread is more than amount choose.
Trades per signal; if I put 2, EA will take 2 trades immediately a signal is giving.
News filter; the EA wont trade during news period