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

MQL4 Indicatori

Lavoro terminato

Tempo di esecuzione 71 giorni

Specifiche

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! 

Con risposta

1
Sviluppatore 1
Valutazioni
(199)
Progetti
287
52%
Arbitraggio
0
In ritardo
1
0%
Gratuito
2
Sviluppatore 2
Valutazioni
(233)
Progetti
414
34%
Arbitraggio
52
37% / 40%
In ritardo
153
37%
Caricato
3
Sviluppatore 3
Valutazioni
(167)
Progetti
192
11%
Arbitraggio
37
38% / 35%
In ritardo
5
3%
In elaborazione
4
Sviluppatore 4
Valutazioni
(548)
Progetti
825
73%
Arbitraggio
15
53% / 13%
In ritardo
193
23%
In elaborazione
5
Sviluppatore 5
Valutazioni
(57)
Progetti
72
22%
Arbitraggio
13
46% / 15%
In ritardo
5
7%
Gratuito
6
Sviluppatore 6
Valutazioni
(48)
Progetti
91
31%
Arbitraggio
28
29% / 43%
In ritardo
42
46%
Gratuito
7
Sviluppatore 7
Valutazioni
(253)
Progetti
404
38%
Arbitraggio
83
41% / 19%
In ritardo
70
17%
Caricato
8
Sviluppatore 8
Valutazioni
(563)
Progetti
931
47%
Arbitraggio
301
59% / 25%
In ritardo
123
13%
In elaborazione
9
Sviluppatore 9
Valutazioni
(66)
Progetti
143
34%
Arbitraggio
10
10% / 60%
In ritardo
26
18%
Gratuito
Ordini simili
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

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
da 1 a 3 giorno(i)