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
등급
(390)
프로젝트
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)
프로젝트
214
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 want to make a trading robot that will automatically open trades (long and short). The robot will be programmed to read the market structure (HH, HL, LL and LH) according to my requirements - it is a mechanical reading of the structure. Then, at a certain point in the structure, the program would go into a 1-minute time frame and wait for a break in the structure to occur - once it occurs, the trade would open. It
NEED A SKILLED TRUSTED CODER TO ADD NEURAL NETWORKS AND POSSIBLY AI (CHAT GPT) API TO A CURRENT MT5 EA. - I HAVE A COMPLEX EA - I WANT TO ADD NEURAL NETWORKS - I WANT TO ADD AI (CHAT GPT API TYPE IS OKAY)
Dear traders, developers and R&D teams! We are looking for several robots / algorithms to extend our trading baskets. Requirements: 1. Monthly profit >=0.5% 2. Maximum drawdown -10% 3. Average weekly deals count (minimum): 100 4. Martingale/Grid allowed with maximum steps 3 5. Risk Reward Ratio and WinRate to archieve monthly target minimum 0.5% 6. Average profit per deal >=0.02% (can be calculated in points) 7
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

프로젝트 정보

예산
30+ USD
VAT (21%): 6.3 USD
총: 36 USD
개발자에게
27 USD
기한
에서 1  3 일

고객

(2)
넣은 주문7
중재 수0