Converting Pine script (Tradingview) into MT5 indicator

MQL5 指标 脚本 外汇

工作已完成

执行时间4 分钟
客户反馈
Good person
员工反馈
Thank you

指定

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/




反馈

1
开发者 1
等级
(3)
项目
2
50%
仲裁
2
0% / 100%
逾期
0
空闲
2
开发者 2
等级
(266)
项目
598
35%
仲裁
64
20% / 58%
逾期
147
25%
工作中
发布者: 1 文章, 22 代码
3
开发者 3
等级
(38)
项目
50
10%
仲裁
1
0% / 0%
逾期
8
16%
空闲
4
开发者 4
等级
(12)
项目
17
47%
仲裁
2
50% / 50%
逾期
0
空闲
5
开发者 5
等级
(33)
项目
43
16%
仲裁
0
逾期
0
空闲
6
开发者 6
等级
项目
0
0%
仲裁
0
逾期
0
空闲
7
开发者 7
等级
(7)
项目
6
0%
仲裁
5
0% / 100%
逾期
1
17%
空闲
8
开发者 8
等级
(2)
项目
4
0%
仲裁
0
逾期
0
空闲
相似订单
//+------------------------------------------------------------------+ //| MA_Cross.mqh | //| Copyright 2012, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2012, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #include "..\ExpertSignal.mqh" // CExpertSignal is in
Hi Developers, I am looking for an experienced MT4/MT5 EA developer to create an Expert Advisor based on my custom indicator along with a Trend Magic confirmation filter. I will provide: Raw Pine Script of my custom indicator Pine Script of Trend Magic indicator Important Note: My existing indicator requires slight correction/refinement because it occasionally fails to identify the required candle accurately
I have a 90% completed project with the execution part left to complete, I have been struggling to complete this section and I need help from someone expert in MQL5 with knowledge on forex trading and ICT Concepts coding. Contact me for further details
RSI indicator 130 - 150 USD
The Relative Strength Index (RSI) is a technical momentum indicator measuring the speed and change of price movements, scaled from 0 to 100 to identify overbought (>70) or oversold (<30) conditions. Developed by J. Welles Wilder Jr., it helps traders spot potential trend reversals or corrections.Imagine a stock, XYZ, is trending upwards.Overbought Signal: The price increases sharply, and the RSI rises to 75. This
Close Vol (%N): Closes half (or any percentage you want) of the lot size of your open positions. For example, if you have five open orders of 0.06 lots and want to close half of each, you simply click it, and it will close the specified volume from each individual order. Close Order (%N): Closes half (or any amount you want) of the total number of your open orders. For example, if you have ten open orders and want to
I need a professional MQL5 developer to build a fully automated Expert Advisor (EA) named " Hassanien Daily Breakout ". The EA is based on daily price levels and specific execution times. ​ Technical Specifications: ​ Time Settings (Iraq Time - GMT+3): ​ Execution Time: 10:00 AM. ​ Full Clean-up Time: 10:50 PM (Close all open positions and delete pending orders). ​ Entry Logic: ​ Case 1 (Pending Orders): At 10:00 AM
📌 Project Overview: I need a full Smart Trade Management System for MetaTrader 4/5. This is a complete trading ecosystem, not a simple EA. 📌 Core Features: Smart Money Management (risk-based lot calculation) Advanced Trading Toolbox (TradingView-style drawing tools) Central Master Dashboard (risk, filters, account control) Multi-account monitoring (MT4/MT5 synchronization) Real-time monitoring (spread, equity
Hi basically I'm wanting an already made EA scalper that's constantly in and out of trades on the M1 time frame that has good risk management. It knows what it's doing. Most of its trades are profitable and that can start with £100. I am willing to pay up to £1000 for the right scalping bot. If you please have one and you're very confident in it, please allow me to use a live version to see how it does and if I'm
https://youtu.be/mUoczuxL0XE?si=2IzxX4jhML_-4f47&nbsp ; ...... “Secret London Session CRT Model - Insane Accuracy | ICT Secrets.” The model is called London Twilight and focuses on quick scalps near the end of London session. Source summary notes it uses CRT + Turtle Soup + PO3/AMD , mainly between 3:00 AM and 5:00 AM EST/New York time . ( Video Highlight | AI Video Summarizer ) Give your MQL5 coder these rules
Auto trading system on mobile with high probability win rate. Trades and auto trading system that works well on gold and forex, most important risk reward ratio. It must be 1:3 or more then that whenever possible

项目信息

预算
30 - 40 USD
截止日期
 1  3 天