Strategy from Tradingview Pine Script to Meta Trader5 EA

MQL5 전문가

작업 종료됨

실행 시간 3 일
피고용인의 피드백
A very patient and committed customer
고객의 피드백
Very good person. Completed on time

명시

Hi,

I need to convert the  Strategy from Tradingview Pine Script to Meta Trader5 EA, so that it can open and close orders on its own.


the code is below

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/


// Credits to the original Script - Range Filter DonovanWall

// This version is the old version of the Range Filter with less settings to tinker with


//@version=4

strategy(title="RF-100", shorttitle="RF-100", overlay=true)


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Functions

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Size Function

rng_size(x, qty, n)=> 

//    AC       = Cond_EMA(abs(x - x[1]), 1, n)

    wper      = (n*2) - 1

    avrng     = ema(abs(x - x[1]), n)

    AC = ema(avrng, wper)*qty

    rng_size = AC


//Range Filter Function

rng_filt(x, rng_, n)=>

    r          = rng_

    var rfilt  = array.new_float(2, x)

    array.set(rfilt, 1, array.get(rfilt, 0))

    if x - r > array.get(rfilt, 1)

        array.set(rfilt, 0, x - r)

    if x + r < array.get(rfilt, 1)

        array.set(rfilt, 0, x + r)

    rng_filt1 = array.get(rfilt, 0)

    

    hi_band   = rng_filt1 + r

    lo_band   = rng_filt1 - r

    rng_filt  = rng_filt1

    [hi_band, lo_band, rng_filt]

 

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Inputs

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Source

rng_src = input(defval=close, type=input.source, title="Swing Source")


//Range Period

rng_per = input(defval=20, minval=1, title="Swing Period")


//Range Size Inputs

rng_qty   = input(defval=3.5, minval=0.0000001, title="Swing Multiplier")


//Bar Colors

use_barcolor = input(defval=false, type=input.bool, title="Bar Colors On/Off")


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Definitions

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Filter Values

[h_band, l_band, filt] = rng_filt(rng_src, rng_size(rng_src, rng_qty, rng_per), rng_per)


//Direction Conditions

var fdir = 0.0

fdir    := filt > filt[1] ? 1 : filt < filt[1] ? -1 : fdir

upward   = fdir==1 ? 1 : 0

downward = fdir==-1 ? 1 : 0


//Trading Condition

longCond = rng_src > filt and rng_src > rng_src[1] and upward > 0 or rng_src > filt and rng_src < rng_src[1] and upward > 0 

shortCond = rng_src < filt and rng_src < rng_src[1] and downward > 0 or rng_src < filt and rng_src > rng_src[1] and downward > 0


CondIni = 0

CondIni := longCond ? 1 : shortCond ? -1 : CondIni[1]

longCondition = longCond and CondIni[1] == -1

shortCondition = shortCond and CondIni[1] == 1


//Colors

filt_color = upward ? #05ff9b : downward ? #ff0583 : #cccccc

bar_color  = upward and (rng_src > filt) ? (rng_src > rng_src[1] ? #05ff9b : #00b36b) :

             downward and (rng_src < filt) ? (rng_src < rng_src[1] ? #ff0583 : #b8005d) : #cccccc


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Outputs

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Filter Plot

filt_plot = plot(filt, color=filt_color, transp=67, linewidth=3, title="Filter")


//Band Plots

h_band_plot = plot(h_band, color=color.new(#05ff9b, 100), title="High Band")

l_band_plot = plot(l_band, color=color.new(#ff0583, 100), title="Low Band")


//Band Fills

fill(h_band_plot, filt_plot, color=color.new(#00b36b, 92), title="High Band Fill")

fill(l_band_plot, filt_plot, color=color.new(#b8005d, 92), title="Low Band Fill")


//Bar Color

barcolor(use_barcolor ? bar_color : na)


//Plot Buy and Sell Labels

plotshape(longCondition, title = "Buy Signal", text ="BUY", textcolor = color.white, style=shape.labelup, size = size.normal, location=location.belowbar, color = color.new(color.green, 0))

plotshape(shortCondition, title = "Sell Signal", text ="SELL", textcolor = color.white, style=shape.labeldown, size = size.normal, location=location.abovebar, color = color.new(color.red, 0))


//Alerts

alertcondition(longCondition, title="Buy Alert", message = "BUY")

alertcondition(shortCondition, title="Sell Alert", message = "SELL")


// Submit entry orders

if (longCondition)

    strategy.entry(id="EL", long=true)


if (shortCondition)

    strategy.entry(id="ES", long=false)


// Submit exit orders

strategy.close(id="EL", when=shortCondition)

strategy.close(id="ES", when=longCondition)



응답함

1
개발자 1
등급
(25)
프로젝트
29
34%
중재
3
67% / 0%
기한 초과
1
3%
무료
2
개발자 2
등급
(131)
프로젝트
172
38%
중재
4
25% / 50%
기한 초과
13
8%
작업중
3
개발자 3
등급
(409)
프로젝트
537
75%
중재
9
44% / 0%
기한 초과
24
4%
무료
비슷한 주문
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
I need to get a trading forex robot based on support and accurate resistance and moving avarage more details will be provided on the video links I want a situation where by once I put the robot on the chart and choose buy or sell and the number to open then it will only buy or sell in that particular direction only

프로젝트 정보

예산
30 - 90 USD
개발자에게
27 - 81 USD
기한
에서 1  2 일