Order Creating EA (Buy Limit, Buy Stop, Sell Limit, Sell Stop)

MQL4 Asesores Expertos

Tarea técnica

EA funciton

Create Limit and Stop orders at Multiple of the Order Distance to form a Grid. & Maintain the Grid All the time


Example

Order distance pips = 2,500 = $25, Use Buy Limit=True,  TP_[Buy_Limit] =5000, Current Price=995,  Max_Orders_[Buy_Limit]=5, Order_Gap_Pips=500=$5

Then,


1) At the beginning of the EA, Create buy Limit orders -> 975,950,900,925,900 --> Each one should have the Take Profit of 5000 since  TP_[Buy_Limit] =5000

2) When to place new limit order? When the price moves up and touches the grid+order gap [Example, if price moves upto 1005 (ie. 1000+ Order_Gap of $5 = 1005 , then place buy limit order of 1000]

3) Don't create duplicate pending order, if there is a Market order Exists (Eg. Suppose price comes down and converts the 975 pending order into buy order, and then moves up   Order_Gap_Pips of 500=$5, then, the EA will not create a pending order at 975, because a Buy order exists at 975)

4) Maintain the Grid all the time by Filling the Grid Gap - Suppose, a Buy order gets closed by Take Profit, the EA should place a pending order in it's place (eg. suppose order 975 hit by take profit at 1020, then the EA shd place a pending order to fill the gap of the grid at 975)



