Multi CCI Indicator Conversion from Pinescript to MQL4

MQL4 Indicateurs Convertir

Spécifications

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)


Répondu

1
Développeur 1
Évaluation
(38)
Projets
50
10%
Arbitrage
1
0% / 0%
En retard
8
16%
Gratuit
2
Développeur 2
Évaluation
(94)
Projets
190
66%
Arbitrage
8
25% / 50%
En retard
2
1%
Gratuit
3
Développeur 3
Évaluation
(126)
Projets
158
35%
Arbitrage
4
25% / 50%
En retard
13
8%
Gratuit
4
Développeur 4
Évaluation
(546)
Projets
823
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Travail
5
Développeur 5
Évaluation
(203)
Projets
303
35%
Arbitrage
56
38% / 38%
En retard
99
33%
Gratuit
6
Développeur 6
Évaluation
(220)
Projets
249
61%
Arbitrage
3
33% / 67%
En retard
5
2%
Travail
7
Développeur 7
Évaluation
(401)
Projets
529
74%
Arbitrage
9
44% / 0%
En retard
24
5%
Gratuit
8
Développeur 8
Évaluation
(555)
Projets
922
48%
Arbitrage
300
59% / 25%
En retard
123
13%
Chargé
Commandes similaires
Hello, I need to convert and indicator from pindescript to a bot in mt5 with a specific strategy. the pinescript is simple and is basicly modified moving average crossover with atr channel
Hi, I have one indicator for MT4 and it is working fine as I need. Now I want to convert it into MT5 version. The basic idea is that I put a starting date in one box, symbol in second box, number of lots in 3 box, per point value in 4th box. Indicator generate a virtual equity from starting minute till current date and time and shows it in 5th box and before this, it shows the starting price also, which I set by date
The developer needs to convert the attached ZZ semafor indicator from MQL4/MT4 platform to Pine Script, ensuring it includes alerts. hoping to get this done within a day. This involves translating the indicator's logic, including its ZigZag calculations and plotting logic, into Pine Script's syntax. Additionally, the script should generate alerts based on specific conditions or events within the indicator's behavior
Hello I have Order Flow Chart & Software Depends on Ninjatrader I want to EA a trading robot that works on different platforms via API Expert NinjaTrader Programmer for Cross-Platform Trading Robot I'm in need of a skilled NinjaTrader programmer to develop a cutting-edge trading robot that seamlessly operates across various platforms via API integration? I want a customized Expert Advisors (EAs) tailored to your
Hey there, I need to convert an indicator from ninja to mt4 I will attach the ninjatrader indicator script to be converted into mt4 If you can do this kindly bid and let's discuss about the project Thanks
Hello, I need a developper to convert my Pine Script strategy to MQL5 because I need to do grid search backtesting It's a quite simple strategy, 2 ema, and depending on the position of the curve relative to those 2 ema (a percentage over or under) it selects a branch in which a red 1mn candle closing price settled at a certain percentage triggers a sell and a green 1mn candle triggers a buy, always 100% equity, easy
Seeking assistance to covert Pine script from TradingView to MetaTrader 5. Require seamless transition for optimal functionality. Appreciate expertise in script conversion. Contact for further details Expertly convert Pine script from TradingView to MetaTrader 5 with precision and efficiency. Ensure seamless functionality and compatibility for optimal trading experience. Experienced in script conversion, I guarantee
Programmer needed to make my HFT bot more suitable for live trading. After testing and proven, if up to expectation, full funds will be received. Genuine offer but if this is successful further discussions can take place. DM me first so we can discuss further
I have a Trading View Strategy which is working well. Now, i want to Convert my trading platform to Meta trader. I need an Experienced Expert for Conversion. If this sounds as something that interest you, you can respond to my message
I want to convert pinescript strategy to Metatrader 5. I'm seeking expert MT5 developer to convert my Pine Script strategy to MT5. I have the strategy working perfectly on my Tradinggview and I want it to be working perfectly on MQL5. Experience with both Pine Script and MT5 required

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD