void CreateQuadrilateral_FILL(int chart_id, // Chart identifier
string name, // object name
// Chart window
datetime time1, // First time coordinate
double price1, // First
price coordinate datetime time2, // Second time coordinate
double price2, // Second price coordinate
datetime time3, // Third time coordinate
double price3, // Third price coordinate
datetime time4, // First time coordinate
double price4, // First price coordinate
color Color_Quadrilateral_FILL=Gray,//RosyBrown //MistyRose //RosyBrown //clrGreenYellow //line color
int style_Quadrilateral_FILL=STYLE_SOLID, // line style
int width_Quadrilateral_FILL=1 // line width
)
{
ObjectCreate(chart_id,name, OBJ_TRIANGLE, 0, 0,0);
ObjectSetInteger(chart_id,name,OBJPROP_COLOR,Color_Quadrilateral_FILL);
ObjectSetInteger(chart_id,name,OBJPROP_STYLE,style_Quadrilateral_FILL);
ObjectSetInteger(chart_id,name,OBJPROP_WIDTH,0);
ObjectSetInteger(chart_id,name,OBJPROP_BACK,true);
ObjectSetInteger(chart_id,name,OBJPROP_TIME,time1);
ObjectSetInteger(chart_id,name,OBJPROP_TIME,1,time2);
ObjectSetInteger(chart_id,name,OBJPROP_TIME,2,time3);
ObjectSetInteger(chart_id,name,OBJPROP_TIME,3,time4);
ObjectSetInteger(chart_id,name,OBJPROP_FILL,1);
ObjectSetDouble(chart_id,name,OBJPROP_PRICE,price1);
ObjectSetDouble(chart_id,name,OBJPROP_PRICE,1,price2);
ObjectSetDouble(chart_id,name,OBJPROP_PRICE,2,price3);
ObjectSetDouble(chart_id,name,OBJPROP_PRICE,3,price4);
ObjectCreate(chart_id,name+1, OBJ_TRIANGLE, 0, 0,0);
ObjectSetInteger(chart_id,name+1,OBJPROP_COLOR,Color_Quadrilateral_FILL);
ObjectSetInteger(chart_id,name+1,OBJPROP_STYLE,style_Quadrilateral_FILL);
ObjectSetInteger(chart_id,name+1,OBJPROP_WIDTH,0);
ObjectSetInteger(chart_id,name+1,OBJPROP_BACK,true);
ObjectSetInteger(chart_id,name+1,OBJPROP_TIME,time4);
ObjectSetInteger(chart_id,name+1,OBJPROP_TIME,1,time2);
ObjectSetInteger(chart_id,name+1,OBJPROP_TIME,2,time3);
ObjectSetInteger(chart_id,name,OBJPROP_TIME,3,time4);
ObjectSetInteger(chart_id,name+1,OBJPROP_FILL,1);
ObjectSetDouble(chart_id,name+1,OBJPROP_PRICE,price4);
ObjectSetDouble(chart_id,name+1,OBJPROP_PRICE,1,price2);
ObjectSetDouble(chart_id,name+1,OBJPROP_PRICE,2,price3);
}