Announcement

Collapse
No announcement yet.

Question on high(0) low(0)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question on high(0) low(0)

    Do you have to wait for the bar to close beofre you can use these functions? I have a script that sells part of its shares at a target. Right now its set to check weather the high(0) or low(0) breached the nTarget. It always fills at the open of the next bar. Even with computeonclose set to false. Should I just use something like if close() => target then sell?

    Thanks!

  • #2
    Geoff
    Keep in mind that setComputeOnClose() does not have any parameters which means that even if you use setComputeOnClose(false) it is still enabled. You must comment the statement out (or remove it) to disable it.
    To answer your question you do not have to wait for the bar to be completed for the high(0) or low(0) functions to work.
    Alex

    Comment


    • #3
      Ahh I'd seen it in a few scripts as (false) and just went with the flow. Thanks! I'll fix that soon regain my energy from staying up til 6am.

      Comment

      Working...
      X