Open and Close 30% below day’s high

Optuma Forums Optuma Scripting Open and Close 30% below day’s high

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #66437
    Tonia
    • Topics: 12
    • Replies: 12
    • Posts: 24

    Hi Optuma

    I am trying to highlight bars that have an open and close minimum 30% below the bar’s high and have written some simple code
    but I can’t get any results to show up when applying showview or showbar function.
    Could you please identify any coding errors for me.

    #66439
    Matthew
    • Topics: 5
    • Replies: 481
    • Posts: 486

    Hi,

    There are a few errors with the script you posted.

    With V1, the High function doesn’t support Bars or Backtype days, for your script the High() is all you need.

    Also, only V2 and V3 are Boolean, so the last line should not be referencing V1.

    The final adjusted script would look like this:

    This script returns results, here’s an example:

    Ex1

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest