• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:47pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:47pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

3 Bar Fractal with mid-bar and bar on each side 11 replies

Volume indicator that predicts total volume of current candle 14 replies

Better volume low volume bar alert 3 replies

Looking for indicator that will highlight the previous 24 hours from current candle 4 replies

Pin bar, pin bar, pin bar 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 8
Attachments: Volume Bar indicator - highlight the bar
Exit Attachments

Volume Bar indicator - highlight the bar

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Nov 9, 2013 5:04pm Nov 9, 2013 5:04pm
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Hi I was hoping someone may have some time on their hands and be interested in coding the below indicator.

The indicator needs to highlight a candle if a certain amount of volume is reached for a range.
i.e 1 hour candle has more than 9000 volume.

Many thanks
  • Post #2
  • Quote
  • Nov 10, 2013 7:35am Nov 10, 2013 7:35am
  •  Zen_Leow
  • Joined Jun 2008 | Status: Programming for a better future. | 649 Posts
Here. settings pretty straightforward. Look for the arrows.

Up arrows show bullish bar with volume more than predefined volume.
Down arrows shows the opposite.

regards,
Zen
Attached File
File Type: mq4 VolumeMarker_v1.mq4   5 KB | 2,364 downloads
Programming for a better future.
 
 
  • Post #3
  • Quote
  • Nov 10, 2013 8:54am Nov 10, 2013 8:54am
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Thanks Zen,

There is an error with the getPeriodString.

I was trying to get the indicator to look more like the attached for RSI above a certain level.

I am only interested to see a candle change if the hour volume is above 9000.

I have tried to modify below but as you can see my knowledge is limited.

#property copyright "Mn"

#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 Blue
#property indicator_color2 Blue
#property indicator_color3 Blue
#property indicator_color4 Blue
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 4
#property indicator_width4 4
#property indicator_color5 Red
#property indicator_color6 Red
#property indicator_color7 Red
#property indicator_color8 Red
#property indicator_width5 1
#property indicator_width6 1
#property indicator_width7 4
#property indicator_width8 4

extern int mEarliestBar = 1000,
mVolPrd = 1,
mUpperLvl = 10000,
mLowerLvl = 2000;

double SigBarLo[], SigBarHi[], SigBarCl[], SigBarOp[],
SigBarLo2[], SigBarHi2[], SigBarCl2[], SigBarOp2[];

//-----------------------------------------------------------------------------
void init() {
SetIndexBuffer(0, SigBarLo);
SetIndexBuffer(1, SigBarHi);
SetIndexBuffer(2, SigBarCl);
SetIndexBuffer(3, SigBarOp);
SetIndexBuffer(4, SigBarLo2);
SetIndexBuffer(5, SigBarHi2);
SetIndexBuffer(6, SigBarCl2);
SetIndexBuffer(7, SigBarOp2);

SetIndexEmptyValue(0, 0);
SetIndexEmptyValue(1, 0);
SetIndexEmptyValue(2, 0);
SetIndexEmptyValue(3, 0);

SetIndexStyle(0, DRAW_HISTOGRAM);
SetIndexStyle(1, DRAW_HISTOGRAM);
SetIndexStyle(2, DRAW_HISTOGRAM);
SetIndexStyle(3, DRAW_HISTOGRAM);
SetIndexStyle(4, DRAW_HISTOGRAM);
SetIndexStyle(5, DRAW_HISTOGRAM);
SetIndexStyle(6, DRAW_HISTOGRAM);
SetIndexStyle(7, DRAW_HISTOGRAM);

SetIndexDrawBegin(0, Bars - mEarliestBar);
SetIndexDrawBegin(1, Bars - mEarliestBar);
SetIndexDrawBegin(2, Bars - mEarliestBar);
SetIndexDrawBegin(3, Bars - mEarliestBar);
SetIndexDrawBegin(4, Bars - mEarliestBar);
SetIndexDrawBegin(5, Bars - mEarliestBar);
SetIndexDrawBegin(6, Bars - mEarliestBar);
SetIndexDrawBegin(7, Bars - mEarliestBar);

return(0);
}

