Translate indicator from a simple Pine script to MT4 + EA

2020.03.26 Indikatoren Experten

Spezifikation

Hello, I have an indicator written using Pine Script editor for the TradingView website, from which I'd like to have 2 outputs:
1. a parallel version in MQL4 so i can use it on MT4 (or if not possible in MQL5 for MT5);
2. an EA which opens and closes positions (buy and sell) based on the indications given by the indicator aforementioned.

The Pine script is very easy, 16 lines of code in total.

In the EA I'd like to be able to customize the following values:
A. tick interval (30m, 1h, 4h, ..)
B. lot size
C. symbol/pair currency
D. stop loss
E. few others internal variables

Plus, in the EA I'd like to have the following features:
F. if, when attached to the graph, the conditions are already met then it doesn't have to open a position but wait until the next one
G. send email both when it opens and closes a position
H. ability to close the position manually, when this happens the EA has to understand the position has been closed manually and doesn't have to open again a new position (even if the conditions are still met) for a set amount of time (amount of time which I'd like to be able to customize) or until the conditions change. If I'll close manually tehn I don't have to re-attach the EA to the graph to make it work again.
I. check all opening/closing signals are actually executed
L. the stop loss can be set or not
 
I'll require the original code, which I would prefer with comments in it, so that I can understand, thanks.

Bewerbungen

1
Entwickler 1
2020.03.26
Bewertung
4.87
(197)
Projekte
281
36%
Schlichtung
66
11% / 64%
Frist nicht eingehalten
82
29%
Beschäftigt
2
Entwickler 2
2020.03.27
Bewertung
4.83
(379)
Projekte
676
49%
Schlichtung
219
55% / 27%
Frist nicht eingehalten
139
21%
Beschäftigt
3
Entwickler 3
2020.03.27
Bewertung
4.8
(97)
Projekte
211
36%
Schlichtung
52
10% / 69%
Frist nicht eingehalten
82
39%
Überlastet
4
Entwickler 4
2020.04.01
Bewertung
4.99
(746)
Projekte
1218
58%
Schlichtung
10
70% / 0%
Frist nicht eingehalten
93
8%
Frei

Projektdetails

Budget
50+ USD
Für die Entwickler
45 USD
Ausführungsfristen
bis 3 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0