//+------------------------------------------------------------------+ //| Waddah Attar Buy Sell Volume | //| Copyright © 2007, ww.metaforex.net | //| Waddah Attar www.metaforex.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, www.metaforex.net" #property link "www.metaforex.net" //---- #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Green #property indicator_color2 Red #property indicator_color3 Yellow //---- buffers double P1; double P2; double P1Buffer[]; double P2Buffer[]; double P3Buffer[]; //---- //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { SetIndexBuffer(0, P1Buffer); SetIndexBuffer(1, P2Buffer); SetIndexBuffer(2, P3Buffer); //---- SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2); //---- IndicatorDigits(0); Comment("Waddah Attar Buy Sell Volume www.metaforex.net"); return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { Comment(""); return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int i,ii; static int pii=-1; for(i = 0; i iClose(Symbol(),PERIOD_M1,i+1)) { P1 = P1+(iVolume(Symbol(),PERIOD_M1,i)); } if (iClose(Symbol(),PERIOD_M1,i)