I WANT TO FIX THE PROBLEM MY EA HAS

MQL4 Experts

Trabalho concluído

Tempo de execução 2 horas
Comentário do cliente
He is very good at his job, excellent job, excellent programmer.
Comentário do desenvolvedor
Good customer. With you a pleasure to deal.

Termos de Referência

Help me fix the problem of my EA, it changes its SL or TP from the fixed value in pip i set for it to use, example, in the ea settings if i use 6pips for SL and 50pips for TP, and it wants to place a sell stop or buy stop order, on placing the order or on executing the sell stop or buy stop order it does change the SL to be equal to the TP... and this mistake happens almost very frequently which affects my trades setup, so i would have assumed it will stop out 6pips but unfortunately it will close 50pips negative instead of 6pips. 

SUGGESTION: There is this area of the mql4 code that says....

//======================= Program initialization ===========================================================

int OnInit()
  {
   int stoplevel;

   ArrayInitialize(array_spread, 0);
VolatilityLimit = VolatilityLimit * Point;
   Scalpfactor = Scalpfactor * 10 * Point / 3; 
   brokerdigits = Digits;
   pipette = Point; 
   
   stoplevel = MathMax(MarketInfo(Symbol(), MODE_FREEZELEVEL), MarketInfo(Symbol(), MODE_STOPLEVEL));
if (TakeProfit < stoplevel)
TakeProfit = stoplevel;
if (StopLoss < stoplevel)
StopLoss = stoplevel;
if (distance < stoplevel)
distance = stoplevel;
   
if (MathMod(Digits, 2) == 0) 
slippage = 0;
   else 
globalerror = -1;
   
   OnTick();
   return(INIT_SUCCEEDED);
  }

May be my suggestion might lead you on the right part faster....!

the EA is attached in this mail. and a picture description!

Thanks

Oyetola.

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(1156)
Projetos
1462
63%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
2
Desenvolvedor 2
Classificação
(221)
Projetos
412
61%
Arbitragem
13
38% / 23%
Expirado
163
40%
Livre
Publicou: 51 artigos, 1 código
3
Desenvolvedor 3
Classificação
(27)
Projetos
36
19%
Arbitragem
14
21% / 71%
Expirado
12
33%
Livre
Publicou: 1 código
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
5
Desenvolvedor 5
Classificação
(49)
Projetos
134
27%
Arbitragem
62
13% / 53%
Expirado
58
43%
Livre
Publicou: 347 artigos, 1 código
6
Desenvolvedor 6
Classificação
(29)
Projetos
49
22%
Arbitragem
14
29% / 21%
Expirado
13
27%
Livre
Pedidos semelhantes
Hi, I’m looking for an experienced MQL5/MT5 developer to build a complex AI-powered adaptive Expert Advisor for XAUUSD+ on Ultima Markets. I have a detailed 28-section technical specification, and the requirements are fixed. I’m looking for the complete implementation , not a simplified EA or a conventional indicator-based system. The project includes: Genuine AI/ML integration AI-based market regime classification
This may be a weird request but if anyone has an EA that is actually consistently profitable I want to buy a copy from you. Ideally trades a lot, I'm sure theres a coder out there who has made a profitable EA, I want to backtest if you have, I have been trying to code a few on my own with no success as I'm not yet good at coding, lets see what ya got.thanks
I need a simple MetaTrader 5 Expert Advisor based on a MACD crossover. Requirements: Platform: MetaTrader 5 / MQL5 Buy when the MACD main line crosses above the signal line Sell when the MACD main line crosses below the signal line Use completed candles only MACD parameters configurable Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Configurable Magic
I need a simple MT5 Expert Advisor based on Bollinger Bands. Requirements: Platform: MetaTrader 5 / MQL5 Buy when price closes below the lower Bollinger Band Sell when price closes above the upper Bollinger Band Bollinger period configurable, default 20 Deviation configurable, default 2.0 Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Use completed
Platform: MT5 / MQL5 Buy khi RSI < 30 Sell khi RSI > 70 RSI period configurable, default 14 Fixed lot configurable SL/TP configurable Max 1 position per symbol Completed candles only Configurable Magic Number Deliver .mq5 source Compile without errors/warnings No martingale/grid No profitability guarantee
Trading bot ea 30+ USD
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on mgl5 And if you know you can not do the project without getting paid first please don't bid thanks
MT5 EA make work on zone break and candle confirm. Hi i need one expert person who can make exact what i want. My EA logic very simple.... few hrs market high and low make line then candle body close above or low then candle confirmation then pullback then entry RR1:2 no trail nothing,,,,, the line high low create after few hrs of the day i wll tell you later,,,,then 1hrs no trade if break then no trade for the
Hi, I need an Expert Advisor (EA) for MetaTrader 5, for my IC Markets account. Account MT5, hedging account, type: [Raw Spread / Standard: fill in] Deposit: 100 USD, leverage 1:30, account currency: [USD / EUR: fill in] Instruments Forex (major pairs) and gold (XAUUSD) Strategy and parameters may differ per instrument; each instrument must be tested and optimized separately If an instrument cannot be traded safely
المطلوب موشر لتداول الذهب مجرب وقوية يعطي اشاره قوية فقط مع وقف خساره ومختبر ومجرب في حال الموافقه علي لموشر بعد التجربه لمدة ٣ ايام يتم الشراء دايم مبلغ ٢٠٠ دولار
Hi there I need someone who will create an ea then test it .. the ea should only place order on the bid price of it breakout in 1 point using invisible buy and invisible sell,, example if bid breakout in 1 point up automatically invisible buy active then invisible stop loss at where the ask price was same in sell If the bid breakout in 1 point down automatically invisible sell active then invisible stop loss where

Informações sobre o projeto

Orçamento
10 - 20 USD
Prazo
de 1 para 2 dias