Multi CCI Indicator Conversion from Pinescript to MQL4

MQL4 Indicadores Conversión

Tarea técnica

I have an indicator I built for Pinescript that allows to put multiple length CCIs in one spot without any weird re-scaling done to it. I would like to convert it into MQL4 to get me off of Tradingview. I tried overlaying multiple CCIs in MT4 and they all have different scales it seems when I change the lengths. That's not quite what I'm looking to do. I'll post the code and a picture below. You'll notice in the indicator window that I have one of them as an area plot that is transparent. If this is able to be done in MT4 as well that would be good. If not, no big deal.

I would like the capability to change the lengths, colors, and line type of this indicator. As well as to add new levels to it as is already able to be done in the stock MT4 CCI.

Let me know if this is something that is feasible.

I would also like the source code for this project for my own education as well.




//@version=5

indicator(title='Commodity Channel Index', shorttitle='CCI', format=format.price, precision=2, timeframe='')


length1 = input.int(20, minval=1, title='Fast')

length2 = input.int(56, minval=1, title='Medium')

length3 = input.int(120, minval=1, title='Slow')


src1 = input(close, title='Source')

src2 = input(close, title='Source')

src3 = input(close, title='Source')


ma1 = ta.sma(src1, length1)

ma2 = ta.sma(src2, length2)

ma3 = ta.sma(src3, length3)


cci1 = (src1 - ma1) / (0.015 * ta.dev(src1, length1))

cci2 = (src2 - ma2) / (0.015 * ta.dev(src2, length2))

cci3 = (src3 - ma3) / (0.015 * ta.dev(src3, length3))


plot(cci1, 'CCI Fast', color=color.new(#ffffff, 0))

plot(cci2, 'CCI Medium', color=color.new(#000000, 0))

plot(cci3, color=color.new(#000000, 68), title='CCI Slow')


band4 = hline(200, 'Upper Band', color=#C0C0C0, linestyle=hline.style_dashed)

band3 = hline(-200, 'Upper Band', color=#C0C0C0, linestyle=hline.style_dashed)

band1 = hline(100, 'Upper Band', color=#C0C0C0, linestyle=hline.style_dashed)

band0 = hline(-100, 'Lower Band', color=#C0C0C0, linestyle=hline.style_dashed)

band5 = hline(0, 'Lower Band', color=#C0C0C0, linestyle=hline.style_solid)


Han respondido

1
Desarrollador 1
Evaluación
(38)
Proyectos
50
10%
Arbitraje
1
0% / 0%
Caducado
8
16%
Libre
2
Desarrollador 2
Evaluación
(94)
Proyectos
190
66%
Arbitraje
8
25% / 50%
Caducado
2
1%
Libre
3
Desarrollador 3
Evaluación
(126)
Proyectos
158
35%
Arbitraje
4
25% / 50%
Caducado
13
8%
Libre
4
Desarrollador 4
Evaluación
(546)
Proyectos
823
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Trabaja
5
Desarrollador 5
Evaluación
(203)
Proyectos
303
35%
Arbitraje
56
38% / 38%
Caducado
99
33%
Libre
6
Desarrollador 6
Evaluación
(220)
Proyectos
249
61%
Arbitraje
3
33% / 67%
Caducado
5
2%
Trabaja
7
Desarrollador 7
Evaluación
(401)
Proyectos
529
74%
Arbitraje
9
44% / 0%
Caducado
24
5%
Libre
8
Desarrollador 8
Evaluación
(555)
Proyectos
922
48%
Arbitraje
300
59% / 25%
Caducado
123
13%
Trabajando
Solicitudes similares
i am currently in need of someone who can be able to help me out.i want my custom indicator to be non repainting and i also want the custom indicator to be able to send out all types of alerts...thank you
Hello expert developer I'm here to write to expert developer that I need to fix my indicator repainting and I need the expert developer that can solve the repainting issue immediately and the project is just fixing the repainting only nothing else ... It shouldn't be more than the time I'm looking for it to be done thanks
hi - indicator is attached >>> turn it into ea - indicator is in a ex4 not mql4 - rules are simple up understand and will be shared - money mangment rules will be shared - other inputs such spread , tp , sl , breakeven , trailing should be included ================ devopler requirments : - have reviews - have experiance with support and resistance - have good money managment concepts - will offer support and ready
I need help with the function iMAOnArrayMQL4 from the link https://www.mql5.com/en/articles/81 but exactly when I use MODE_EMA because when I use SMA it works with any array but when I use the exponential it is not graphed in the chart In the attached photo of the chart it is what it looks like when it is with MODE_EMA, as I mentioned when you use MODE_SMA it works So what I basically need is a function like
Pappa sefume 30 - 300 USD
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service. I have read the Rules of using the Freelance service and accept them. I agree with
Modify of my mql5 ea. 30 - 100 USD
Hello. I need to modify my current ea on MT5. At the moment current strategy is based on breakout asian Session box and retest of this box, then ea placing trade. I need to add another function that ea will wait for breakout asian box and wait for pullback and then place trade. Pullback option need to be Set up on how many pips is pullback valid. More info in photo. Also few other small modification. One photo is
Hello here I am in need of an NT8 developer which can create a custom strategy for NT8 Kindly bid on this if you are an Expert in Ninjatrader Thank you
Hello, I am a trader but I find it difficult to have a profitable EA because I don't have a profiting strategy for developer to develop on, so I need a professional developer that also have experience in trading or also trade to quote a profitable strategy for me and also code the strategy to an automated EA base on my requirement such as trading pairs etc. please apply if you are capable in handling this project for
I'm only seeking experienced developers who have successfully completed projects similar to this. I require someone to develop a copy-trading system that can execute trades on clients' mt4/mt5 upon my posting on platforms like Telegram or spreadsheets . Additionally, I need a feature for tracking and recording the trading signals that I send. I'll provide further details and examples during our discussion
I need a professional or expert who is a trader and also know about coding that can quote a profitable strategy and code the strategy for me in MT4 with my specification, If you are capable of doing this I will be glad to share my requirement with you to get started

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD