Indexing 在索引时间条中打包。松树

Indexing 在索引时间条中打包。松树,indexing,pine-script,hour,Indexing,Pine Script,Hour,我的密码有问题。我在13小时时做了一个公开的购买订单,但pinescript给了我13或14小时的开放时间。但这并不是全部。。。我正在做open(current)Trend,openhour为您提供交换时间的小时数。如果您的图表显示在与“交换”不同的时区,则会导致混淆。将图表放在Exchange时区中,您将看到脚本的行为正确。哇,我知道了!非常感谢,是的,非常有效。 if hour==HourBuy and TradeDateIsAllowed()==1 and open>Trend an

我的密码有问题。我在13小时时做了一个公开的购买订单,但pinescript给了我13或14小时的开放时间。但这并不是全部。。。我正在做open(current)Trend,open
hour
为您提供交换时间的小时数。如果您的图表显示在与“交换”不同的时区,则会导致混淆。将图表放在Exchange时区中,您将看到脚本的行为正确。哇,我知道了!非常感谢,是的,非常有效。
if hour==HourBuy and TradeDateIsAllowed()==1 and open>Trend and open<open[1]
    enterlong:=1
 
if hour==HourSell and TradeDateIsAllowed()==1 and open<Trend 
    entershort:=1