AN EXPERT BASED ON PENDING BUY STOP AND SELL STOP ORDERS

Tarea técnica

This is a MQL4 trading robot code that seems to implement a basic grid trading strategy. It opens two pending orders (a BuyStop and a SellStop) for a specified symbol when the current server time matches the specified trading time. It then modifies the stop loss and take profit of each order based on their type (BuyStop or SellStop). The lot size of each order is calculated using a risk percentage (RiskPercent) and the free margin available in the account.

Here are some of the important variables and functions used in this code:

Variables:

  • BuyPips: the distance in pips between the BuyStop and the current market price
  • SellPips: the distance in pips between the SellStop and the current market price
  • RiskPercent: the risk percentage used to calculate the lot size of each order
  • Ntokozo: a string variable used to display a comment on the chart
  • TradingTime: the time when the robot should start trading
  • ContractSize: the contract size used to calculate the lot size of each order
  • maxPendingOrders: the maximum number of pending orders that can be opened for each symbol
  • pendingOrdersCount: an array that keeps track of the number of pending orders for each symbol
  • symbolInitialized: a boolean array that keeps track of whether each symbol has been initialized or not

Han respondido

1
Desarrollador 1
Evaluación
(19)
Proyectos
26
27%
Arbitraje
3
0% / 100%
Caducado
2
8%
Libre
2
Desarrollador 2
Evaluación
(2)
Proyectos
5
0%
Arbitraje
1
0% / 100%
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
(37)
Proyectos
59
27%
Arbitraje
26
19% / 54%
Caducado
10
17%
Trabaja
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(6)
Proyectos
10
50%
Arbitraje
6
17% / 50%
Caducado
3
30%
Trabaja
5
Desarrollador 5
Evaluación
(84)
Proyectos
162
43%
Arbitraje
3
67% / 0%
Caducado
5
3%
Trabaja
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
7
Desarrollador 7
Evaluación
(45)
Proyectos
46
24%
Arbitraje
34
9% / 85%
Caducado
10
22%
Libre
8
Desarrollador 8
Evaluación
(3)
Proyectos
4
0%
Arbitraje
2
0% / 100%
Caducado
1
25%
Libre
9
Desarrollador 9
Evaluación
(294)
Proyectos
469
39%
Arbitraje
100
41% / 23%
Caducado
77
16%
Trabajando
Ha publicado: 2 ejemplos
10
Desarrollador 10
Evaluación
(72)
Proyectos
80
10%
Arbitraje
38
8% / 58%
Caducado
6
8%
Libre
11
Desarrollador 11
Evaluación
(270)
Proyectos
552
49%
Arbitraje
58
40% / 36%
Caducado
228
41%
Trabaja
12
Desarrollador 12
Evaluación
(143)
Proyectos
184
42%
Arbitraje
24
58% / 21%
Caducado
12
7%
Trabaja
13
Desarrollador 13
Evaluación
(44)
Proyectos
53
38%
Arbitraje
8
13% / 38%
Caducado
8
15%
Trabaja
14
Desarrollador 14
Evaluación
(87)
Proyectos
131
22%
Arbitraje
7
57% / 0%
Caducado
33
25%
Libre
Ha publicado: 1 ejemplo
15
Desarrollador 15
Evaluación
(6)
Proyectos
8
25%
Arbitraje
1
100% / 0%
Caducado
3
38%
Libre
16
Desarrollador 16
Evaluación
(447)
Proyectos
474
69%
Arbitraje
6
67% / 0%
Caducado
2
0%
Trabaja
Solicitudes similares
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Hi! I need a trading bot/robot to automate my trades. I don't need much complicated bot. I want it to enter, exit trade and can do this in matter of second or multiple times in a second. Should be able to adjust, put SL/TP in the same menu. Would appreciate your ideas! Please write to me before anything else
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4‑year backtest (2022‑2025) report, equity curve, trade list, strategy description, and 1‑month demo access. Please without concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Title: Ultimate Quantum EA V1.01 | Dynamic Hedge Recovery System Description: Professional automated trading system designed for high-precision execution and advanced risk management. Key Features: Dynamic Hedge Recovery: Automatically manages losing trades by opening calculated hedge positions (2x-3x) to exit in total profit. Basket Profit Management: Closes all open positions once the total dollar profit target is
I am looking for an experienced MT5 (MQL5) Expert Advisor developer to fix a chart distortion / corruption issue in my existing EA ( EA ALPHA ). Issue Description When the EA is attached to the chart on a specific broker (ATFX), the chart becomes visually distorted The distortion appears on the left-hand side / historical area of the chart The same EA works correctly on other brokers (e.g. CFI) A previous developer

Información sobre el proyecto

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