Convert tradingview indicator onto an EA

MQL5 Indicatori Esperti

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Smart and helpful developer - I would highly recommend
Feedback del dipendente
verry good

Specifiche

Hi

I need someone to create an EA based on a tradingview indicator (trendicator)

The EA would trade based on the indicator 

This is the open source script

//@version=6
indicator('Trendicator', overlay = true)

// Input options for multi-timeframe
EMA1 = input.int(8, 'Quick Moving Average Length')
Sour = input(close, 'Quick Moving Average Source')
EMA2 = input.int(21, 'Slow Moving Average Length')
Colo = input.bool(true, "Use Crossover Colours")
Bool = input.bool(false, "Labels")

timeframe = input.timeframe('', title = 'Chart Timeframe (leave empty for current)')
timeframeSource = input.timeframe('', title = 'Moving Average Timeframe (leave empty for current)')

// Define MA calculations with multi-timeframe support
// Slow MAs (using close and open respectively)
EMABuy  = ta.sma(request.security(syminfo.tickerid, timeframe, close), EMA2)
EMASell = ta.sma(request.security(syminfo.tickerid, timeframe, open), EMA2)
// Quick MA (using the chosen source)
EMA = ta.sma(request.security(syminfo.tickerid, timeframeSource, Sour), EMA1)

// Define colors (initialize)
var col1 = color.new(color.green, 0)
var col2 = color.new(color.red, 0)

// --- Corrected Buy and Sell Conditions ---
// Instead of comparing slow vs. quick the “wrong way,” we now say:
// Buy when the quick MA (EMA) is above both slow MAs,
// Sell when the quick MA is below both slow MAs.
Buy1  = EMA > EMABuy
Buy2  = EMA > EMASell
Sell1 = EMA < EMASell
Sell2 = EMA < EMABuy

// Define flags to track crossovers and avoid multiple triggers
var bool buySignal = false
var bool sellSignal = false

// Detect crossovers and set flags
buyCrossover  = Buy1 and Buy2 and not buySignal[1]
sellCrossover = Sell1 and Sell2 and not sellSignal[1]

// Update flags to ensure single triggers
buySignal  := buyCrossover ? true : sellCrossover ? false : buySignal
sellSignal := sellCrossover ? true : buyCrossover ? false : sellSignal

// Update color based on conditions if using crossover colours
if Buy1 and Buy2 and Colo
    col1 := color.new(color.lime, 0)
    col2 := color.new(color.lime, 0)
if Sell1 and Sell2 and Colo
    col1 := color.new(color.red, 0)
    col2 := color.new(color.red, 0)

// Plot the moving averages
p = plot(EMA, 'Quick Moving Average', color = col1, linewidth = 3)
q = plot(EMABuy, 'Slow Moving Average',  color = col2, linewidth = 3)

// Fill the area between the two MAs based on trend
fill(p, q, color = Buy1 and Buy2 ? color.new(color.lime, 80) : Sell1 and Sell2 ? color.new(color.red, 80) : na)

// Alert conditions
alertcondition(buyCrossover,  title = 'Uptrend',   message = 'Buy')
alertcondition(sellCrossover, title = 'Downtrend', message = 'Sell')

// Add labels on crossovers
if buyCrossover and Bool
    label.new(x = bar_index, y = low, text = 'Buy', color = color.lime, textcolor = color.white, style = label.style_label_up, size = size.small)
if sellCrossover and Bool
    label.new(x = bar_index, y = high, text = 'Sell', color = color.red, textcolor = color.white, style = label.style_label_down, size = size.small)



Con risposta

