Create Buy Limit Orders

MQL4 Asesores Expertos

Tarea técnica

EA Name: Create Buy Limit Orders

Inputs:
1) CreateBuyOrder = Yes / No --->If it is Yes, the EA will create Buy limit orders
2) Stopout Margin Level = X% (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)
3) RestartMarginLevel = Y% (500%) --- Restart the process of creating Limit orders once the margin level is greater than Y%

4) Lot size = ___ (eg. 0.01)     ---> Create Limit orders at this Lot Size
5) OrderDistance = X USD (eg. 25 USD) -----Create Limit orders at this OrderDistance - All prices are in terms currency USD & not pips
6) TakeProfit = N USD (eg. 20 USD) --  (When limit orders are created, they should have this TP. Eg. Order opened at $750, should have TP as 770)
7) StopLoss = M USD (eg. 10 USD) -- (When limit orders are created, they should have this SL Eg. Order opened at $750, should have SL as 740)
8) Limit orders Qty (Q) = ___ (Number of Buy Limit Orders to Maintain at any time)
9) Create_After_Before = ___ (eg. 6$)


Process:
Step1 Clear open limit orders: At the start of the EA ---> Close all limit orders created by this EA in the past

Step2 - Order creation : Create (Q) number of Buy limit orders at the given "OrderDistance" below the current price. Use the following formula to create the buy limit orders for the first time.

Create buylimit orders at 950,925,900,875,850,825,800,775,750,725

(Assume Q=10)
First Buy limit order to create is ---> Current Price-Current Price mod OrderDistance - OrderDistance = 995-995 mod 25-25 =950
Second Buy limit order to create is 950-25 = 925
Third  Buy limit order to create is 925-25 = 900
10th Buy limit order to create = 725


2) At any point in time ensure that there are Q number of buy limit orders at any point of time. For this need to create 1 more highest limit order when price moves up OR need to create the lowest limit order when price moved down.

(a) Example - When price goes to 1006 (ie. 1000 + Create_After_Before), then need to create a buy limit order of 975
ie. 1006-1006mod 25-25 =975
AND - Delete the least price order of 725


(b) When price goes to 944(ie. 950-Create_After_Before), only 9 buy orders will be remaining 
(since Buy limit order of $950 has already converted to buy order just a little while ago)

Hence, should create a last 1 more buy limit order of $700 and so on.

Han respondido

1
Desarrollador 1
Evaluación
(879)
Proyectos
1393
67%
Arbitraje
117
32% / 42%
Caducado
215
15%
Trabaja
2
Desarrollador 2
Evaluación
(42)
Proyectos
62
8%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
3
Desarrollador 3
Evaluación
(481)
Proyectos
510
53%
Arbitraje
10
60% / 20%
Caducado
3
1%
Libre
4
Desarrollador 4
Evaluación
(378)
Proyectos
401
31%
Arbitraje
63
19% / 70%
Caducado
51
13%
Trabajando
5
Desarrollador 5
Evaluación
(197)
Proyectos
320
35%
Arbitraje
64
13% / 56%
Caducado
83
26%
Libre
6
Desarrollador 6
Evaluación
(7)
Proyectos
17
41%
Arbitraje
3
0% / 100%
Caducado
3
18%
Libre
7
Desarrollador 7
Evaluación
(248)
Proyectos
444
34%
Arbitraje
56
36% / 38%
Caducado
163
37%
Trabajando
8
Desarrollador 8
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
9
Desarrollador 9
Evaluación
(564)
Proyectos
933
47%
Arbitraje
302
59% / 25%
Caducado
125
13%
Trabajando
10
Desarrollador 10
Evaluación
(96)
Proyectos
143
76%
Arbitraje
0
Caducado
2
1%
Libre
11
Desarrollador 11
Evaluación
(19)
Proyectos
22
77%
Arbitraje
1
0% / 100%
Caducado
13
59%
Libre
12
Desarrollador 12
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
I need a modification on my existing Ea if you can Can fixed risk management to lot size instead of percentage. don’t want strategic risk management input to be based on percentage Instead lot size. The strategic risk management function I need turned from percentage to lot based And I need sells and buys to have separate tps and sl options Budget:$100 Day: 1 day
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
I need to get a trading forex robot based on support and accurate resistance and moving avarage more details will be provided on the video links I want a situation where by once I put the robot on the chart and choose buy or sell and the number to open then it will only buy or sell in that particular direction only
NADGIO 30+ USD
I need a developer that can convert two Buy and Sell indicators into a trading robot. the indicators has an input parameter, this should be made available for adjustment. Features 1. Break Even 2. Trailing Stop 3. Global TP and SL 5. Time Filter 6. News Filter (If possible)
I need a developer who can convert trading view indicator in to mt5 expert advisor with some modifications. The other details will shared once chosen the developer. Looking for someone who has good knowledge of forex, mql5,and pine script
Hello, i hope you all well. I am looking or a good developer who can understand SCM/ICT concepts so that can modify an existing EA to trade against that. The EA is already there with code and it was trading based on Breakouts zones. Now i want the EA to be modified so that it trades based on inducements and liquidity. The EA should use Pending orders on those zones instead. I do not want new developers to apply
EA for index trading using ATR % of 5day 1 Give Average true range for the past 5 day so 5day ATR also for ref use the indicator "atr value indicator " my entries will be based on a % of this NO. NO. TO BE SHOWN IN TOP CORNER The Expert im looking for is 1.AT X TIME (ie 8:am ) 2.IF price moves X % of the 5 day atr( either up or down ) within Y TIME (IE 5MINUTES ) (if PRICE moves say 30% of the 5 day atr down i buy or
I want to create an Expert Advisor (EA) that can be set to open either buy or sell trades, depending on user preference (buy-only or sell-only mode). The EA will initiate trades when the market reaches (or is equal to or less than) a specified DeMarker value (e.g., DeMarker value = 0.3). The user will set both the DeMarker value for starting trades and another DeMarker value to stop opening new trades. - **DeMarker

Información sobre el proyecto

Presupuesto
30 - 50 USD
Para el ejecutor
27 - 45 USD