Expert Advisor based on Tradingview Strategy

MQL4 Experts

Job finished

Execution time 14 days

Specification

Hi,

I would like to get a Tradingview strategy coded into an EA for MT4. 

Here is a link to the strategy:

**for some reason it won't let me link to the trading view strategy.  Pine script is below.  The strategy can be found on Tradingview by searching: 

MULTIPLE TIME-FRAME STRATEGY(TREND, MOMENTUM, ENTRY)


I would like an additional features added:

  • Fixed TP and SL (if 0 is entered then this feature is off)
  • ATR based TP and SL such that user can input a multiple of the ATR for each the TP and SL.  Toggle true/false for each, TP and SL, for turning feature off or on.  Want to be able to use ATR SL even if ATR TP is turned off.


And here is the Tradingview Pine script for the strategy:

//@version=2

strategy("TUX MTF", overlay=true)


// MULTIPLE TIME FRAME STRATEGY

// LONG TERM --- TREND

// MED TERM --- MOMENTUM

// SHORT TERM --- ENTRY


// ENTRY POSITION TIMEFRAME

entry_position = input(title="Entry timeframe (minutes)", type=integer, defval=5, minval=1, maxval=1440)

med_term = entry_position * 4

long_term = med_term * 4


// GLOBAL VARIABLES

ma_trend = input(title="Moving Average Period (Trend)", type=integer, defval=50, minval=5, maxval=200)


// RSI

length = input(title="Stoch Length", type=integer, defval=18, minval=5, maxval=200)

OverBought = input(title="Stoch OB", type=integer, defval=80, minval=60, maxval=100)

OverSold = input(title="Stoch OS", type=integer, defval=20, minval=5, maxval=40)

smoothK = input(title="Stoch SmoothK", type=integer, defval=14, minval=1, maxval=40)

smoothD = input(title="Stoch SmoothD", type=integer, defval=14, minval=1, maxval=40)

maSm = input(title="Moving Avg SM", type=integer, defval=7, minval=5, maxval=50)

maMed = input(title="Moving Avg MD", type=integer, defval=21, minval=13, maxval=200)


// LONG TERM TREND

long_term_trend = security(ticker, tostring(long_term), sma(close,ma_trend)) > security(ticker, tostring(long_term), close)

plot(security(ticker, tostring(long_term), sma(close,ma_trend)), title="Long Term MA", linewidth=2)

// FALSE = BEAR

// TRUE = BULL


// MED TERM MOMENTUM

k = security(ticker, tostring(med_term), sma(stoch(close, high, low, length), smoothK))

d = security(ticker, tostring(med_term), sma(k, smoothD))


os = k >= OverBought or d >= OverBought

ob = k <= OverSold or d <= OverSold


// SHORT TERM MA X OVER

bull_entry = long_term_trend == false and os == false and ob == false and k > d and security(ticker, tostring(entry_position), crossover(sma(close, maSm), sma(close, maMed)))

bear_entry = long_term_trend == true and os == false and ob == false and k < d and security(ticker, tostring(entry_position), crossunder(sma(close, maSm), sma(close, maMed)))


bull_exit = crossunder(k,d)

bear_exit = crossover(k,d)


if (bull_entry)

    strategy.entry("Long", strategy.long, 10000)

    

if (bear_entry)

    strategy.entry("Short", strategy.short, 10000)

  

strategy.close("Long", when = bull_exit == true)

strategy.close("Short", when = bear_exit == true)

Responded

1
Developer 1
Rating
(166)
Projects
187
10%
Arbitration
37
38% / 35%
Overdue
5
3%
Loaded
2
Developer 2
Rating
(41)
Projects
46
28%
Arbitration
9
0% / 100%
Overdue
7
15%
Free
3
Developer 3
Rating
(258)
Projects
532
50%
Arbitration
54
41% / 37%
Overdue
224
42%
Loaded
4
Developer 4
Rating
(48)
Projects
80
28%
Arbitration
8
75% / 13%
Overdue
41
51%
Free
5
Developer 5
Rating
(778)
Projects
1341
72%
Arbitration
109
28% / 49%
Overdue
339
25%
Loaded
6
Developer 6
Rating
(2)
Projects
3
0%
Arbitration
3
0% / 100%
Overdue
0
Working
7
Developer 7
Rating
(40)
Projects
85
13%
Arbitration
29
28% / 48%
Overdue
35
41%
Busy
8
Developer 8
Rating
(247)
Projects
396
38%
Arbitration
82
41% / 18%
Overdue
69
17%
Busy
9
Developer 9
Rating
(549)
Projects
918
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Loaded
Similar orders
EXPERT ADVISOR NEEDED Ideally want to use for Prop Firms Requirements: 10-20% Profit monthly Can not break prop firm rules (FTMO) Would also like for live, can invest minimum 5000-10000$ Can message me on telegram if you like. Telegram -> @ghostceo0
Hello, i have an ex4 file for an expert advisor and i want to transfer it into an ex5 file to be able to use it on meta trader 5, thank you. Ps: It is not an easy code
Hi developers! I'm looking for a good developer to build an EA based on my custom SuperTrend indicator. The requirements are the following: Features of the EA: - Start hour and stop hour trade (option to enable/ disable it); - Stop trading between start and stop hour trading (option to enable/ disable it) ; - SL & TP ( TP with trailing); - Capability to compute amount lost (principal + fees); -
Hello , i want to create an EA that get the High and Low of a specific time period for example from 10:00 to 11:00 , then set a sell stop on low and buy stop on the high , with tp and sl
Can you help me with automation of a strategy. Implementation-wise i'd be flexible, though ultimately I want it all in Python. Goal is to have a simple strategy run, and enter trades on Tradovate. Tactically we can do through Pinescript into Tradovate - unless you find python just easier to begin with (And we connect to Tradovate/Tradingview APIs for necessary connectivity). The business requirements themselves are
Need an EA similar to Patrex pro to execute trades. The strategy is as follows: BUY If EA attached to a 5 min chart and trade direction is set buy, the EA will buy at every bullish candle close and pause buy on any bearish candle close. SELL If EA attached to a 5 min chart and trade direction is set sell, the EA will sell at every bearish candle close and pause sell on any bullish candle close. The EA is timeframe
i need Create a standalone telegram signals copier EA Similar to Redfox on the market EA will trade received signals from the telegram channel telegram will add the pending / market order i need to g=create a trading groups such as (forex /indices / commodities ..etc. ) i can add a predefined simples to add a prefix this is the basic requirements , remining will be shared later
preciso de um EA baseado em um indicador simples parecido com bandas de bolinger. O indicador funciona como um canal e quando o preço bater na linha de baixo deve ser feito a compra e vice-versa,ele deve abrir apenas uma ordem por direção,se abrir uma compra a próxima entrada deverá ser uma venda
Trendline 30+ USD
inserisce ordine buy quando la chiusura della candela precedente è sopra la retta, sell viceversa. chiude a stoploss chiude in 1 o più volte l'ordine quando guadagna % variabile sul prezzo di ingresso e mette stop a breakeven ogni volta le rette vengono inserite automaticamente al prezzo high/low della candela dell'ultimo fractal confermato. (confermato!! non quando appare)
Hi, I am looking for a PHP developer who is expert in handling complex script job combined of HTML, MysQL and PHP. It is a pro job Please apply only if you are able to handle all those mentioned and highlighted skill sets. Job description will be provided to selected developer

Project information

Budget
50 - 200 USD
For the developer
45 - 180 USD
Deadline
from 1 to 14 day(s)