AN EXPERT BASED ON PENDING BUY STOP AND SELL STOP ORDERS

Specification

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

Responded

1
Developer 1
Rating
(19)
Projects
26
27%
Arbitration
3
0% / 100%
Overdue
2
8%
Free
2
Developer 2
Rating
(2)
Projects
5
0%
Arbitration
1
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
(37)
Projects
59
27%
Arbitration
25
20% / 52%
Overdue
10
17%
Working
Published: 1 code
4
Developer 4
Rating
(6)
Projects
10
50%
Arbitration
6
17% / 50%
Overdue
3
30%
Working
5
Developer 5
Rating
(82)
Projects
155
42%
Arbitration
2
100% / 0%
Overdue
4
3%
Working
6
Developer 6
Rating
(568)
Projects
641
41%
Arbitration
23
52% / 30%
Overdue
46
7%
Working
7
Developer 7
Rating
(44)
Projects
45
24%
Arbitration
23
13% / 74%
Overdue
10
22%
Working
8
Developer 8
Rating
(3)
Projects
4
0%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
9
Developer 9
Rating
(284)
Projects
459
39%
Arbitration
94
44% / 18%
Overdue
73
16%
Loaded
Published: 2 codes
10
Developer 10
Rating
(72)
Projects
80
10%
Arbitration
35
9% / 54%
Overdue
6
8%
Free
11
Developer 11
Rating
(270)
Projects
550
49%
Arbitration
56
39% / 36%
Overdue
227
41%
Working
12
Developer 12
Rating
(140)
Projects
182
42%
Arbitration
24
58% / 17%
Overdue
12
7%
Working
13
Developer 13
Rating
(44)
Projects
53
38%
Arbitration
8
13% / 25%
Overdue
8
15%
Working
14
Developer 14
Rating
(87)
Projects
131
22%
Arbitration
7
57% / 0%
Overdue
33
25%
Free
Published: 1 code
15
Developer 15
Rating
(6)
Projects
8
25%
Arbitration
1
100% / 0%
Overdue
3
38%
Free
16
Developer 16
Rating
(437)
Projects
464
69%
Arbitration
6
67% / 0%
Overdue
2
0%
Working
Similar orders
I need an Expert advisor based on AOX signal . it must have check and handing of trade operation..errors. The main criterin for opening and dosing a position : moving average direction the price is higher than the previous bar Trade lots is input parameter bar
Here's a detailed description of a Trend Following and Mean Reversion strategy-based Expert Advisor (EA): Strategy Overview The EA will implement a hybrid strategy combining trend following and mean reversion techniques. It will identify trending markets, ride the trend, and also capitalize on mean reversion opportunities
Overview Create a MetaTrader 5 (MT5) indicator that: Pulls live sentiment data from multiple broker APIs. Calculates Net Sentiment (Long% – Short%) and plots each broker as a moving average line on the chart. Displays a weighted average line when ≥2 feeds are active. Saves all data to CSV files per broker for efficient historical loading and performance. Supported Brokers Broker Abbr. Color OandaFX
I Have A project done dusted For sale; Title: Strong Reversal Indicator [No Repaint, No Offset, Low Lag] 17 minutes ago MQL5 Indicators Design Forex Trading robot/indicator debugging Strategy optimization Statistics and mathematics Strategy modules Uploading data to a website Specification EN Overview: A professional MT5 reversal indicator designed to detect market turning points with no repainting, no
Manage my live forex account with a disciplined, low-risk approach that produces steady monthly income. My priority is capital protection, so each trade must be sized conservatively, anchored by firm stop-loss orders, and designed to keep drawdown minimal. High-risk tactics such as martingale, grid systems, or excessive leverage are off the table; a measured, rules-based strategy is essential. I will connect the
Indicator that finds zones. All details in word document Ask questions if need I’d also like to to change from finding bullish marker and main candles to bearish marker and main candles if price crosses past inputted price The document is showing zones for bullish price action. Id like to also change manually in setting for it to show bearish price action ( it will look for bullish candle markers and main) Zones
I already have an Expert Advisor coded in MQL4, but it refuses to trade anything other than its hard-coded symbol. I want that filter gone so the same strategy can fire on any instrument—forex, indices, metals such as XAUUSD—across any timeframe. The trading logic, money management and inputs must stay exactly as they are; I simply need universal symbol support. After the MT4 file is fixed and compiles cleanly, I
Description: Gildepak is a purchasing cooperative for packaging materials. We need a program to calculate and fairly distribute the annual bonus (received from preferred suppliers) among our member companies (partners and members). The program should work with a set of predefined tables and data flows, and it must be able to import and export Excel files. Main Tables: Member Companies Company ID Company Name Partner
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
Fractal Multi-Timeframe Strategy (H4→M15→M2) — Developer Spec Abstract This document specifies a fractal trading workflow leveraging H4 for regime identification, M15 for Area of Value (AoV) location, and M2 for execution using CHoCH-based triggers. The goal is a robust, developer-friendly specification that minimizes ambiguity and matches the operational style already discussed (Liquidity → Order Block →

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
from 1 to 2 day(s)