Developer needed to convert exist strategy from Pine script to expert MT5/MQL5

명시

Hello, I have exist strategy from Tradingview that I want to be convert to expert MT5. The Tradingview strategy name " Flawless Victory Strategy - 15min BTC Machine Learning Strategy "

I will use version 2 only.
So I just want to be able to give Lot size input( can set to default at 0.01 first) and be able to set stop loss and take profit, both in percentage not points (use the method that strategy use) and place the BUY position when 
Buy_2 is true, Close position when Sell_2 is true 

The strategy using RSI, MFI and Bollinger bands to calculate 

I attached full code that have version 1 and 3 but you only have to work on version 2


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

//@version=4
strategy(overlay=true, shorttitle="Flawless Victory Strategy", default_qty_type = strategy.percent_of_equity, initial_capital = 100000, default_qty_value = 100, pyramiding = 0, title="Flawless Victory Strategy", currency = 'USD')

////////// ** Inputs ** //////////

// Stoploss and Profits Inputs

v1 = input(true, title="Version 1 - Doesn't Use SL/TP")
v2 = input(false, title="Version 2 - Uses SL/TP")
v3 = input(false, title="Version 3 - Uses SL/TP")
v2stoploss_input = input(6.604, title='Stop Loss %', type=input.float, minval=0.01)/100
v2takeprofit_input = input(2.328, title='Take Profit %', type=input.float, minval=0.01)/100
v2stoploss_level = strategy.position_avg_price * (1 - v2stoploss_input)
v2takeprofit_level = strategy.position_avg_price * (1 + v2takeprofit_input)

v3stoploss_input = input(8.882, title='Stop Loss %', type=input.float, minval=0.01)/100
v3takeprofit_input = input(2.317, title='Take Profit %', type=input.float, minval=0.01)/100
v3stoploss_level = strategy.position_avg_price * (1 - v3stoploss_input)
v3takeprofit_level = strategy.position_avg_price * (1 + v3takeprofit_input)

plot(v2 and v2stoploss_input and v2stoploss_level ? v2stoploss_level: na, color=color.red, style=plot.style_linebr, linewidth=2, title="v2 Stoploss")
plot(v2 and v2takeprofit_input ? v2takeprofit_level: na, color=color.green, style=plot.style_linebr, linewidth=2, title="v2 Profit")

plot(v3 and v3stoploss_input and v3stoploss_level ? v3stoploss_level: na, color=color.red, style=plot.style_linebr, linewidth=2, title="v3 Stoploss")
plot(v3 and v3takeprofit_input ? v3takeprofit_level: na, color=color.green, style=plot.style_linebr, linewidth=2, title="v3 Profit")

////////// ** Indicators ** //////////

// RSI

len = 14
src = close
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - 100 / (1 + up / down)

// MFI

MFIlength = 14
MFIsrc = hlc3
MFIupper = sum(volume * (change(MFIsrc) <= 0 ? 0 : MFIsrc), MFIlength)
MFIlower = sum(volume * (change(MFIsrc) >= 0 ? 0 : MFIsrc), MFIlength)
_rsi(MFIupper, MFIlower) =>
    if MFIlower == 0
        100
    if MFIupper == 0
        0
        100.0 - (100.0 / (1.0 + MFIupper / MFIlower))
mfi = _rsi(MFIupper, MFIlower)

// v1 Bollinger Bands

length1 = 20
src1 = close
mult1 = 1.0
basis1 = sma(src1, length1)
dev1 = mult1 * stdev(src1, length1)
upper1 = basis1 + dev1
lower1 = basis1 - dev1

// v2 Bollinger Bands

length2 = 17
src2 = close
mult2 = 1.0
basis2 = sma(src2, length2)
dev2 = mult2 * stdev(src2, length2)
upper2 = basis2 + dev2
lower2 = basis2 - dev2

////////// ** Triggers and Guards ** //////////

// v1 Strategy Parameters

RSILowerLevel1 = 42
RSIUpperLevel1 = 70
BBBuyTrigger1 = src1 < lower1
BBSellTrigger1 = src1 > upper1
rsiBuyGuard1 = rsi > RSILowerLevel1
rsiSellGuard1 = rsi > RSIUpperLevel1

// v2 Strategy Parameters

RSILowerLevel2 = 42
RSIUpperLevel2 = 76
BBBuyTrigger2 = src2 < lower2
BBSellTrigger2 = src2 > upper2
rsiBuyGuard2 = rsi > RSILowerLevel2
rsiSellGuard2 = rsi > RSIUpperLevel2

// v3 Strategy Parameters

MFILowerLevel3 = 60
RSIUpperLevel3 = 65
MFIUpperLevel3 = 64
BBBuyTrigger3 = src1 < lower1
BBSellTrigger3 = src1 > upper1
mfiBuyGuard3 = mfi < MFILowerLevel3
rsiSellGuard3 = rsi > RSIUpperLevel3
mfiSellGuard3 = mfi > MFIUpperLevel3 