//-----------------------------------------------------------------------------
void start()
{
int mCounted = IndicatorCounted();
if(mCounted < 0) return (-1);
if(mCounted > 0) mCounted--;
int mLimit = Bars - mCounted;
for (int i = mLimit; i >= 0; i--)
{
double vVol1 = iVolume(NULL, 0, vVol1, PRICE_CLOSE, i+1);
double vVol2 = iVolume(NULL, 0, vVol2, PRICE_CLOSE, i+2);

if(vVol1 > mUpperLvl && vVol2 < mUpperLvl)
{
SigBarLo = High;
SigBarHi = Low;
SigBarCl = Open;
SigBarOp = Close;
}
if(vVol1 < mLowerLvl && vVol2 > mLowerLvl)
{
SigBarLo2 = High;
SigBarHi2 = Low;
SigBarCl2 = Open;
SigBarOp2 = Close;
}
} // for i

return(0);
}

//-----------------------------------------------------------------------------
void deinit()
{

return(0);
}

//-----------------------------------------------------------------------------
Attached File
File Type: mq4 Squawk Rsi (1).mq4   3 KB | 981 downloads
 
 
  • Post #4
  • Quote
  • Nov 10, 2013 9:34am Nov 10, 2013 9:34am
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
See using one of my old indis.

Updated for 1hr chart and volume

M
Attached File
File Type: mq4 mn HighlightBar.mq4   3 KB | 1,275 downloads
If you think I'm mad, I must be mad
 
 
  • Post #5
  • Quote
  • Nov 10, 2013 10:03am Nov 10, 2013 10:03am
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Thanks Futurespec,

Hope you dont mind. Was going to send you a PM but hate doing that so put a request on open forum to see if anyone could help.

Thanks a lot a really appreciate it..
 
 
  • Post #6
  • Quote
  • Nov 10, 2013 10:21am Nov 10, 2013 10:21am
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Futuerspec,

Is there anyway when you drill down on time frames to see the representing 2 half hour bars and 4 15 minutes bars that represent the 1 hour volume time frame.

If its a pain in the arse dont worry about it.

Cheers
 
 
  • Post #7
  • Quote
  • Nov 11, 2013 6:59am Nov 11, 2013 6:59am
  •  Zen_Leow
  • Joined Jun 2008 | Status: Programming for a better future. | 649 Posts
Quoting squawk
Disliked
Thanks Zen, There is an error with the getPeriodString. I was trying to get the indicator to look more like the attached for RSI above a certain level. I am only interested to see a candle change if the hour volume is above 9000. I have tried to modify below but as you can see my knowledge is limited.
Ignored
Hi squawk, it's not an error.

The compiler is just saying I wrote a function that was never used. I was lazy to delete it since I have it in almost all the indicators I wrote.

I didn't realise your "highlight" actually means changing the candle's color. I thought that pointing at it with arrows will suffice. my bad.
In any case, both Futurespec's and mine points at the same candles. so you take your pick.
Programming for a better future.
 
 
  • Post #8
  • Quote
  • Nov 11, 2013 7:46am Nov 11, 2013 7:46am
  •  Zen_Leow
  • Joined Jun 2008 | Status: Programming for a better future. | 649 Posts
I modified Futurespec's codes according to your added request. can drill down all the way to M1.

regards,
Zen
Attached File
File Type: mq4 mn HighlightBar_v2.mq4   3 KB | 1,871 downloads
Programming for a better future.
 
 
  • Post #9
  • Quote
  • Nov 11, 2013 8:57am Nov 11, 2013 8:57am
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Quoting Zen_Leow
Disliked
I modified Futurespec's codes according to your added request. can drill down all the way to M1. regards, Zen {file}
Ignored
Thanks a lot Zen really appreciate the modification.

Cheers
 
 
  • Post #10
  • Quote
  • Nov 11, 2013 12:09pm Nov 11, 2013 12:09pm
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Hi Futurespec or Zen,

Is there anyway to code the indicator so it draws the outline and wick of the candles instead of histogram covering them completely?

I've had a go, have lines but not in the wright places.

Cheers
 
 
  • Post #11
  • Quote
  • Nov 11, 2013 12:23pm Nov 11, 2013 12:23pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
Thanks Zen for the update; did not notice the post.