1
Sviluppatore 1
Valutazioni
(240)
Progetti
301
28%
Arbitraggio
33
24% / 61%
In ritardo
9
3%
In elaborazione
2
Sviluppatore 2
Valutazioni
(436)
Progetti
688
34%
Arbitraggio
33
70% / 9%
In ritardo
22
3%
In elaborazione
3
Sviluppatore 3
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
5
0% / 80%
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(12)
Progetti
19
42%
Arbitraggio
3
0% / 67%
In ritardo
3
16%
Gratuito
5
Sviluppatore 5
Valutazioni
(294)
Progetti
469
39%
Arbitraggio
102
40% / 24%
In ritardo
77
16%
Caricato
Pubblicati: 2 codici
6
Sviluppatore 6
Valutazioni
(77)
Progetti
241
73%
Arbitraggio
7
100% / 0%
In ritardo
1
0%
Gratuito
7
Sviluppatore 7
Valutazioni
(5)
Progetti
4
0%
Arbitraggio
2
50% / 50%
In ritardo
2
50%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(87)
Progetti
120
68%
Arbitraggio
5
80% / 0%
In ritardo
12
10%
In elaborazione
10
Sviluppatore 10
Valutazioni
(39)
Progetti
54
61%
Arbitraggio
2
50% / 50%
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
12
Sviluppatore 12
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
Greeting Im in need of a programmer that can help me convert from TOS to trading view? The script is available with me, kindly bid if it is what you can do for me Thanks
can you help me with I need an ATM strategy for NT8, here's the criteria: Forex trade entry 100,000 units with a starting SL of 70 pips. The following proft targets: 33 pips, 68, 125, 180. All targets exit 25,000 units each. As each target is hit, move SL to BE+5, then BE+35, then BE+70. So the SL's are fixed, not trailing. I can't figure this out on my platform
"I need a high-quality, non-repainting TradingView indicator for Gold (XAUUSD) on the 1-minute timeframe. The goal is to catch 'Tops and Bottoms' using a combination of price exhaustion and candlestick confirmation. Key Requirements: The Signal: Must identify reversals at extremes. Please use a combination of Bollinger Bands (Standard Deviation) and RSI . Candlestick Confirmation: Signals should only fire if there is
Hi guys looking for a reversal indicator that places signals on chart Signals must he placed at candle close and not repaint. Since I'm offering a high budget I want everything to run smoothly in these steps 1. Send screenahots of it 2. I'll give you feedback what to change or we'll skip to stage 3 3. Short period demo 4. Deposite send full version and close deal. That will allow safety for both us I know I'm getting
Need to create a New EA that focuses only on closing trades of an Existing EA . The New EA should be attached to the Existing EA and also it should not interfere the functions of Existing EA. The developer of the New EA should provide guidelines in order to attach the New EA to the Existing EA. The existing EA will not be shared to the developer. The conditions of new EA is as follows: The new EA should close all
I’m looking for an experienced MQL4 / MQL5 developer to help with an indicator project. Project overview: I have an existing MT4 arrow indicator that I’ve used for several years. The indicator is compiled only (.ex4) — source code is not available. It does not repaint . The indicator has stopped displaying properly (likely outdated). What I need: Rebuild the indicator from scratch by analyzing its behavior and
HI Iam trading with XU ma simple BT 1.12 INDICATOR Which I got indicator from forexstation forum but mq4 file is not with me,I want to have similar indicator which is non repainting in both mq4 and mq5 formats,it should be similar and signals should match it has 2 moving averages MA1 IS LONG TERM MA,MA2 is short term MA MA 2 SIGNALS FOLLOW THE MA TREND CHANGE not crossing of MA1
I am looking for an experienced developer to build a TradingView Pine Script that generates trading signals and sends them via webhook to MT4 for automated execution. The trading logic must be handled entirely in TradingView (Pine Script) . MT4 will only be responsible for receiving webhook messages and executing trades (no strategy logic inside MT4). The goal is to ensure that TradingView backtest results and live
Hello I would like to modify the exit method of the trade for current expert advisor which include martingale trading. basically adjusting the position size and closing the trade. additional details will be provided in the next step
cần người tạo EA y thay đổi hình ảnh gửi đầy đủ tính năng như hình giá cả có thể tăng thêm khối lượng mong muốn viết giống hình không khác ROBOT HƠI NHIỀU TÍNH NĂNG MỌI NGƯỜI CÓ THỂ ĐƯA GIÁ THAM KHẢO

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 3 giorno(i)