Create Buy Limit Orders at Multiples of Order Distance

MQL4 Asesores Expertos

Tarea técnica

EA Name: Create Buy Limit Order

Inputs:
1) LimitOrderType = Buy Limit (Put this in a Dropdown)

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) BUY_Lot size = ___ (eg. 0.01)     ---> Create Buy Limit orders at this Lot Size

5) BUY_Order_Distance = X Pips (eg. 2500 PIPS) -----Create Limit orders at this OrderDistance Pips
6) BUY_TakeProfit = N PIPS (eg. 5000 PIPS) --  (When limit orders are created, they should have this TP. Eg. Order opened at $1000, should have TP as 1050)
7) BUY_StopLoss = M PIPS (eg. 1000 PIPS) -- (When limit orders are created, they should have this SL Eg. Order opened at $1000, should have TP as 1010)
8) BUY_Max Order Qty (Q) = ___ (Number of Orders to Maintain at any time)

Process:
Step1- Once the EA is initialized/started, Close all limit orders created by this EA in the past + Remove any object list in the chart.

Step2 - Order creation : Create (Q) number of limit orders at MULTIPLES OF THE ORDER DISTANCE ONLY below the current price.
Use the following formula to create the buy limit orders for the first time.
--> Round(Current Price)-Round(Current Price) mod OrderDistance - OrderDistance


Example:
(Assume Q=10, current Price=995.6, Order Distance=2500 PIS = 25$)

- Create buylimit orders at 950,925,900,875,850,825,800,775,750,725
- First Buy limit order to create is ---> Round(Current Price)-Round(Current Price) mod OrderDistance-Order Distance = 995.6-995.6 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

*Once the price increases and hits 1000, create an order of 1000-25=975 and so on


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 &delete the lowest 
OR need to create an even lower limit order when price moved down.

3) Donot create a buy limit order for an order that already exist.

eg. When a Buy order of 975 exists, then shd not create the BUY Limit order of 975

Archivos adjuntos:

PNG
EA.png
55.0 Kb

Han respondido

1
Desarrollador 1
Evaluación
(26)
Proyectos
23
39%
Arbitraje
26
8% / 38%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(24)
Proyectos
28
32%
Arbitraje
1
0% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(237)
Proyectos
419
34%
Arbitraje
53
36% / 40%
Caducado
154
37%
Trabajando
4
Desarrollador 4
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
5
Desarrollador 5
Evaluación
(257)
Proyectos
341
58%
Arbitraje
7
14% / 71%
Caducado
9
3%
Libre
6
Desarrollador 6
Evaluación
(769)
Proyectos
1033
44%
Arbitraje
50
8% / 50%
Caducado
117
11%
Libre
7
Desarrollador 7
Evaluación
(57)
Proyectos
72
22%
Arbitraje
13
46% / 15%
Caducado
5
7%
Libre
8
Desarrollador 8
Evaluación
(363)
Proyectos
389
70%
Arbitraje
3
100% / 0%
Caducado
2
1%
Trabajando
9
Desarrollador 9
Evaluación
(24)
Proyectos
29
38%
Arbitraje
2
0% / 0%
Caducado
2
7%
Libre
10
Desarrollador 10
Evaluación
(253)
Proyectos
408
38%
Arbitraje
86
43% / 19%
Caducado
70
17%
Trabaja
11
Desarrollador 11
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
I'm seeking assistance in developing a sophisticated trading robot with the following features: Core strategy: Harmonic pattern recognition Supply and demand analysis Fibonacci zigzag for trade optimization Additional components: News filter Dashboard for easy monitoring Customizable settings: Lot size Trailing stop Trading session parameters Maximum number of orders Option to use market or limit orders Resources
1. Add Feature For (SPREAD) Normal trading Hours Spread or User set trading Hours Spread True or false Set to true or False When set to true EA will only create or develop a trade if spread is in this window allowing it to and EA will follow a window in which it can trade based on spread so if spread is to high and outside of this window it will not create a trade It
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
Hi, I have a working MQ4 EA (With a few warnings but works fine), I need the warnings cleared and converted to MQ5. But I would also like a few improvements first. Firstly: Fix warnings in MT4 code (return value of 'OrderSelect'/'OrderModify' should be checked). Add following features: Magic number modifiable variable (It's currently hard coded) Is it possible to have a stop loss dollar amount instead of lots if
i create a robot which help with order blocks and detection of spikes ....simply it analyses the market for you and if you are using it you wont need much skill to start operating it well you just need to know and understand how it works
I need an experienced programmer to create an automated EA that will open trades based on different candle stick formation strategies and indicators. The EA will first scan the market, find a current market trend and define area of support and resistance. On ranging market the EA doesn’t place trades . (1) EA should use a straddle strategy from either the S/R level, (2) indecision Doji candle from the S/R area, (3)
Order of EA trading only Arrow signals of my indicator in MT4 This EA should trade only the BUY and SELL Arrow signals after 1 added candle AND only if the bricks (blue for blue and red for sell) are in same direction Arrow + a brick Indicator is here attached. Arrow up + 2 Bricks Blue is BUY Arrow down + 2 Bricks Red is SELL Important is to check ONLY CLOSED candels. Sometimes it maybe occur ,that arrow apperase
Je souhaite un Ea advisor, possédants des stratégies combinés tels que : RSI+BB, Stoch+ATR, Fibonacci pattern harmonics, Keiltner+Canal Donchian, EMA+SMMA, support et résistance,zizag Min lots : 0.1 Je rechargerai mon solde une fois qu’un bon robot me sera présenté Je 'ai qu’une centaine d’euro entre mon investissement en votre EA et mon solde métatrader je ne veux pas de calcul de lots en fonction de mon

Información sobre el proyecto

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