OBJPROP_ANGLE Problem

 

I want to test OBJPROP_ANGLE function, and trying to draw a horizontal trandline, but the line sometime it appearss good, sometime is wrong, please see the attached photo, sometime appear nothing, please let me know what is wrong about it .

//+------------------------------------------------------------------+
//|                                                   趋势线test.mq4 |
//|                       Copyright ?2010, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2010, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
    ObjectCreate( "Down",OBJ_TRENDBYANGLE,0,Time[1],Close[1]); 
    ObjectSet ("Down",OBJPROP_ANGLE,0);
    ObjectSet("Down", OBJPROP_COLOR, Yellow);
           
//----
   return(0);
  }
//+------------------------------------------------------------------+