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

MQL4 Göstergeler

İş tamamlandı

Tamamlanma süresi: 71 gün

İş Gereklilikleri

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! 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(199)
Projeler
287
52%
Arabuluculuk
0
Süresi dolmuş
1
0%
Serbest
2
Geliştirici 2
Derecelendirme
(233)
Projeler
414
34%
Arabuluculuk
52
37% / 40%
Süresi dolmuş
153
37%
Yüklendi
3
Geliştirici 3
Derecelendirme
(167)
Projeler
192
11%
Arabuluculuk
37
38% / 35%
Süresi dolmuş
5
3%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(548)
Projeler
825
73%
Arabuluculuk
15
53% / 13%
Süresi dolmuş
193
23%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(57)
Projeler
72
22%
Arabuluculuk
13
46% / 15%
Süresi dolmuş
5
7%
Serbest
6
Geliştirici 6
Derecelendirme
(48)
Projeler
91
31%
Arabuluculuk
28
29% / 43%
Süresi dolmuş
42
46%
Serbest
7
Geliştirici 7
Derecelendirme
(253)
Projeler
404
38%
Arabuluculuk
83
41% / 19%
Süresi dolmuş
70
17%
Yüklendi
8
Geliştirici 8
Derecelendirme
(563)
Projeler
931
47%
Arabuluculuk
301
59% / 25%
Süresi dolmuş
123
13%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(66)
Projeler
143
34%
Arabuluculuk
10
10% / 60%
Süresi dolmuş
26
18%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 3 gün