Add 2 Stop Loss Features to an existing well running EA

MQL4 Experts

Trabalho concluído

Tempo de execução 8 dias
Comentário do desenvolvedor
Very understanding and supportive client. very nice to talk to . Very clear requirements and explanations. I would definitely like to work with him again and again.
Comentário do cliente
Fine developer. Finished in time

Termos de Referência

Add 2 Stop Loss Features to an existing well running EA


At the moment thats situation:

My ZIGZAG EA trades Breaktous of the ZIGZAG signals

Buys if price breaks High of last ZIGZAG leg and

Sell short if price breaks Low of last ZIGZAG leg.

Its a Stopp and Reverse EA, that means the EA takes SL (Variable in EA is „sl“)

at the opposite site of the Ordersite in the EA and is ALWAYS IN THE MARKET


f.e.


Breaks HIGH of ZIGZAG leg is BUY and same time EA sets his „sl“ at the LOW

of the ZIGZAG leg.


If Low of ZIGZAG leg is broken EA close the BUY Order and Open a SELL Order.

The EA which is running without problems is to add with these

functions:


1. TO add : HARD StopLoss independend of the SL which is at the moment used

as Variable „sl“ in the EA

These HARD StopLoss is to be set at the open of each trade

for BUY Orders xx.xx PERCENT of price below the OPENORDERPRICE and

for SELL Orders xx.xx PERCENT above the OPENORDERPRICE


not PIPS or Points cause i want that to use for all instruments


Thats to avoid to big Losses.


These HARD StopLoss muss „override“ the „sl“ Variable which is uses at the moment

if the price goes below these „HARD StopLoss“ in BUY or goes above these „HARD StopLoss“

in SELL orders.



The EA stored the datas of the ZIGZAG Last High, Last Low, and the actual High or Low

in an ARRAY.

The Datas of these Array are shown in the chart at left side corner



TO add: a DATA which counts the mathematicall difference between last ZIGZAG LEG AND

THE ZIGZAG LEG BEFORE:


I HAVE MARKED THAT IN THE CHART AS P 1 and P 2


This data (double) should shows these difference in the chart and fill it in a

Variable


So the data from these Variable should be stored in a Variable , (let say VAR_1)



These VAR_1 should be as extern Variable to have them in the EA



Also to Open a Trade this VAR_1 must have a Value = < XY (VAR_2)


And these Value XY (VAR_2) should adjustable in the EA


Now the function:


IF these VAR_1 (Difference between High and :Low of the last ZIGZAG Legs)


Level > Value VAR_2 (is above) a Level of VAR_2 which should

be setable in the EA , the EA should not open any trade.



This is to limit the risk of each trade by market condition


NO CHANGE IN THE OPEN ORDER Management






Added Picture  (EA_Order_2)


Here an example for a Buy Trade at 23:00


P 1 and P 2


P1 is Low and the „normal sl“ the EA uses


P2 is High and Open Order the EA uses



IMPORTANT.

1) I need the mql4 file as well 

2) The EA is my copyright - not allowed to publish it without my okay 

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(390)
Projetos
416
30%
Arbitragem
74
19% / 72%
Expirado
52
13%
Trabalhando
2
Desenvolvedor 2
Classificação
(5)
Projetos
6
67%
Arbitragem
2
0% / 50%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(71)
Projetos
103
20%
Arbitragem
6
0% / 83%
Expirado
3
3%
Livre
4
Desenvolvedor 4
Classificação
(219)
Projetos
370
42%
Arbitragem
145
17% / 41%
Expirado
124
34%
Livre
Publicou: 38 códigos
Pedidos semelhantes
REQUIREMENTS SPECIFICATION FOR MT5 EXPERT ADVISOR - NAS100 1. GENERAL INFORMATION 1.1 Platform: MetaTrader 5 1.2 Symbol: Nas100 1.3 Timeframe: M5 1.4 Account Type: Hedge 1.5 Broker: Must work on Khwezi Trade / ATFX broker 2. ENTRY RULES - ALL 3 MUST ALIGN ON CLOSED CANDLE 2.1 Trend: Price above 50 EMA for Buy, below 50 EMA for Sell 2.2 Momentum: RSI(14) > 50 for Buy, < 50 for Sell 2.3 Confirmation: MACD line above
Hi i need an expert to built a automated trading bot for ninja trader platform like sniper auto trader bot If you can develop or build automated bot for ninjatrader, let me know
Hello programmers. I am looking and searching for Chrome extension that automates parameter optimization for TradingView strategies, not''TradingView Premium'' itself. Can you please get back to me? do you know the chrome extension. I am looking for someone with a premium account so I can optimize some pinescript with it
I’m looking for a developer (or AI-savvy builder) who is experienced in using tools like Claude.ai (e.g. Claude Code, Claude CoWork) to build a Forex-related website. The platform will include features such as: Tracking trading account performance Broker reviews and comparisons This is just a high-level overview — the main goal is to find someone who truly understands how to leverage AI tools and write effective
Hello, I’m reaching out regarding my TradingView project. I’d like to know if you’re familiar with the Chrome extension for Pine Script optimization. I’m looking for a developer with a premium account who can help optimize some Pine Script code. Please let me know if this is something you can assist with
Hello every developer here, I'm contacting you regarding my tradingview. Can you please get back to me? do you know the chrome extension. I am looking for someone with a premium account so I can optimize some pinescript with it
Hi, I am looking to purchase a MT5 Hedging EA that can show consistent profitability with drawdown less than 15%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested Hedging EA that can sell to me together with the source code. Before i make the
I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl

Informações sobre o projeto

Orçamento
30+ USD
Prazo
de 1 para 5 dias