请牛版高手们帮我把时间也显示出来!

楼主  收藏   举报   帖子创建时间:  2019-05-05 14:11 回复:0 关注量:448
现在只有高低点价格,希望能帮我把当时的时间也显示在一起。谢谢了!!
  
  #property indicator_chart_window
  #property indicator_buffers 8
  #property indicator_color1 Blue
  #property indicator_color2 Red
  #property indicator_color3 White
  #property indicator_color4 Yellow
  #property indicator_color5 Blue
  #property indicator_color6 Red
  #property indicator_color7 Black
  #property indicator_color8 Black
  extern int bars_start = 0;
  extern int bars_end = 1000;
  extern int band = 60;
  double g_ibuf_88[];
  double g_ibuf_92[];
  double g_ibuf_96[];
  double g_ibuf_100[];
  double g_ibuf_104[];
  double g_ibuf_108[];
  int init() {
     string ls_unused_0;
     SetIndexBuffer(0, g_ibuf_88);
     SetIndexStyle(0, DRAW_LINE);
     SetIndexBuffer(1, g_ibuf_92);
     SetIndexStyle(1, DRAW_LINE);
     SetIndexBuffer(2, g_ibuf_96);
     SetIndexStyle(2, DRAW_LINE);
     SetIndexBuffer(3, g_ibuf_100);
     SetIndexStyle(3, DRAW_LINE);
     SetIndexBuffer(4, g_ibuf_104);
     SetIndexStyle(4, DRAW_LINE);
     SetIndexBuffer(5, g_ibuf_108);
     SetIndexStyle(5, DRAW_LINE);
     SetLevelValue(0, 100);
     SetLevelValue(1, -100);
     return (0);
  }
  int start() {
     int l_lowest_28 = iLowest(NULL, 0, MODE_LOW, bars_end - bars_start, bars_start);
     int l_highest_24 = iHighest(NULL, 0, MODE_HIGH, bars_end - bars_start, bars_start);
     int li_unused_0 = Time[l_highest_24];
     int li_unused_4 = Time[l_lowest_28];
     double ld_8 = High[l_highest_24];
     double ld_16 = Low[l_lowest_28];
     ObjectCreate("低点价位", OBJ_TEXT, 0, Time[0], 3);
     ObjectSetText("低点价位", "低点:" + DoubleToStr(ld_16, 4), 12, "Times New Roman", Fuchsia);
     ObjectMove("低点价位", 0, Time[0], WindowPriceMax() - (band + 20) * Point);
     ObjectCreate("高点价位", OBJ_TEXT, 0, Time[0], 3);
     ObjectSetText("高点价位", "高点:" + DoubleToStr(ld_8, 4), 12, "Times New Roman", Fuchsia);
     ObjectMove("高点价位", 0, Time[0], WindowPriceMax() - 20.0 * Point);
     return (0);
  }
打赏