Converting Pine script (Tradingview) into MT5 indicator

MQL5 Indikatoren Skripte Forex

Auftrag beendet

Ausführungszeit 4 Minuten
Bewertung des Kunden
Good person
Bewertung des Entwicklers
Thank you

Spezifikation

study("MT", overlay=true)

ma_1 = input(title="ma_1", type=input.integer, defval=28, minval=1)
ma_2 = input(title="ma_2", type=input.integer, defval=144, minval=1)
method = input(title="method", type=input.integer, defval=3, minval=0, maxval=3)
_price = input(title="price", type=input.integer, defval=0, minval=0, maxval=6)
signal = input(title="signal", type=input.integer, defval=14, minval=1)
s_method = input(title="s_method", type=input.integer, defval=0, minval=0, maxval=3)
signal2 = input(title="signal2", type=input.integer, defval=70, minval=1)
s_method2 = input(title="s_method2", type=input.integer, defval=0, minval=0, maxval=3)

price = 0.0

GetMA(_src,_period,_method) =>
    var _value = 0.0
    if method==0
        _value := sma(_src,_period)
    if method==1
        _value := ema(_src,_period)
    if method==2
        _value := rma(_src,_period)
    if method==3
        _value := wma(_src,_period)
    _value
if(_price==0)
    price := close

if(_price==1)
    price := open

if(_price==2)
    price := high

if(_price==3)
    price := low

if(_price==4)
    price := (high+low)/2.0

if(_price==5)
    price := (close+high+low)/3.0

if(_price==6)
    price := (2.0*close+high+low)/4.0

dgts_2f(n) =>
    c=0
    d=0.0
    d:=abs(n)
    d:=d-floor(d)
    for i=0 to 42
        if ( d==0 )
            break
        d:=d*10
        d:=d-floor(round(d))
        c:=c+1
   

ExtMapBuffer1 = GetMA(price,ma_1,method)
ExtMapBuffer2 = GetMA(price,ma_2,method)
MACD_Map = ExtMapBuffer1 - ExtMapBuffer2
SignalMap = GetMA(MACD_Map, signal, s_method)
SignalMap2 = GetMA(MACD_Map, signal2, s_method2)
SignalLine = ExtMapBuffer2 + SignalMap
SignalLine2 = ExtMapBuffer2 + SignalMap2

plot(SignalLine, title="SignalLine", color=color.yellow, linewidth=2, style=plot.style_line, transp=00, offset=0, trackprice=false)
plot(SignalLine2, title="SignalLine2", color=color.aqua, linewidth=2, style=plot.style_line, transp=00, offset=0, trackprice=false)

Ext1 = plot(ExtMapBuffer1, title="ExtMapBuffer1", color=color.blue, linewidth=1, style=plot.style_line, transp=00, offset=0, trackprice=false)
Ext2 = plot(ExtMapBuffer2, title="ExtMapBuffer2", color=color.maroon, linewidth=1, style=plot.style_line, transp=00, offset=0, trackprice=false)

is_call = crossover(SignalLine, SignalLine2) and SignalLine < ExtMapBuffer1 and SignalLine < ExtMapBuffer2 and ExtMapBuffer1 < ExtMapBuffer2
is_put = crossover(SignalLine2, SignalLine)  and SignalLine > ExtMapBuffer1 and SignalLine > ExtMapBuffer2 and ExtMapBuffer1 > ExtMapBuffer2

PipValue = pow(10, -1 * abs(log(syminfo.mintick) / log(10)))
if abs(log(syminfo.mintick) / log(10)) == 3
    PipValue := 0.01
else
    PipValue := 0.0001
if is_call
    diff = (ExtMapBuffer2 - ExtMapBuffer1) / PipValue
    label.new(bar_index, na, text=tostring(round(diff, 2)), color=color.lime, style=label.style_labeldown, yloc=yloc.abovebar)
else if is_put
    diff = (ExtMapBuffer1 - ExtMapBuffer2) / PipValue
    label.new(bar_index, na, text=tostring(round(diff, 2)), color=color.red, style=label.style_labelup, yloc=yloc.belowbar)
   


color_area = ExtMapBuffer2>=ExtMapBuffer1 ? color.new(color.maroon , 70) : color.new(color.blue , 70)
fill(Ext1, Ext2, color=color_area , title = "Border")// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/




Bewerbungen

1
Entwickler 1
Bewertung
(3)
Projekte
2
50%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(268)
Projekte
602
34%
Schlichtung
64
20% / 58%
Frist nicht eingehalten
147
24%
Arbeitet
Veröffentlicht: 1 Artikel, 22 Beispiele
3
Entwickler 3
Bewertung
(38)
Projekte
50
10%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
8
16%
Frei
4
Entwickler 4
Bewertung
(12)
Projekte
17
47%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(33)
Projekte
43
16%
Schlichtung
0
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(7)
Projekte
6
0%
Schlichtung
5
0% / 100%
Frist nicht eingehalten
1
17%
Frei
8
Entwickler 8
Bewertung
(2)
Projekte
4
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
Dear Developer, I am looking to hire an experienced Meta Trader4 and 5 (MQL5) Expert Advisor developer to build a custom Expert Advisor for XAUUSD (Gold). This project is based on a structured swing trading system using market structure analysis and multi-timeframe confirmation. PROJECT OVERVIEW The Expert Advisor must be designed to trade XAUUSD using the following multi-timeframe approach: • Daily (D1): Optional
# Project Specification — MT5 Expert Advisor "Prince Strategy" ## Project Goal Develop an Expert Advisor (trading robot) for MetaTrader 5 that automates a price-action trading strategy based on candlestick patterns across multiple timeframes. The robot must work on the forex.com broker. --- ## 1. Traded Instruments The robot must trade the following 4 forex pairs: - GBPUSD - EURUSD - NZDUSD - AUDUSD **Important
I am looking for an experienced MQL5 developer to build a robust, high performance Expert advisor (EA) designed specifically for passing and managing funded accounts.The primary focus is to make some good money and also focus on risk management, consistent equity growth
Expert Advisor (EA) Requirements – MT5 (MQL5) Project Overview Develop an automated Expert Advisor (EA) for MetaTrader 5 based on EMA crossover signals combined with strict risk management and trade management principles. The EA must be optimized for Forex pairs and indices and should operate automatically without manual intervention. Entry Conditions Buy Setup Fast EMA crosses above Slow EMA. Current candle closes
I am in need of a profitable scalping EA for gold. No grid or martingale strategy pls. If you have one fully developed and working, pls reach out. You should be able to provide trial version
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit
Need an MT5 EA coded in MQL5. Strategy uses internally calculated MT5 Heikin Ashi candles, EMA 9 and EMA 21 on M1 USDJPY. Fixed lot size 12.20. One trade at a time. 40-point stop loss. Exit after 3 consecutive opposite Heikin Ashi candles. I have a detailed strategy document and video examples of valid and invalid entries. Videos linked show MT5 IOS but custom EA code will be used for windows MT5
Just a straight forward ea that reacts from candle close and open area using martingale option knowing what the broker charges per pair because will use it in a Z spread account so the ea will know what they charge or I can manually set charges so before ea close in profit it makes sure it covers the charges and added little profit before closing
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'

Projektdetails

Budget
30 - 40 USD
Ausführungsfristen
von 1 bis 3 Tag(e)