//////////** Strategy Signals ** //////////

// v1 Signals

Buy_1 = BBBuyTrigger1 and rsiBuyGuard1
Sell_1 = BBSellTrigger1 and rsiSellGuard1

if v1 == true
    strategy.entry("Long", strategy.long, when = Buy_1, alert_message = "v1 - Buy Signal!")
    strategy.close("Long", when = Sell_1, alert_message = "v1 - Sell Signal!")

// v2 Signals

Buy_2 = BBBuyTrigger2 and rsiBuyGuard2
Sell_2 = BBSellTrigger2 and rsiSellGuard2

if v2 == true
    strategy.entry("Long", strategy.long, when = Buy_2, alert_message = "v2 - Buy Signal!")
    strategy.close("Long", when = Sell_2, alert_message = "v2 - Sell Signal!")
    strategy.exit("Stoploss/TP", "Long", stop = v2stoploss_level, limit = v2takeprofit_level)

// v3 Signals

Buy_3 = BBBuyTrigger3 and mfiBuyGuard3
Sell_3 = BBSellTrigger3 and rsiSellGuard3 and mfiSellGuard3

if v3 == true
    strategy.entry("Long", strategy.long, when = Buy_3, alert_message = "v2 - Buy Signal!")
    strategy.close("Long", when = Sell_3, alert_message = "v2 - Sell Signal!")
    strategy.exit("Stoploss/TP", "Long", stop = v3stoploss_level, limit = v3takeprofit_level)





응답함

1
개발자 1
등급
(138)
프로젝트
194
21%
중재
12
58% / 25%
기한 초과
1
1%
로드됨
2
개발자 2
등급
(2)
프로젝트
3
0%
중재
0
기한 초과
0
무료
비슷한 주문
Hello, I need an EA for both MQL4 and MQL5 that complies with Prop Firm's rules of a maximum daily drawdown of 4%. This means it should close all trades after a 4% loss and not trade for the rest of the day. Additionally, it should not use martingale, grid trading, or trade stacking (opening three or more trades at the same time in the same direction). The EA should also be able to achieve a monthly return of 5-10%
New robot 50 - 100 USD
Hi , i am looking for professional programmer who can create me Mt5 trading robot which analysis the currencies and works on all currencies and any timeframe also revised the stop loss and i want that when I attach my robot to the chart in mt5 it changes the chart image into a slected image of robot i want to show on chart i have so much more features to tell. please contact me here and also on my telegram @harmanfx
HI, I'm looking for an experienced person who can add buy/sell indications/Alerts on existing Pinescript code along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should execute trade instantly as based on the alerts/indications on tradingview script
I need an EA created by combining the PZ RSI, PZ MACD,and PZ Stochastic into one EA with the grid function The idea of the trading system is as follows: market entries are performed when MACD, RSI and Stochastic K are in the same current trend direction. The EA is created by combining 3 existing PZ EA's
Hello, I need smart and professional programmer that have minimum 300 projects finish for my expert advisor (mq4). I need this project finish quickly, and the function can running well like I need. My EA basicly using Consecutives Signals Candle, MA20, and ATR with some others parameters. If you programmer like I need, so can apply, IF NOT DONT APPLY! I will send the document completely when you apply. Thank you
I need a trade manager with lot of complicated options and best ui. integrate with Telegram. And I needed for MT4 and MT5 both. Need a good developer with reasonable price
If you have any EA based on indicators, money management, martingale, hedging, pyramiding, etc. that can be used to save a position gone wrong, I am interested in buying that code. Basically, I need an ea/system to recovery positions that are in the red. The task is as follow: Use XAUUSD as reference, and enter 2 lots in short and 2 lots in long, wait for one of the positions to be 6,000 points in the red (about
I want a robot that can run autonomously on an index, say US30 index whereby I can set a simple strategy. I want to set limit orders that trigger every incremental X points. If the market is at 39,000 I want to sell X per point at Y incremental point intervals based on the index level. If X=1 and Y= 50 I'd expect the following to happen P=50 and L=400 The market rises to 39,050 I sell at (X) 1 unit per point and I
EA 30 - 75 USD
I would like my robot to open up to 2000 trades. It should be 90-97% accurate at all times. It should trade currency pairs, Indexes and Gold. It must analyze the chart automatically and it must be easy to be set up. It must not lose any money. Profitable all the way. I would like someone who is highly experienced to do the job. NB!! MOBILE ROBOT. It must have automated TP and SL. all trades should be trigger anytime
I need a trading robot that will be about to enter and get out of trades automatically following a set of conditions that will be provided. it will be determining the trend on a higher time frame and making trades on a lower timeframe

프로젝트 정보

예산
40+ USD
개발자에게
36 USD
기한
에서 1  5 일