It draws them already??

(anyway not doing any more updates)

M.
Attached Image
If you think I'm mad, I must be mad
 
 
  • Post #12
  • Quote
  • Nov 11, 2013 2:03pm Nov 11, 2013 2:03pm
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
No problem Futurespec I appreciate all your help.

Cheers
 
 
  • Post #13
  • Quote
  • Nov 12, 2013 9:53am Nov 12, 2013 9:53am
  •  Zen_Leow
  • Joined Jun 2008 | Status: Programming for a better future. | 649 Posts
Quoting squawk
Disliked
Hi Futurespec or Zen, Is there anyway to code the indicator so it draws the outline and wick of the candles instead of histogram covering them completely? I've had a go, have lines but not in the wright places. Cheers
Ignored
That would mean drawing objects instead of using a histogram buffer and that's quite a bit of a hassle to code. plus it will potentially create a lot of rectangle objects that will clutter up your chart. Don't think I have the time to do this one for you.
Programming for a better future.
 
 
  • Post #14
  • Quote
  • Nov 12, 2013 5:42pm Nov 12, 2013 5:42pm
  •  squawk
  • Joined Oct 2013 | Status: Member | 4,489 Posts
Zen,

Sorry just picked up your reply. No problem I appreciate your help with previous.

Cheers
 
 
  • Post #15
  • Quote
  • Apr 10, 2014 10:00am Apr 10, 2014 10:00am
  •  78020f
  • | Joined Dec 2008 | Status: Member | 24 Posts
Hi Zen

Could you please let me know if your Volume Marker V1 Indicator
generates the signal when the markets open.

Waiting your reply while appreciating
your help.

Could you please reply to this thread or
me email [email protected]

Thank You.
Frank Richardson
Ottawa, Ontario, Canada
Enter Signature
 
 
  • Post #16
  • Quote
  • Feb 20, 2015 9:46am Feb 20, 2015 9:46am
  •  Qqe
  • | Membership Revoked | Joined Feb 2009 | 213 Posts
Here is a volume-like indicator. Future volume indicator. Interesting coding.

https://www.mql5.com/en/market/product/7788

https://www.youtube.com/embed/cFpGv2juH74


https://c.mql5.com/31/48/EURUSDM5.png

https://c.mql5.com/31/48/GBPUSDH4.png
https://c.mql5.com/31/48/GBPUSDM30.png
 
 
  • Post #17
  • Quote
  • Feb 20, 2015 12:45pm Feb 20, 2015 12:45pm
  •  tylerbose
  • Joined Oct 2011 | Status: don't trade like i do | 505 Posts
Quoting Qqe
Disliked
Here is a volume-like indicator. Future volume indicator. Interesting coding. https://www.mql5.com/en/market/product/7788 https://www.youtube.com/embed/cFpGv2juH74 {image} {image} {image}
Ignored
"The indicator Future Volume is a unique, professional financial instrument based on total volumes, which is able to predict further price changes"

.....yeah right
i lose money for a living
 
 
  • Post #18
  • Quote
  • Feb 20, 2015 4:03pm Feb 20, 2015 4:03pm
  •  Qqe
  • | Membership Revoked | Joined Feb 2009 | 213 Posts
Quoting tylerbose
Disliked
{quote} "The indicator Future Volume is a unique, professional financial instrument based on total volumes, which is able to predict further price changes" .....yeah right
Ignored
You know what "predict" means, amigo guy?
 
 
  • Post #19
  • Quote
  • Feb 20, 2015 4:30pm Feb 20, 2015 4:30pm
  •  tylerbose
  • Joined Oct 2011 | Status: don't trade like i do | 505 Posts
Quoting Qqe
Disliked
{quote} You know what "predict" means, amigo guy?
Ignored
why aren't you flagged as commercial member already ?.
i lose money for a living
 
 
  • Post #20
  • Quote
  • Feb 20, 2015 4:34pm Feb 20, 2015 4:34pm
  •  Qqe
  • | Membership Revoked | Joined Feb 2009 | 213 Posts
I am an ordinary user having this indicator.
 
 
  • Platform Tech
  • /
  • Volume Bar indicator - highlight the bar
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022