Техническое задание
I have a pinescript which I want to convert to an EA. The following code need to be written in MQL5 (or MQL4).
Does someone have experience with translating pinescript to MQL scripting?
This is the following code:
trategy("Trend analysis", overlay = true)
prd = input(defval = 20, title="Trend analyse", minval = 1, maxval = 50)
Factor=input(defval = 3, title = "ATR Factor", minval = 1, step = 0.1)
Pd=input(defval = 30, title = "ATR Period", minval=1)
minrateu = input(defval = 1.0, title="Min profit Rate if Center Line Used", minval = 0)
usecenter = input(defval = false, title="Use Center Line to Close Entry for 50%")
showpivot = input(defval = false, title="Show Pivot Points")
showcl = input(defval = false, title="Show PP Center Line")
onlylong = input(defval = false, title="Enter Only Long Position")
float minrate = minrateu / 100
float ph = na
float pl = na
ph := pivothigh(prd, prd)
pl := pivotlow(prd, prd)
plotshape(ph and showpivot, text="H", style=shape.labeldown, color=na, textcolor=color.red, location=location.abovebar, offset = -prd)
plotshape(pl and showpivot, text="L", style=shape.labeldown, color=na, textcolor=color.lime, location=location.belowbar, offset = -prd)
float center = na
center := center[1]
float lastpp = ph ? ph : pl ? pl : na
if lastpp
if na(center)
center := lastpp
else
center := (center * 3 + lastpp) / 4
Up = center - (Factor * atr(Pd))
Dn = center + (Factor * atr(Pd))
float TUp = na
float TDown = na
Trend = 10
TUp := close[1] > TUp[1] ? max(Up, TUp[1]) : Up
TDown := close[1] < TDown[1] ? min(Dn, TDown[1]) : Dn
Trend := close > TDown[1] ? 1: close < TUp[1]? -1: nz(Trend[1], 1)
Trailingsl = Trend == 1 ? TUp : TDown
linecolor = Trend == 1 and nz(Trend[1]) == 1 ? color.lime : Trend == -1 and nz(Trend[1]) == -1 ? color.red : na
plot(Trailingsl, color = linecolor , linewidth = 2, title = "PP SuperTrend")
plot(showcl ? center : na, color = showcl ? center < hl2 ? color.blue : color.red : na)
ssignal = Trend == 1 and Trend[1] == -1
bsignal = Trend == -1 and Trend[1] == 1
halfexited = false
halfexited := nz(halfexited[1], false)
if change(Trend)
strategy.close_all()
if bsignal
strategy.entry("Buy", true, comment = "Buy")
if ssignal and not onlylong
strategy.entry("Sell", false, comment = "Sell")
Откликнулись
1
Оценка
Проекты
50
42%
Арбитраж
3
33%
/
33%
Просрочено
4
8%
Свободен
2
Оценка
Проекты
945
47%
Арбитраж
303
59%
/
25%
Просрочено
125
13%
Работает
3
Оценка
Проекты
228
80%
Арбитраж
19
32%
/
42%
Просрочено
11
5%
Свободен
Опубликовал: 24 статьи, 1882 примера
4
Оценка
Проекты
6
17%
Арбитраж
1
0%
/
100%
Просрочено
1
17%
Свободен
5
Оценка
Проекты
178
39%
Арбитраж
4
25%
/
50%
Просрочено
14
8%
Свободен
6
Оценка
Проекты
6
0%
Арбитраж
0
Просрочено
0
Свободен
7
Оценка
Проекты
4
0%
Арбитраж
0
Просрочено
0
Свободен
8
Оценка
Проекты
499
67%
Арбитраж
5
40%
/
0%
Просрочено
4
1%
Свободен
Опубликовал: 8 примеров
Похожие заказы
Hello 👋 I want to build three bots that work in different ways. I am excited to share this experience with you. I want to finish the first bot first, then we move on to the second bot, and so on. First, about the first bot, I want it this way. I want it to be a member of a public channel on Telegram (but this channel prevents copying messages; I mean, when you long-press a message, you can't copy it). I searched
We need a skilled MT5 developer to build a fully automated Expert Advisor optimized for XAUUSD with low to medium risk and a strict maximum drawdown of 10 percent. Account sizes 20K to 50K USD, including prop firm accounts. Requirements • Full MQ5 source code with clear comments • Commercial usage rights for our company • Strategy: trend or breakout, strict SL and TP on every trade, no martingale, no unlimited grid •
Hi! I’m looking for an experienced ThinkorSwim/ThinkScript developer to implement it exactly as specified. Please read the requirements below carefully and reply with: (1) a fixed-price quote, (2) earliest start date and ETA, (3) a short summary of similar ThinkScript work you’ve done (links or screenshots if available), and (4) any questions or clarifications. Project summary Create a ThinkorSwim (ThinkScript)
I'm Looking for a competent, professional and experienced MQ5 Coder who has a professional Forex Trader Mindset (Not just a programmer) who can review the strategy, logic and structure in detail and then accordingly review the code and make the strategy more robust by implementing further layers or robustness to make it fully functional. If you can optimize it for various forex pairs, indices, crypto and commodities
Convert an MQL5 script to MQL4. The code uses the ALGLIB library. Please ensure the converted MQL4 version produces consistent results with the original MQL5 program. The MQL5 script is attached
I want to hire a professional MQL5 developer to build an automated Expert Advisor (EA) for MetaTrader 5 that trades using Institutional Order Blocks (OB) logic combined with BOS (Break of Structure) and ChoCH (Change of Character) confirmations. The EA should identify valid order blocks (“Boss” phase) and execute precise trades (“Charge” phase) with full risk and trade management. The idea is based on the “Smart
TRADELOCKER BOT SIMPLE, NOT MT5!
35+ USD
Tradelocker bot required. *Entry into buying is when, after a minimum of 3 consecutive red candles, the first next one forms an engulfing candle, entry is when engulfing candle closes. *Stop loss at the lowest point of that eng.candle *Take profit RR *Lot size in percentage *need to have working time example 06:00 until 12:00 *The engolfing candle must be same signals like on tradingview, also visible on chart
Hi All, I want to create an Expert Advisor that will be based on specific timing to activate bids and also use positions for the period to take bids. The timing for the bids will have variables as daily, weekly or monthly. A daily means EA will activate everyday after considering prices from the time the market opens to the time specified. Eg if the time specified is 2am, the EA will consider all prices from the
DE40 / US30 MT5 EA
30+ USD
Hi Developers, I would like to order the following EA US30 / DE40 Price action Pending orders including buy and sell stop Ultra micro scalper High frequence Fixed TP & SL Trailing Step / Stop Loss / Start Spread filter Session filter Please check as well the attachment, I would like to have a equal behaviour. Many thanks and best regards, Dominik
Band contradictor
30+ USD
I have a proven strategy and a complete, step by step pseudocode blueprint for an ea that scans for Bollinger Band contradictions. I am not a programmer, but I have mapped out the logic. My goal is to build this to create a life-changingopportunity for my family and a dear friends family. I am cash strapped but can offer a small bounty for the programmer who can accurately translate this blueprint into a working .mq5
Информация о проекте
Бюджет
30+ USD
VAT (21%):
6.3
USD
Итого:
36.3
USD
Исполнителю
27
USD