Convert tradingview indicator onto an EA

MQL5 指标 专家

指定

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)



反馈

1
开发者 1
等级
(192)
项目
235
27%
仲裁
13
31% / 38%
逾期
8
3%
已载入
2
开发者 2
等级
(388)
项目
615
33%
仲裁
27
70% / 7%
逾期
18
3%
空闲
3
开发者 3
等级
(1)
项目
0
0%
仲裁
1
0% / 100%
逾期
0
空闲
4
开发者 4
等级
(5)
项目
7
14%
仲裁
2
0% / 50%
逾期
2
29%
繁忙
5
开发者 5
等级
(277)
项目
451
39%
仲裁
91
43% / 19%
逾期
73
16%
繁忙
6
开发者 6
等级
(68)
项目
213
71%
仲裁
5
100% / 0%
逾期
1
0%
工作中
7
开发者 7
等级
(2)
项目
0
0%
仲裁
1
0% / 0%
逾期
0
工作中
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
9
开发者 9
等级
(70)
项目
97
69%
仲裁
2
50% / 0%
逾期
11
11%
工作中
10
开发者 10
等级
(27)
项目
36
47%
仲裁
2
50% / 50%
逾期
0
工作中
11
开发者 11
等级
(564)
项目
933
47%
仲裁
302
59% / 25%
逾期
125
13%
空闲
相似订单
I am looking for a reliable Expert Advisor (EA) compatible with H4 and D1 timeframes. The EA should have a proven edge, avoiding strategies like martingale, grid, or hedging. Each trade must include a stop loss, and the maximum drawdown should not exceed 10%. Please send me demo version to check
I’m looking for an experienced MQL5 developer to fix a high-frequency trading robot on MetaTrader 5. The script has issues with the Trade\Trade.mqh library (not found) and needs adjustments to become operational. Goals: resolve compilation errors, implement missing functions (e.g., DecideToRelaunch and AdjustRiskParameters ), and validate performance through testing. A temporary OrderSend solution is in place, but
Hi i need to create forexbot. which works on 1minute time frame. developer must understand trading orders as expert. he needs to work with Bill Williams fractals. i can only explain it with zoom or video meeting.because it needs futher understanding. i prefer russian language. i need only expert please . juniors doesnt reply to me. My telegram username is @wish_maker you can connect it every time
Hello, I am looking for an Expert Advisor (EA) for MetaTrader (MT4) with the main goal of generating a high trading volume to earn rebates. Here are the key requirements: Trading frequency: It should open many trades per day to maximize volume. Entry and exit strategy: It can be based on simple technical conditions or open orders randomly within certain parameters. Risk management: The ability to set SL, TP, and
I need a trade copier for mt 5 to Mt 5. If you are able to do mt5 to matchtrader, trade locker, dxtrade, and ninja trade that will be even better. For each platform I will add $100. If you can add all and I am happy I will give $600 in total. But for Mt5 my budget is $100. I want a dashboard where I can have a prefixes settings. The aim is I will have a prefixes setting of sl and tp for each quotes. Example for gold
Hi, I am looking for a profitable MT5 EA (with source code). The strategy should NOT involve Martingale or Grid or High Frequency Trading. If you are interested in this job, grateful if you could provide a brief description of the strategy and a backtest report (at least since 2019) for reference
I have one MT4 EA with me from a seller with so Many Input files which i dont understand how to use properly , it always blow the acccount , need someone to Figure out Settings which can play it safe
I am looking for a programmer to make an Expert Advisor (EA) for H4 and D1 time frames. The EA must have at least a 1:1 risk-reward ratio, win more than 50% of trades, and have a maximum 10% drawdown. It should be simple, stable, and work well in different market conditions
Expert Advisor parameters update 1. (Starting price) 1, 2, 3, 4, activated one by one, where price means activated, where 0.0 means deactivated. EXAMPLE: 1 - 0,0 2 - 0,0 3 - 147,333 4 - 0,0 or 1 - 147,333 2 - 145,333 3 - 0,0 4 - 0,0 2. (TakeProfit) 5, 6, 7, 8, Activated one by one, where price means activated, where 0.0 means deactivated EXAMPLE: 1 - 0,0 2 - 0,0 3 - 147,333 4 - 0,0 5
Creating EA 500 - 1000 USD
Hello everyone hope you have a nice day i am working to create an EA for like around 3 years now and still i am searching for the right company and developer so now i have a plan , if there is any developer or developers who are interested working with me in research or programming or even ideas so we can think , work , create together as a team and at the end the project will be between us but we really NEED THE

项目信息

预算
30+ USD
VAT (21%): 6.3 USD
总计: 36 USD
开发人员
27 USD
截止日期
 1  3 天

客户

(2)
所下订单7
仲裁计数0