dark_messiah_fall Posted February 25, 2010 Report Share Posted February 25, 2010 hi i need the exact volume of buy and sell in number on my chart thanks in advance :shand: Quote Link to comment Share on other sites More sharing options...
soundfx Posted February 25, 2010 Report Share Posted February 25, 2010 Re: (req) the volum of buy and sell in number on chart I'm not sure if this indicator is quite what you want, try it and see... //+------------------------------------------------------------------+ //| TicksSeparateVolume.mq4 | //| Copyright © 2008, FOREXflash. | //| [url]http://www.metaquotes.net[/url] | //+------------------------------------------------------------------+ #property copyright "Copyright © 2008, FOREXflash Software Corp." #property link "http://www.metaquotes.net" //----- #property indicator_separate_window #property indicator_buffers 2 #property indicator_minimum 0 #property indicator_color1 Lime #property indicator_color2 Red double UpTicks[]; double DownTicks[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorShortName("TicksSeparateVolume("+Symbol()+")"); SetIndexBuffer(0,UpTicks); SetIndexBuffer(1,DownTicks); SetIndexStyle(0,DRAW_HISTOGRAM,0,3); SetIndexStyle(1,DRAW_HISTOGRAM,0,2); SetIndexLabel(0,"UpTicks"); SetIndexLabel(1,"DownTicks"); return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { ObjectDelete("UpTicks1"); ObjectDelete("DownTicks1"); ObjectDelete("UpTicks2"); ObjectDelete("DownTicks2"); Comment(""); return(0); } //+------------------------------------------------------------------+ //| Ticks Volume Indicator | //+------------------------------------------------------------------+ int start() { ObjectDelete("UpTicks1"); ObjectDelete("DownTicks1"); ObjectDelete("UpTicks2"); ObjectDelete("DownTicks2"); int i,counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; //---- for(i=0; i<limit; i++) { UpTicks[i]=(Volume[i]+(Close[i]-Open[i])/Point)/2; DownTicks[i]=Volume[i]-UpTicks[i]; } string BV="BUYERS VOLUME: "+DoubleToStr(UpTicks[0],0)+""; string SV="SELLERS VOLUME: "+DoubleToStr(DownTicks[0],0)+""; ObjectCreate("UpTicks2", OBJ_LABEL, WindowFind("TicksSeparateVolume("+Symbol()+")"), 0, 0); ObjectSetText("UpTicks2",StringSubstr((BV),0), 10, "Tahoma" ,Lime); ObjectSet("UpTicks2", OBJPROP_CORNER, 0); ObjectSet("UpTicks2", OBJPROP_XDISTANCE, 6); ObjectSet("UpTicks2", OBJPROP_YDISTANCE, 22); ObjectCreate("DownTicks2", OBJ_LABEL, WindowFind("TicksSeparateVolume("+Symbol()+")"), 0, 0); ObjectSetText("DownTicks2",StringSubstr((SV),0), 10, "Tahoma" ,Red); ObjectSet("DownTicks2", OBJPROP_CORNER, 0); ObjectSet("DownTicks2", OBJPROP_XDISTANCE, 6); ObjectSet("DownTicks2", OBJPROP_YDISTANCE, 42); //---- return(0); } //+------------------------------------------------------------------+ heisamit 1 Quote Link to comment Share on other sites More sharing options...
dark_messiah_fall Posted February 25, 2010 Author Report Share Posted February 25, 2010 Re: (req) the volum of buy and sell in number on chart nice could you fix& place it in back ground chart not in new line? Quote Link to comment Share on other sites More sharing options...
soundfx Posted February 26, 2010 Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart Try this one :) Out of interest - are you planning to use this indi for scalping ? I can see it being quite useful, I'll be interested to hear if it helps. //+------------------------------------------------------------------+ //| Volume.mq4 | //| | //+------------------------------------------------------------------+ #property copyright "" #property link "" //----- #property indicator_chart_window #property indicator_buffers 2 #property indicator_minimum 0 double UpTicks[]; double DownTicks[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { SetIndexBuffer(0,UpTicks); SetIndexBuffer(1,DownTicks); return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { ObjectDelete("UpTicks1"); ObjectDelete("DownTicks1"); ObjectDelete("UpTicks2"); ObjectDelete("DownTicks2"); Comment(""); return(0); } //+------------------------------------------------------------------+ //| Ticks Volume Indicator | //+------------------------------------------------------------------+ int start() { ObjectDelete("UpTicks1"); ObjectDelete("DownTicks1"); ObjectDelete("UpTicks2"); ObjectDelete("DownTicks2"); int i,counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; //---- for(i=0; i<limit; i++) { UpTicks[i]=(Volume[i]+(Close[i]-Open[i])/Point)/2; DownTicks[i]=Volume[i]-UpTicks[i]; } string BV="BUYERS VOLUME: "+DoubleToStr(UpTicks[0],0)+""; string SV="SELLERS VOLUME: "+DoubleToStr(DownTicks[0],0)+""; ObjectCreate("UpTicks2", OBJ_LABEL, 0, 0, 0); ObjectSetText("UpTicks2",StringSubstr((BV),0), 10, "Tahoma" ,Lime); ObjectSet("UpTicks2", OBJPROP_CORNER, 0); ObjectSet("UpTicks2", OBJPROP_XDISTANCE, 6); ObjectSet("UpTicks2", OBJPROP_YDISTANCE, 22); ObjectCreate("DownTicks2", OBJ_LABEL, 0, 0, 0); ObjectSetText("DownTicks2",StringSubstr((SV),0), 10, "Tahoma" ,Red); ObjectSet("DownTicks2", OBJPROP_CORNER, 0); ObjectSet("DownTicks2", OBJPROP_XDISTANCE, 6); ObjectSet("DownTicks2", OBJPROP_YDISTANCE, 42); //---- return(0); } //+------------------------------------------------------------------+ heisamit 1 Quote Link to comment Share on other sites More sharing options...
dark_messiah_fall Posted February 26, 2010 Author Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart soundfx, thanks in advance i gonna search for new method for scalping and divergence if i be success i share with you sure about that you helped me i check that it's just number i need number and histogram in background together again thanks and could you shift the numbers 2 cm down from where it is now X_X Quote Link to comment Share on other sites More sharing options...
soundfx Posted February 26, 2010 Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart I hope the new method works well. Those numbers on the screen are quite handy, I think I'll start using them myself :) If you want to move the text and numbers 2cm down the screen, just change the Y-distance in the code as follows: ObjectSet("UpTicks2", OBJPROP_YDISTANCE, 80); ObjectSet("DownTicks2", OBJPROP_YDISTANCE, 100); Are you saying that you also want the histogram on the main chart ? If so, I'm not totally sure how to do that - if anyone else does please let us know! Quote Link to comment Share on other sites More sharing options...
toddanderson Posted February 26, 2010 Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart thanks for your time and work Have you given thought to a multi time frame indicator, you could use it as a when to place entry indicator , It would be nice to see only one line of whoever is in control, the buyer or seller instead of seeing both Thank you I hope the new method works well. Those numbers on the screen are quite handy, I think I'll start using them myself :) If you want to move the text and numbers 2cm down the screen, just change the Y-distance in the code as follows: ObjectSet("UpTicks2", OBJPROP_YDISTANCE, 80); ObjectSet("DownTicks2", OBJPROP_YDISTANCE, 100); Are you saying that you also want the histogram on the main chart ? If so, I'm not totally sure how to do that - if anyone else does please let us know! Quote Link to comment Share on other sites More sharing options...
soundfx Posted February 26, 2010 Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart Hi Todd, Your multi-time frame idea could prove to be handy, I'll see if I can create something. However, I think that we still need to see both buying volume and selling volume as this gives us an idea of the volume strength. Just showing who's in control doesn't mean too much as that should be evident from the chart, however the difference between the two can be much more interesting. For example: Buy: 123 Sell: 122 gives a totally different picture to: Buy: 123 Sell: 36 However in both, buyers are in control. Quote Link to comment Share on other sites More sharing options...
toddanderson Posted February 26, 2010 Report Share Posted February 26, 2010 Re: (req) the volum of buy and sell in number on chart Yes you are correct, I did not think of the spread differance, thanks for pointing that out Hi Todd, Your multi-time frame idea could prove to be handy, I'll see if I can create something. However, I think that we still need to see both buying volume and selling volume as this gives us an idea of the volume strength. Just showing who's in control doesn't mean too much as that should be evident from the chart, however the difference between the two can be much more interesting. For example: Buy: 123 Sell: 122 gives a totally different picture to: Buy: 123 Sell: 36 However in both, buyers are in control. Quote Link to comment Share on other sites More sharing options...
soundfx Posted February 28, 2010 Report Share Posted February 28, 2010 Re: (req) the volum of buy and sell in number on chart Hi Guys, I've just found a handy feature in MT4 which I'd not noticed before. If you single left click on "BUYERS VOLUME: 35" for example, then you'll see a grey box appear around it. You can then click and drag "BUYERS VOLUME: 35" and place it anywhere on the screen you like. Single left click again and that new position is locked. The position resets to the original position when MT4 is restarted because the indicator will re-initialise, though this can still be very handy to ensure that the volumes are placed in a blank part of the screen whilst you're trading. Quote Link to comment Share on other sites More sharing options...
DOVADOV Posted March 1, 2010 Report Share Posted March 1, 2010 Re: (req) the volum of buy and sell in number on chart I think this indi that you looking for http://www.4shared.com/file/231951146/975371a/Indicator_Volumes_Buys_Sells.html kudos welcome...thanks Enjoy.... :D Quote Link to comment Share on other sites More sharing options...
soundfx Posted March 1, 2010 Report Share Posted March 1, 2010 Re: (req) the volum of buy and sell in number on chart Hi Dovadov, Thanks for the idea, however Dark was looking for an indicator which displays the actual numbers on the main chart rather than in an indicator - I see that this indicator is a line chart in an indicator window showing green lines for buy volume and red lines for sell volume. As things stand now, I think that Dark is still looking for the current indicator which shows the buy and sell numbers on the chart to also show a histogram in the main chart (in a similar way to the volumes one which be switched on in the chart properties, though displaying in the same way as the histogram in the original posted indicator). Also, I believe that Todd is looking for a volume indicator which shows the buy/sell volume numbers for other timeframes too in the main chart. For example: .................... 1M 5M 15M 30M 1H 4H Buy Volume: 48 83 127 777 768 7319 Sell Volume: 19 37 101 373 352 9378 Quote Link to comment Share on other sites More sharing options...
huuu Posted March 1, 2010 Report Share Posted March 1, 2010 Re: (req) the volum of buy and sell in number on chart I think this indi that you looking for http://[email protected]/file/231951146/975371a/Indicator_Volumes_Buys_Sells.html kudos welcome...thanks Enjoy.... :D If this can be turned into a multi time frame indicator, to take a look at the volume picture say across three or so time frames, I think it would be brilliant. Is this possible? Quote Link to comment Share on other sites More sharing options...
dark_messiah_fall Posted March 24, 2010 Author Report Share Posted March 24, 2010 Re: The volum of buy and sell in number on chart soundfx, huuu, DOVADOV, i think it's a nice indicator for indicate the trend from correction for example wave 4 in elliot i think i need your help beside me Quote Link to comment Share on other sites More sharing options...
lovebliss Posted February 25, 2011 Report Share Posted February 25, 2011 Could you please repose this indi? The link is dead...Thank you! I think this indi that you looking for http://www.4shared.com/file/231951146/975371a/Indicator_Volumes_Buys_Sells.html kudos welcome...thanks Enjoy.... :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.