Convert Pine Script to MT5 EA and add some features

MQL5 Experts Conversão

Termos de Referência

Convert the below code to an MT5 EA: 


//@version=4

strategy("Volty Expan Close Strategy", overlay=true)

length = input(11)

numATRs = input(0.55)


atrs = sma(tr, length)*numATRs


if (not na(close[length]))

    strategy.entry("VltClsLE", strategy.long, stop=close+atrs, comment = "VltClsLE")

    strategy.entry("VltClsSE", strategy.short, stop=close-atrs, comment = "VltClsSE")


//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)


And add some additional features:

  • Stop Loss,
  • Trailing Stop (with trailing start, trailing distance, and trailing step)
  • option to close on opposite signal, true or false
  • If the strategy is in a buy signal, once the initial buy trade closes, place a buy stop order X points (the Offset) above the current price. The Offset amount should be an input parameter
    • The buy stop order should follow the market price. So let's say the first buy trade closes at 5500.00. If the Offset is set to 200 points, a new buy stop order is placed at 5502.00. but if the price falls to 5499.00, the buy stop order should move down to 5501.00. but it should never move back up. Apply the same logic to the sell side.
  • There should only be one trade open per direction at any time. but a buy and sell trade can exist simultaneously (if close on opposite signal is set to false), if a sell signal is triggered while a buy trade is still open, and vice versa.
  • Essentially, i am asking you to recreate an already existing EA (.ex4 file only, no source file) which i will send to you in a private discussion, but have it only enter buy trades when the above Pine Script strategy is in a buy signal, and only enter sell trades when it is in a sell signal. It basically just needs to be modified so that it determines buy/sells according to the above strategy, instead of its existing strategy, which tends to always be trading against the trend.




Respondido

1
Desenvolvedor 1
Classificação
(1)
Projetos
0
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
Projetos
1
0%
Arbitragem
1
0% / 0%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(206)
Projetos
333
35%
Arbitragem
66
12% / 58%
Expirado
87
26%
Livre
5
Desenvolvedor 5
Classificação
(2)
Projetos
3
0%
Arbitragem
1
0% / 100%
Expirado
0
Trabalhando
6
Desenvolvedor 6
Classificação
(1)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
Publicou: 2 códigos
7
Desenvolvedor 7
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(845)
Projetos
1447
72%
Arbitragem
119
29% / 47%
Expirado
355
25%
Trabalhando
Publicou: 3 artigos
9
Desenvolvedor 9
Classificação
(27)
Projetos
38
24%
Arbitragem
14
0% / 93%
Expirado
4
11%
Trabalhando
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(337)
Projetos
624
38%
Arbitragem
40
23% / 65%
Expirado
93
15%
Livre
Publicou: 4 artigos, 19 códigos
14
Desenvolvedor 14
Classificação
(120)
Projetos
128
36%
Arbitragem
3
33% / 33%
Expirado
2
2%
Carregado
15
Desenvolvedor 15
Classificação
(275)
Projetos
370
72%
Arbitragem
18
33% / 44%
Expirado
14
4%
Livre
Publicou: 14 códigos
16
Desenvolvedor 16
Classificação
(15)
Projetos
21
38%
Arbitragem
6
33% / 50%
Expirado
0
Trabalhando
17
Desenvolvedor 17
Classificação
(10)
Projetos
10
10%
Arbitragem
0
Expirado
2
20%
Trabalhando
18
Desenvolvedor 18
Classificação
(1)
Projetos
2
0%
Arbitragem
2
0% / 0%
Expirado
0
Carregado
19
Desenvolvedor 19
Classificação
(27)
Projetos
26
65%
Arbitragem
0
Expirado
1
4%
Carregado
Publicou: 5 códigos
20
Desenvolvedor 20
Classificação
(1)
Projetos
2
0%
Arbitragem
0
Expirado
1
50%
Livre
21
Desenvolvedor 21
Classificação
(14)
Projetos
14
21%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(294)
Projetos
470
39%
Arbitragem
102
40% / 24%
Expirado
78
17%
Ocupado
Publicou: 2 códigos
Pedidos semelhantes
For a buy case, ea will set buy stop order at the high of the current 4H candle, if the close of the current 4h candle is higher than the open and if the close is less than the high of the 4H candle , then ea will set a buy stop at the high of the current 4h candle. Reverse of this is the sell case. , - -- sell SL to 1800point for gold pair only, set 4500 point for TP, --- , BE the SL to 50points when price moved
I need a fully-automated Expert Advisor coded in MQL5 for MetaTrader 5 that follows market trends using ICT and Smart Money Concepts. The logic will rely on elements such as market structure shifts, order blocks, liquidity grabs and fair-value gaps rather than standard indicators like Moving Averages or RSI. I will share my exact entry, exit and filtering rules once we start, but please be comfortable translating
I need an Expert Advisor based on AOX signals. It must have check and handling of trade operations errors. The main criteria for opening and closing a position: moving average direction the price is higher than the previous bar. Trade lots is an input parameter
EA fix 30 - 60 USD
Current behavior: • The EA opens an initial position (Buy or Sell) with SL and TP. • If price goes against it (10/20/30 pips), opposite positions are opened (hedging). • Only the first position has SL and TP. • When the first position hits SL or TP, all positions are closed at once. • Because of gold slippage and execution delay, this sometimes causes 10–20 pips extra loss. What I need: 1. Every opened position
//+------------------------------------------------------------------+ //| INDICES SCALPING BOT | //+------------------------------------------------------------------+ #property strict input double RiskPercent = 4.0; input int EMAtrend = 50; input int EMAPullback = 20; input int RSIPeriod = 14; input double ATRMultiplierSL = 3.0; input double ATRMultiplierTP = 2.5; double LotSize(double
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and have a low drawdown. The developer will send a demo EA which I can test for myself. I am looking for more of a partnership with an experienced developer. Please no EA on demo accounts. The EA must be verifiable on real account
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and be verifiable on real account and have a low drawdown. The developer will send a demo of the EA which I can test for myself. I am looking for more of an experienced developer. Please no EA on demo account
📌 Development Request – AI Precision Enhancement I would like to clarify my request clearly and precisely. The current trading strategy is strong, stable, and effective , and I do not want to modify or replace the core strategy logic in any way . The goal is only to enhance entry and exit precision , not to redesign the system. ✅ Scope of Work (Required) Please keep the existing strategy exactly as it is , and add
Are you looking for a professional and reliable MT5 Trading Bot (Expert Advisor)? I will develop a custom MT5 EMA Crossover EA based on a proven scalping strategy. 🚀 Strategy Features: ✔ 5 EMA & 9 EMA crossover entries ✔ Buy Stop / Sell Stop pending orders ✔ Fixed lot size (0.01 – no martingale) ✔ Configurable stop loss & entry distance ✔ Pending orders auto-expire after 10 seconds ✔ Works on M1 timeframe ✔ Clean
Hi, I’m looking for someone with real Build Alpha experience to help set up an index-trading ruleset inside Build Alpha. Important: This work cannot be done without full access to Build Alpha . You must already own a Build Alpha licence and actively use the platform. Please do not apply if you do not currently have Build Alpha. What needs to be set up in Build Alpha 1. Session and Time Rules • Fixed GMT trading

Informações sobre o projeto

Orçamento
30+ USD