Convert Pinescript into MT5 EA

MQL5 Experts Conversão

Trabalho concluído

Tempo de execução 3 dias

Termos de Referência

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)

Arquivos anexados:

PNG
length.png
18.5 Kb

Respondido

1
Desenvolvedor 1
Classificação
(137)
Projetos
167
35%
Arbitragem
11
91% / 0%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(852)
Projetos
1470
72%
Arbitragem
122
29% / 48%
Expirado
361
25%
Livre
Publicou: 3 artigos

Informações sobre o projeto

Orçamento
100+ USD
Prazo
para 5 dias