ASKBID_v2





//+------------------------------------------------------------------+
//|                        Bars with Ask                             |
//+------------------------------------------------------------------+
#property  indicator_chart_window
#property  indicator_buffers 2
#property  indicator_color1  Blue // öâåò 1
#property  indicator_color2  Blue // öâåò 2
#property  indicator_width1  5 // òîëùèíà 1-é ëèíèè
#property  indicator_width2  5 // òîëùèíà 2-é ëèíèè
double _Ask[],_Bid[];
double Spread;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{
  SetIndexStyle(0,DRAW_HISTOGRAM);                  // èçìåíåíî
  SetIndexBuffer(0,_Ask);
  SetIndexStyle(1,DRAW_HISTOGRAM);                  // èçìåíåíî
  SetIndexBuffer(1,_Bid);
  
  Spread=MarketInfo(Symbol(),MODE_SPREAD)*Point;
  return(0);
}
 
int start()
{
  int i,counted_bars=IndicatorCounted();
 
  if(counted_bars==0)
  {
    for(i=Bars; i>0; i--)
    {
      _Bid[i]=Close[i];
      _Ask[i]=Close[i]+Spread;
    }
  }
 
  _Ask[0]=Ask; _Bid[0]=Bid;
 
 //Comment("High DAY",MarketInfo(Symbol(),MODE_HIGH),"\n","Low DAY",MarketInfo(Symbol(),MODE_LOW));
 return(0);
}



Sample





Analysis



Market Information Used:


Series array that contains close prices for each bar


Indicator Curves created:

Implements a curve of type DRAW_HISTOGRAM

Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features: