Indicator to color OHLC bars/candles based on volume and price action

MQL4 Indicateurs

Tâche terminée

Temps d'exécution 71 jours

Spécifications

Hi I need this indicator translated from pinescript (tradingview) to MQL4.


If the volume for the bar is below average the bar is GREY

if it is above average there are 4 variations:  

1. Close>Open, Close > High[1] -- Dark Green

2. Close<Open, Close < Low[1] -- Red

3. Close>Open, Close < High[1] -- Light Green

4. Close<Open, Close > Low[1] -- Orange

I need the volume histogram plotted the same colors with the SMA visible as well. 


//@version=3

//Coded by Naan_Deal

study(title=" ", overlay=false)

showMA=input(true)

//Volume and Volume SMA

lengthMA=input(20)

TimesMA=input(1)

v2=volume

v1=sma(v2, lengthMA)*TimesMA

//Positive or Negative Candle

isUp() => close > close[1]

isDown() => close <= close[1]

//Candle types

isOutsideUp() => close > high[1] and isUp() and v2>v1

isOutsideDown() => close < low[1] and isDown() and v2>v1

isInsideUp() => close < high[1] and isUp() and v2>v1

isInsideDown() => close > low[1] and isDown() and v2>v1

isNothing() => v2<v1

//Plotting

plotColour = (isInsideUp() ? lime : isInsideDown() ? orange : isOutsideUp() ? green : isOutsideDown() ? red : isNothing() ? silver : na)

plot(series=v2, style=columns, color=plotColour,

     title="Relative Volume")

hline(price=0, linestyle=solid, color=color(gray, 80))

plot(showMA?sma(v2, lengthMA):na, color=black, title="Volume MA")

barcolor(plotColour)



Thank you! 

Répondu

1
Développeur 1
Évaluation
(199)
Projets
287
52%
Arbitrage
0
En retard
1
0%
Gratuit
2
Développeur 2
Évaluation
(233)
Projets
414
34%
Arbitrage
52
37% / 40%
En retard
153
37%
Chargé
3
Développeur 3
Évaluation
(167)
Projets
192
11%
Arbitrage
37
38% / 35%
En retard
5
3%
Travail
4
Développeur 4
Évaluation
(548)
Projets
825
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Travail
5
Développeur 5
Évaluation
(57)
Projets
72
22%
Arbitrage
13
46% / 15%
En retard
5
7%
Gratuit
6
Développeur 6
Évaluation
(48)
Projets
91
31%
Arbitrage
28
29% / 43%
En retard
42
46%
Gratuit
7
Développeur 7
Évaluation
(253)
Projets
404
38%
Arbitrage
83
41% / 19%
En retard
70
17%
Chargé
8
Développeur 8
Évaluation
(563)
Projets
931
47%
Arbitrage
301
59% / 25%
En retard
123
13%
Travail
9
Développeur 9
Évaluation
(66)
Projets
143
34%
Arbitrage
10
10% / 60%
En retard
26
18%
Gratuit
Commandes similaires
Attached to this post is the pinescript tradingview indicator code, i will also attach a link to the youtube explanatory video of how the indicator works on tradingview, i will like the exact thing on mt5, including the percentage prediction on each bar and the win loss counter ... it should work on both forex, stock and volatility indices on mt5 https://youtu.be/30FLWyEWroM?si=q9GpvJVHp-oyvsvZ // This work is
Hello! I want to develop an indicator for tradingview. Twice a day on 12H candle close the indicator will show a set of timeframes if they closed bullish or bearish. Show daybreak with a vertical line. Every 12H closure will show a box somewhere, preferably above/below that candle on all timeframes up to D1, clearly showing which candle is the close of 12H. The box will contain info about which timeframes closed
Hello, Looking for Multipair and Multi-timeframe scanner indicator based on Zigzag. It's going to be a simple indicator based on Higher high and Lower Low Formation. I want for both platform for MT4/5. It should have alert features as well have to scan from custom pairs, marketwatch also able to use custom timeframe. I'll share zigzag formation to the right candidate when it should gives an alert. And if you are not
Hello, I purchased a TradingView script that works very well, but it doesn’t have any alerts. All I need are alerts programmed so I don’t have to sit behind the chart watching it all the time
Hi! Are you able to code an exact copy of an indicator for trading view? It must be exactly the same. if you are expert in doing this I am expecting your message in the comment session to share you with the indicator I want to duplicate. Looking forward to your positive response and the opportunity to collaborate with you on this project
Hello developers I hope this message finds you well. I am currently seeking a highly skilled developer for an important project. I need an exact copy of a TradingView indicator to be coded for the MetaTrader 4/5 platform. The indicator must be replicated with absolute precision, maintaining all its functionalities and features. Would you be able to take on this project? If so, I would appreciate discussing the
Hello Developers, I am looking for a highly skilled and experienced developer to code an exact copy of a specific indicator for TradingView. The indicator must be replicated with precise accuracy, maintaining all functionalities and features of the original. Requirements: Proficiency in Pine Script and experience with TradingView indicators. Demonstrated ability to replicate complex indicators with exact
MODIFICATION OF AND EXISTING EXPERT BY ADDING INDICATORS TO FUNCTION AS FILTERS, TRADE CLOSURE BY THE REVERSAL OF THE adx INDICATOR, LOOKING FOR TRADE BASED ON THE COLOR OF THE PERCENTAGE CHANGE INDICATOR (DPC) SELLING THE COLR IS RED AND DECREASING IN PERCENTAGE AND BUYING WHEN THE COLOR IS GREEN AND INCREASING IN PERCENTAGE . There is an EA I have been using which I splitted into long trading and short trading. It
i am looking for experienced programmer to create indicator for me. i am willing to pay for the service. and if it works amazingly like i expected. i will tip more money
I recently bought an indicator, that sends out notifications for trades i need to place, on the notification these and SL and TP, so i want an EA that would automate that for me

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
de 1 à 3 jour(s)