Well, some more work and I think I may have come to understand the "Draw_Histogram" portion of the SetIndexStyle() statement....
To draw a Histogram requires two points on the Y axis, an upper point and a lower point. The "Draw_Histogram" function utilizes the last 2 buffer outputs to obtain those points. It appears the 1st buffer is the beginning point on the Y axis and the 2nd buffer is the ending point on the Y axis.
Here is an example:
//--------------------------------------------------//
SetIndexStyle(0,DRAW_LINE,2,1);
SetIndexStyle(1,DRAW_LINE,0,2);
SetIndexStyle(2,DRAW_LINE,0,2);
SetIndexStyle(3,DRAW_HISTOGRAM,0,1);
//---------------------------------------------------//
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexBuffer(3,ExtMapBuffer4);
//---------------------------------------------------//
ExtMapBuffer1[cnt]= Pivot_Point ;
ExtMapBuffer2[cnt]= Pivot_Point+(Buy_Line*Point); // 1st Point
ExtMapBuffer3[cnt]= Pivot_Point+(Short_Line*Point); //2nd Point
ExtMapBuffer4[cnt]= (Pivot_Point+(Buy_Line*Point)); // Histogram output
//---------------------------------------------------//
The length of the Histogram line is the difference between these 2 buffer points. By altering the distance between these 2 points, the length of the Histogram line is altered as well.
Hope I am correct in my deductions... If anyone has anything to add please do.. I would like to know that I fully understand this function.
As well, hope this explanation might help someone else who is trying to utilize this function in their work.
Sincerely,
Chief
