Adding code to my expert advisor (Spread, opening position, time restriction)

MQL4 Indicators Experts

Job finished

Execution time 13 hours
Feedback from customer
Second coding request done, great experience, and fast delivery +++
Feedback from employee
Always a pleasure to work with. Thank you so much Olav.

Specification

Greetings friends,


Project: Adding code to my expert advisor


Specific:


1. Adding a Maximum Spread parameter, which will only open a new position when the spread on a currency is between 0 and the Maximum Spread. Is the spread over the Maximum spread, no trade will open.


2. Adding what type of order it can open, there are 3 choices. Open only buy position or sell position or buy and sell position. Currently the strategies in the .mq4 file can open both sell and buy position when the strategy is met. But what i want to add is a limit, example: one day i want the portifolio ea only to open buy position, it only opens buy position, if a strategy is met but if it's a sell it will ignore this. If another day i put the EA settings to only to open sell position, it will only open sell position, and no buy position will open before i change it either to: "Only open buy position" or "Buy and sell position"


3. Adding time restriction on a new open trade, example: after 50 seconds a trade is open, it closes, 


Thanks  :-)

Responded

1
Developer 1
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
217
15%
Free
Published: 1 code
2
Developer 2
Rating
(636)
Projects
1007
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Working
Published: 6 codes
3
Developer 3
Rating
(349)
Projects
463
51%
Arbitration
41
24% / 49%
Overdue
149
32%
Free
4
Developer 4
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
5
Developer 5
Rating
(4)
Projects
4
0%
Arbitration
5
0% / 80%
Overdue
1
25%
Free
6
Developer 6
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
7
Developer 7
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
Published: 8 codes
8
Developer 8
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
9
Developer 9
Rating
(279)
Projects
341
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
10
Developer 10
Rating
(165)
Projects
260
62%
Arbitration
4
50% / 25%
Overdue
10
4%
Working
11
Developer 11
Rating
(114)
Projects
154
47%
Arbitration
2
0% / 50%
Overdue
4
3%
Free
12
Developer 12
Rating
(82)
Projects
86
57%
Arbitration
25
0% / 84%
Overdue
19
22%
Free
Similar orders
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0

Project information

Budget
30+ USD