Convert Pine Script to MT5 EA and add some features

MQL5 Experten Konvertierung

Spezifikation

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.




Bewerbungen

1
Entwickler 1
Bewertung
(1)
Projekte
0
0%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
Projekte
1
0%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(206)
Projekte
333
35%
Schlichtung
66
12% / 58%
Frist nicht eingehalten
87
26%
Frei
5
Entwickler 5
Bewertung
(2)
Projekte
3
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Arbeitet
6
Entwickler 6
Bewertung
(1)
Projekte
2
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
7
Entwickler 7
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
8
Entwickler 8
Bewertung
(845)
Projekte
1447
72%
Schlichtung
119
29% / 47%
Frist nicht eingehalten
355
25%
Arbeitet
Veröffentlicht: 3 Artikel
9
Entwickler 9
Bewertung
(27)
Projekte
38
24%
Schlichtung
14
0% / 93%
Frist nicht eingehalten
4
11%
Arbeitet
10
Entwickler 10
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
11
Entwickler 11
Bewertung
Projekte
0
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
13
Entwickler 13
Bewertung
(337)
Projekte
624
38%
Schlichtung
40
23% / 65%
Frist nicht eingehalten
93
15%
Frei
Veröffentlicht: 4 Artikel, 19 Beispiele
14
Entwickler 14
Bewertung
(120)
Projekte
128
36%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
2
2%
Beschäftigt
15
Entwickler 15
Bewertung
(275)
Projekte
370
72%
Schlichtung
18
33% / 44%
Frist nicht eingehalten
14
4%
Frei
Veröffentlicht: 14 Beispiele
16
Entwickler 16
Bewertung
(15)
Projekte
21
38%
Schlichtung
6
33% / 50%
Frist nicht eingehalten
0
Arbeitet
17
Entwickler 17
Bewertung
(10)
Projekte
10
10%
Schlichtung
0
Frist nicht eingehalten
2
20%
Arbeitet
18
Entwickler 18
Bewertung
(1)
Projekte
2
0%
Schlichtung
2
0% / 0%
Frist nicht eingehalten
0
Beschäftigt
19
Entwickler 19
Bewertung
(27)
Projekte
26
65%
Schlichtung
0
Frist nicht eingehalten
1
4%
Beschäftigt
Veröffentlicht: 5 Beispiele
20
Entwickler 20
Bewertung
(1)
Projekte
2
0%
Schlichtung
0
Frist nicht eingehalten
1
50%
Frei
21
Entwickler 21
Bewertung
(14)
Projekte
14
21%
Schlichtung
0
Frist nicht eingehalten
0
Frei
22
Entwickler 22
Bewertung
(294)
Projekte
470
39%
Schlichtung
102
40% / 24%
Frist nicht eingehalten
78
17%
Überlastet
Veröffentlicht: 2 Beispiele
Ähnliche Aufträge
//+------------------------------------------------------------------+ //| 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
Fix and optimize an existing Bybit trading bot so the profit target closes and reopens trades continuously (accumulation cycle) , while the withdrawal threshold pauses the bot, converts funds, withdraws profit, resets accumulation, and resumes trading . Current issue: the bot stops after hitting profit , which must be corrected. Demo video required after completion
Fix and optimize an existing Bybit trading bot so the profit target closes and reopens trades continuously (accumulation cycle) , while the withdrawal threshold pauses the bot, converts funds, withdraws profit, resets accumulation, and resumes trading . Current issue: the bot stops after hitting profit , which must be corrected. Demo video required after completion
We're looking for a highly motivated and detail-oriented individual to fill a key position in our team. The successful candidate will be responsible for driving projects forward, analyzing complex data, and collaborating with cross-functional teams to achieve business objectives. The role requires exceptional problem-solving skills, effective communication, and adaptability in a fast-paced environment. If you're a
EA DEVELOPMENT 50+ USD
Hello, I’m interested in developing an Expert Advisor (EA). I will send you the details and examples of the type of EA I need. Please log in and review them so you can understand my requirements

Projektdetails

Budget
30+ USD

Kunde

(2)
Veröffentlichte Aufträge9
Anzahl der Schlichtungen0