0

我想找到前 15 分钟蜡烛的高点。

我正在使用下面的代码。

bi = BarIndex();
arrayitem = SelectedValue(bi) -bi[0];
firstbarHigh = High[arrayitem ];

这段代码给了我第一根蜡烛的收盘价。我想要前 15 分钟蜡烛的高价。

请帮助我。

4

1 回答 1

0

看一下这个

 newday = Day() != Ref(Day(),-1);  //check if new day or not
 starttime = ValueWhen(newday,TimeNum());
 IBendtime = starttime+1500;
 minh = ValueWhen(newday,TimeFrameGetPrice("H",in5Minute*3));
 minl = ValueWhen(newday,TimeFrameGetPrice("L",in5Minute*3));
于 2020-03-14T05:04:45.440 回答