INPUTS
Stopout_Margin_Level 300% Must close all the open limit orders if margin level reaches X% & Should not create any new Limit order (Stop the EA and not create any Limit Orders)
Restart_Margin_Level 500% Restart the process of creating Limit orders once the margin level is greater than Y%
Use Buy_Limit True/False
Use Sell_Limit True/False
Use Buy_Stop True/False
Use Sell_Stop True/False
Order_Gap_Pips 500 Once this pips is hit, the pending order will be placed.
Eg. Order_Gap_pips=500, then if price touches 1005, pending order of 1000 will be placed
Lot_Size_[Buy_Limit] 0.01
Lot_Size_[Sell_Limit] 0.01
Lot_Size_[Buy_Stop] 0.01
Lot_Size_[Sell_Stop] 0.01
Order_Distance_[Buy_Limit] 2500
Order_Distance_[Sell_Limit] 2500
Order_Distance_[Buy_Stop] 2500
Order_Distance_[Sell_Stop] 2500
Max_Orders_[Buy_Limit] 25
Max_Orders_[Sell_Limit] 25
Max_Orders_[Buy_Stop] 25
Max_Orders_[Sell_Stop] 25
Lot_Size_Multiplier_[Buy_Limit] 1.06
Lot_Size_Multiplier_[Sell_Limit] 1.06
Lot_Size_Multiplier_[Buy_Stop] 1.06
Lot_Size_Multiplier_[Sell_Stop] 1.06
TP_[Buy_Limit] 5000
SL_[Buy_Limit] 5000
TP_[Sell_Limit] 5000
SL_[Sell_Limit] 5000
TP_[Buy_Stop] 5000
SL_[Buy_Stop] 5000
TP_[Sell_Stop] 5000
SL_[Sell_stop] 5000
TP_Order_Distance_Multiple_[Buy_Limit] 2 If TP Buy Limit is set, it will be taken, else this multiple will be taken as TP Buy Limit
SL_Order_Distance_Multiple_[Buy_Limit] 3 If If SL Buy Limit is set, it will be taken, else this multiple will be taken as SL Buy Limit
TP_Order_Distance_Multiple_[Sell_Limit] 3 If If TP Sell Limit is set, it will be taken, else this multiple will be taken as TP Sell Limit
SL_Order_Distance_Multiple_[Sell_Limit] 5 If If SL Sell Limit is set, it will be taken, else this multiple will be taken as SL Sell Limit
TP_Order_Distance_Multiple_[Buy_Stop] 1 If If TP Buy Stop is set, it will be taken, else this multiple will be taken as TP Buy Stop
SL_Order_Distance_Multiple_[Buy_Stop] 2 If If SL Buy Stop is set, it will be taken, else this multiple will be taken as SL Buy Stop
TP_Order_Distance_Multiple_[Sell_Stop] 3 If If TP Sell Stop is set, it will be taken, else this multiple will be taken as TP Sell Stop
SL_Order_Distance_Multiple_[Sell_stop] 1 If If SL Sell stop is set, it will be taken, else this multiple will be taken as SL Sell stop


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
2
Desarrollador 2
Evaluación
(64)
Proyectos
83
28%
Arbitraje
9
33% / 56%
Caducado
9
11%
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(195)
Proyectos
395
28%
Arbitraje
155
20% / 52%
Caducado
112
28%
Libre
4
Desarrollador 4
Evaluación
(5)
Proyectos
9
11%
Arbitraje
5
40% / 60%
Caducado
1
11%
Libre
5
Desarrollador 5
Evaluación
(43)
Proyectos
66
12%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
6
Desarrollador 6
Evaluación
(6)
Proyectos
10
10%
Arbitraje
9
0% / 89%
Caducado
1
10%
Libre
7
Desarrollador 7
Evaluación
(317)
Proyectos
564
35%
Arbitraje
81
31% / 44%
Caducado
204
36%
Libre
8
Desarrollador 8
Evaluación
(3)
Proyectos
3
67%
Arbitraje
1
0% / 0%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(471)
Proyectos
489
75%
Arbitraje
6
67% / 17%
Caducado
0
Trabaja
10
Desarrollador 10
Evaluación
(26)
Proyectos
34
26%
Arbitraje
7
14% / 43%
Caducado
7
21%
Libre
11
Desarrollador 11
Evaluación
(69)
Proyectos
146
34%
Arbitraje
13
8% / 62%
Caducado
26
18%
Libre
Ha publicado: 6 ejemplos
Solicitudes similares
Description: I am looking for an experienced MQL5 developer to build a fully automated Expert Advisor (EA) for MT5 tailored for Prop Firm challenges and funded accounts. I need a robust, plug-and-play solution with rigorous risk controls. Key Requirements: Platform: MT5 Trading Logic: I am looking for a reliable strategy based either on a Breakout Strategy (e.g., London session breakout) or a Mean Reversion Strategy
I need someone to develop a very simple and basic Expert Advisor for MetaTrader 5. The EA should open and close trades based on a custom trading time schedule. I am a student and I do not have a budget, so I am kindly asking if someone can help me for free or as a beginner-friendly project. The EA does not need to be complicated. I only need basic settings for start time, end time, buy/sell option, lot size, stop
Profitable EA 50 - 5000 USD
I have been tired of losing money in forex for several years, I decided to buy an EA directly from the programmer , I am ready to put the right price for a real winning strategy, no matter which strategy is used. The main thing is that the strategy is profitable Send me a demo, I'll put it on the VPS. The most profitable strategy will be chosen after a week
I really like this platform. I am interested in trading and need funds for it. I enjoy both crypto and forex trading.I"really appreciate this platform. I am keen on trading and am looking for trading funds. I enjoy trading in both cryptocurrency and forex."
Titan Quantum Algo Engine V2 is an advanced MT5 Expert Advisor designed to identify high-probability market opportunities using trend analysis, breakout detection, and intelligent risk management. The EA automatically executes trades, manages stop-loss and take-profit levels, and helps traders maintain disciplined trading with optimized entry and exit strategies
The striker robot 30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick
//+------------------------------------------------------------------+ //| Simple XAUUSD EA | //+------------------------------------------------------------------+ input double LotSize = 0.01; input int StopLoss = 500; // in points input int TakeProfit = 1000; // in points input int MAPeriod = 20; int maHandle; int OnInit() { maHandle = iMA(_Symbol, PERIOD_H1, MAPeriod, 0, MODE_SMA
Hello, I need a Python-based MT5 forex trading bot developed. The bot should connect to MetaTrader 5, execute trades based on a predefined strategy, and support standard risk management features such as stop loss, take profit, and position sizing. Requirements: MT5 integration using Python Automated trade execution based on provided strategy rules Configurable risk management settings Support for major forex pairs
### ** Main EA File** - `InstitutionalTrendPullbackScalper.mq5` **Core Features Implemented:** **Multi-Timeframe Analysis** - M15 trend filter (EMA20 > EMA50 for uptrends) - M5 entry signals with 5-condition confirmation - Independent indicator sets for both symbols **Advanced Entry Logic** - RSI reversal detection (crosses thresholds) - Price pullback zone validation - Bullish/bearish candle close confirmation -
I need developer who Can perfectly build me a layout of Ninjatrader 8 (NT8) to look and feel the same on SierraCharts? I currently use NT8 but I want to start using SierraCharts because its more robust than NT8, but I don't want to have to worry about programming SierraCharts. How much would this cost? Thank you

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
a 2 día(s)