I need an EA for MT4 based on MACD cross and Moving Averages. Below is a detailed description of the proposed EA. There's also a BUY example attached for clarity. This EA should work for for all time frames and symbols.
Global Variables
MacDFast = Fast=12 //Fast EMA Period
MacDSlow = Slow=26 //Slow EMA Period
MacDSource = Close // Applied Price
MacDSignal = 9 //Signal Line Period
MacDRangeLong = -4.5,-45.0 //MacD Range for BUY signal when macd cross signal line
MacDRangeShort = 4.5, 45.0 //Range for SELL signal when macd cross signal line
EMA1 = 100 //100 Exponential Moving Average
EMA2 = 125 //125 Exponential Moving Average
EMA3 = 200 //200 Exponential Moving Average
LotSize = 0.01 //Default lot size
AlertOnly = 0 //When all conditions are met, trigger mt4 alert
TradeOnly = 0 //When all conditions are met, trigger mt4 trade
TakeProfit = 0 //Take Profit variable is set when conditions are met
StopLoss = 0 //Stop Loss variable is set when conditions are met
RiskReward = 1.5 //Default risk/reward ratio multiplier
Session = 0 //0=All Sessions, 1=New York, 2=London, 3=Tokyo, 4=Sydney (User can select multiple sessions)
MutipleOrders = 0 //0=Open Order when conditions are met 1=Only open one order at a time, additional order cannot be opened
ATR = 14 //Average true range used in stop loss calculation
Long: At Candle open
if (previous candle high and low > EMA1) && (previous candle high and low > EMA2) && (previous candle high and low > EMA3)
if (current candle open > EMA1) && (current candle open > EMA2) && (current candle open > EMA3)
if (macd and signal line cross between MacDRangeLong)
if(AlertOnly = 1 && TradeOnly = 0)
(
StopLoss = Distance from price to ema2
TakeProfit = (Distance from price to ema2) * RiskReward
Alert("Buy at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )
)
if(AlertOnly = 0 && TradeOnly = 1)
(
Buy Market Order
LotSize = LotSize
StopLoss = Distance from price to ema2
TakeProfit = (Distance from price to ema2) * RiskReward
when ( price = 50% of TakeProfit )
StopLoss = break even + 5 pips
when ( price = TakeProfit )
Trailing Stop Loss = calculated by subtracting the current ATR value from the lowest-low of the given lookback period
)
Short: At Candle open
if (previous candle high and low < EMA1) && (previous candle high and low < EMA2) && (previous candle high and low < EMA3)
if (current candle open < EMA1) && (current candle open < EMA2) && (current candle open < EMA3)
if (macd and signal line cross between MacDRangeShort)
if(AlertOnly = 1 && TradeOnly = 0)
(
StopLoss = Distance from price to ema2
TakeProfit = (Distance from price to ema2) * RiskReward
Alert("Sell at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )
)
if(AlertOnly = 0 && TradeOnly = 1)
(
Sell Market Order
LotSize = LotSize
StopLoss = Distance from price to ema2
TakeProfit = (Distance from price to ema2) * RiskReward
when ( price = 50% of TakeProfit )
StopLoss = break even + 5 pips
when ( price = TakeProfit )
Trailing Stop Loss = calculated by adding the current ATR value to the highest-high of the given lookback period
)
Similar orders
I want a robot that will monitor the h4 time frame. wait for 10ema to cross below or above 50 ema. look for candles to touch the 10 ema, wait for a break of structure and a reversal to the neckline. the robot must send me notification when the reversal touches the neckline and give visual indication on the chart
Hello, I have an existing XAUUSD market-analysis system called I am looking for an experienced MQL5 developer to perform a technical review and prepare a precise architecture for rebuilding the existing SIGNAL ENGINE / ANALYSIS LOGIC in MQL5. IMPORTANT: This request is ONLY about the signal-analysis engine. I am NOT requesting an Expert Advisor (EA), automated trading system, order execution, or live trading
Hi, I'm looking for an experienced MQL5 developer to build a profitable Expert Advisor for MetaTrader 5. The goal is to get the highest possible return from a small account while keeping the account alive. ACCOUNT - Broker: IC Markets (EU, regulated), MT5, hedging account - Leverage: 1:30 - Deposit: 200 USD - Instruments: Forex and/or XAUUSD, your choice. Please check that the margin for the minimum lot size is
I need a professional MT5 Expert Advisor for multi-symbol trade monitoring and risk management. The EA should focus on trade management rather than generating trading signals. Requirements: Platform: MetaTrader 5 / MQL5 Monitor all open positions on the account Multi-symbol support Display a dashboard showing: Symbol Buy/Sell direction Lot size Entry price Current profit/loss Stop Loss Take Profit Configurable
Hi, I’m looking for an experienced MQL5/MT5 developer to build a complex AI-powered adaptive Expert Advisor for XAUUSD+ on Ultima Markets. I have a detailed 28-section technical specification, and the requirements are fixed. I’m looking for the complete implementation , not a simplified EA or a conventional indicator-based system. The project includes: Genuine AI/ML integration AI-based market regime classification
This may be a weird request but if anyone has an EA that is actually consistently profitable I want to buy a copy from you. Ideally trades a lot, I'm sure theres a coder out there who has made a profitable EA, I want to backtest if you have, I have been trying to code a few on my own with no success as I'm not yet good at coding, lets see what ya got.thanks
I need a simple MetaTrader 5 Expert Advisor based on a MACD crossover. Requirements: Platform: MetaTrader 5 / MQL5 Buy when the MACD main line crosses above the signal line Sell when the MACD main line crosses below the signal line Use completed candles only MACD parameters configurable Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Configurable Magic
I need a simple MT5 Expert Advisor based on Bollinger Bands. Requirements: Platform: MetaTrader 5 / MQL5 Buy when price closes below the lower Bollinger Band Sell when price closes above the upper Bollinger Band Bollinger period configurable, default 20 Deviation configurable, default 2.0 Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Use completed
Platform: MT5 / MQL5 Buy khi RSI < 30 Sell khi RSI > 70 RSI period configurable, default 14 Fixed lot configurable SL/TP configurable Max 1 position per symbol Completed candles only Configurable Magic Number Deliver .mq5 source Compile without errors/warnings No martingale/grid No profitability guarantee
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on mgl5 And if you know you can not do the project without getting paid first please don't bid thanks