Convert Pinescript into MT5 EA

MQL5 专家 转化中

工作已完成

执行时间3 天

指定

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)

附加的文件:

PNG
length.png
18.5 Kb

反馈

1
开发者 1
等级
(137)
项目
167
35%
仲裁
11
91% / 0%
逾期
0
空闲
2
开发者 2
等级
(852)
项目
1470
72%
仲裁
122
29% / 48%
逾期
361
25%
空闲
发布者: 3 文章

项目信息

预算
100+ USD
截止日期
到 5 天