Convert tradingview indicator onto an EA

MQL5 지표 전문가

작업 종료됨

실행 시간 2 일
고객의 피드백
Smart and helpful developer - I would highly recommend
피고용인의 피드백
verry good

명시

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
등급
(249)
프로젝트
311
28%
중재
33
27% / 64%
기한 초과
10
3%
작업중
2
개발자 2
등급
(442)
프로젝트
697
34%
중재
33
70% / 9%
기한 초과
22
3%
무료
3
개발자 3
등급
(1)
프로젝트
0
0%
중재
5
0% / 80%
기한 초과
0
무료
4
개발자 4
등급
(12)
프로젝트
19
42%
중재
3
0% / 67%
기한 초과
3
16%
무료
5
개발자 5
등급
(295)
프로젝트
472
40%
중재
103
40% / 23%
기한 초과
78
17%
바쁜
게재됨: 2 코드
6
개발자 6
등급
(77)
프로젝트
243
74%
중재
7
100% / 0%
기한 초과
1
0%
무료
게재됨: 1 기고글
7
개발자 7
등급
(6)
프로젝트
5
0%
중재
2
50% / 50%
기한 초과
2
40%
무료
8
개발자 8
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
9
개발자 9
등급
(87)
프로젝트
121
68%
중재
5
80% / 0%
기한 초과
12
10%
무료
10
개발자 10
등급
(39)
프로젝트
54
61%
중재
2
50% / 50%
기한 초과
0
무료
11
개발자 11
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
12
개발자 12
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
비슷한 주문
OrderBlocks.All-in-One The OrderBlocks.All-in-One Indicator for MT4 identifies and plots unmitigated, mitigated, and breaker order blocks on the chart. It offers a clear view of market structure by displaying these blocks as colored rectangular areas with labels, helping you identify potential reversal and continuation zones. Order Blocks were originally introduced by the ICT community and have since become a popular
Hello, I need some expert who can hlep me fix the errors of this bot that will work normally ba check the bot file, error messages, and any specific issues you are currently facing so you can get started
I want this indicator on my mt5 account and mt4 account because I want use this brilliant reversal indicator on my Android device each an every time when I enter on my mt5 account
I am looking for an experienced MQL5 developer to build an Expert Advisor for MetaTrader 5 based on a dynamic Support & Resistance strategy from TradingView. Requirements: Pivot-based support and resistance detection Volume-filtered zones ATR-based dynamic zone width Levels must update automatically over time Buy at support holds Sell at resistance holds M1 timeframe execution Configurable SL/TP and lot settings
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away
I have a open source Tradingview indicator that I want it to be converted to Ninja Trader8. I have attached it. Please let me know, if you can do it and for how muc
Looking for a momentum indicator that will show when market has momentum and is making the big moves will want to see screenshots of it before deposit so I know what I'm paying for. Of thr developer can bring a good strategy for the indicator I'll refer him other jobs and other traders. Please don't apply and than dissappear apply and tell me your approach to tackling this project
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
Hi , I have some indicators that I want set up on my TV chart and want to create one chart for some and another chart for some others. Plus I want to set up the brackets orders so I can trade from the chart. I have these set up somewhat but need it cleaned up and the way I want them. how much would something like this cost to do? I'm in California and would like you to show me so I can learn to do this when I want to
I would love to see most of my trades going well being in profits! & keep consistent trading without having to blow any accounts be able to identify right trades and have good trading strategy

프로젝트 정보

예산
30+ USD
기한
에서 1  3 일