Hi dev,
I want to code a MQL5 EA as described below.
I can provide my custom tradingview pinescript v5 code as a reference.
*** Strategy description ***
The strategy looks for a specific 4 candle pattern to open long or short.
Current candle is candle 0, previous candle is 1 and so on.
For longs: Current candle closes above previous candle’s high (candle 1) and also closes above candle 3 high.
For shorts: Current candle closes below previous candle’s low (candle 1) and also closes below candle 3 low.
The candle pattern is only valid on bar close.
*** Entry conditions ***
Once a pattern is detected we will stop looking for new patterns until the trade is closed or cancelled. If the limit order is not triggered in X number of candles we cancel the limit order and restart looking for candle patterns. If before the trade is triggered we get a contrarian signal we also cancel the trade and open the last one to appear.
Here is the candle detection code in pinescript V5:
bool greenTriangle = close > high[1] and close > high[3] and not prevGreenTriangle
bool redTriangle = close < low[1] and close < low[3] and not prevRedTriangle
When the pattern is detected a limit order is set to X pips above the last candle for longs or under for shorts. This makes sure that the trade will only open if the price actually moves in the direction of the signal. If the price moves in the opposite direction we will end up canceling the order after X candles or a contrarian signal.
That’s all for the trigger conditions.
*** Exit conditions***
For exit we use a fixed stop loss value equal to X pips and a dynamic take profit that is a multiplier of the ATR value (period 7 candles and multiplier 0.7 for instance).
An open position should also be closed if we get an opposing candle pattern.
*** Position size ***
In terms of position size we risk losing 1% of the account per trade. If this results in a value bigger than the whole account we use 90% of the account as position size.
The strategy only keeps one long or one short open per time so there is no pyramiding.
It should be possible to define two time periods for opening trades per day. For instance from 08h00 UTC to 12h30 UTC and again from 14h30 UTC until 21h00 UTC.
Closing trades can be anytime since we defined the stop loss and take profit already.
We should have an icon indicating a long and one for short. Position entry price, stop loss and take profit should also be displayed.
Please see attached image for an idea of what it should do.
Thanks
비슷한 주문
i want to develop martingale base ea with some risk managemnet i will provide the trade ac id password need to study the strategy then i need competle flexible risk management that can be changed and set accorddingly when it required. ac number -13145 pass- View@1234 server- ambitious capital
I am seeking a highly skilled developer to build a fully functional automated Expert Advisor for MetaTrader 5 (MQL5)- XAUUSD fast in and out EA scalper that opens multiple trades following trend, uses dynamic lot sizing, and has to be – 24/5 unlimited. require the development of a high-speed, continuous fully automated trading Expert Advisor (EA) for MetaTrader 5, optimized for live trading on ICmarkets. The EA must
Me encuentro en busca de un desarrollador MT4 para crear un EA totalmente basado en reglas enfocadas en Propfirms (Específicamente en The5ers) para operar el activo EURUSD. Cuento con un documento detallado con reglas de contexto, eventos, ejecución y gestión operativa. Necesito código limpio, sin margintale, sin grid; con control de reducción orientado a abrir y cerrar posiciones durante el horario de la sesión de
Hello, I’m looking for a professional MQL4/MQL5 developer to review, backtest, and optimize an EMA-based Expert Advisor to improve its win rate. The EA is already developed, and the task involves analyzing the existing logic, optimizing parameters, and providing performance improvements with clear results. Experience with strategy optimization and scalping systems is required
//+------------------------------------------------------------------+ //| MT5 Forex Scalping EA | //| Trend Pullback Scalper | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; // ===== INPUTS ===== input double RiskPercent = 0.5; input int EMAFast = 20; input int EMASlow = 50; input int RSIPeriod
I'm seeking an experienced MQL5 developer to create a robust Expert Advisor (EA) that integrates 4 powerful strategies into a single, cohesive system. The EA will trade XAUUSD exclusively and adhere to strict risk management principles, avoiding grid and martingale techniques. *Strategy Overview* The EA will incorporate the following strategies, each with its own unique approach: 1. *High Timeframe Trend Reversal*
i want to convert icc /cct strategy into an automated bot, if any one can do it please let me know so i send a video describing exaclty what i want
* Use Fibonacci retracement (with adjusted values) to scale entry points. * Timeframe may differ depending on the projected target; but the Fibonacci conditions remain the same * date range into consideration as well * Applicable to indices, crypto and metals. * Activate entries on the second half of my fib *Usually takes the whole week to unfold (5 - 7 days) * Timeframes to consider 5m/15m, H1/H2 The attached images
//+------------------------------------------------------------------+ //| Prop Firm Challenge EA – Fully Automated (MT5) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; // ================= INPUTS ================= input double RiskPerTradePct = 0.5; // 0.5% risk (prop firm safe) input double MaxDailyLossPct = 2.0; // Daily loss limit
Here are the ThinkScript codes from ThinkorSwim in a Text (.txt) file- I placed a hashmark (#) by the name of each indicator or system with the code underneath - let me know if you have any questions as you convert these into TradingView - thanks i will be looking for graet developer to build for this project