Convert Pinescript into MT5 EA

MQL5 Experts Convertir

Tâche terminée

Temps d'exécution 3 jours

Spécifications

I need a pinescript to be accurately be converted into an MT5 EA.

Requirements:

It needs to include all the same options as the pinescript strategy.

The EA must include basic features:

Trading start hour and limits

Lot size

Auto lot based on capital

Max spread

Can be used on following symbols, US30, DAX, AUD/USD


A reverse version too, where it does the opposite, e.g a second version where it goes short on long signal and the other way around.

Full Code + Commercial Rights


Script:

strategy(title="HIGHER HIGH LOWER LOW STRATEGY", shorttitle="HH LL STRATEGY", overlay=true, calc_on_order_fills=true, initial_capital=100000, default_qty_type=strategy.percent_of_equity, currency="USD", default_qty_value=100)


////


//Higher High or Lower Low Entry Inputs
price = input(close)
LookBack = input(1)
Highest = highest(LookBack)
Lowest = lowest(LookBack)

long = price > Highest[1] 
short = price < Lowest[1]




//Safety Confirmation Inputs - Helps to thin out false breakouts or break downs
length = input(10)
High_Guard = highest(length)
Low_Guard = lowest(length)
length2 = input(1)

long1 = long == 1 and Highest[1] > High_Guard[length2]
short1 = short == 1 and Lowest[1] < Low_Guard[length2]


strategy.entry("Long", strategy.long, when=long1)
strategy.entry("Short", strategy.short, when=short1)

Répondu

1
Développeur 1
Évaluation
(137)
Projets
167
35%
Arbitrage
11
91% / 0%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(852)
Projets
1470
72%
Arbitrage
122
29% / 48%
En retard
361
25%
Gratuit
Publié : 3 articles

Informations sur le projet

Budget
100+ USD
Délais
à 5 jour(s)