如何正确绘制最高点和最低点?

时间:2021-01-07 21:13:31

标签: pine-script algorithmic-trading trading

我试图用下面的代码绘制最高点和最低点,但似乎有时线条会在没有高低价格的情况下重新定位。

   timeframe = 72

   highestHigh = highest(high, timeframe)
   lowestLow = lowest(low, timeframe)

   plot(highestHigh)
   plot(lowestLow)

在下面的屏幕截图中,请注意我添加箭头的行为似乎是正确的,但我不知道他们为什么要改变我用圆圈标记的位置。

我尝试的每个符号似乎都会发生这种情况。在屏幕截图中,我以 XRPUSDT 为例。

任何帮助将不胜感激!

enter image description here

enter image description here

0 个答案:

没有答案
相关问题