Volume Study

Optuma Forums Optuma Scripting Volume Study

  • This topic has 2 replies, 2 voices, and was last updated 1 week ago by Les.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #69769
    Les
    • Topics: 1
    • Replies: 1
    • Posts: 2

    Hi,
    I am wondering if someone can help. I am attempting to come up with a script, and coding is new to me, for a scan to find stocks that have volume today that is less than the volume of each of the last two days. Once I can get this right I would like to add another variable such as and is above the 20ma. So far the best I have come up with is below but it is not correct. I can’t quite get scripting right to just look back at actual volume and compare the current day to each of the last two days so have used the script below. I would appreciate any help.

    Regards

    Les

    #69777
    Darren
    • Topics: 73
    • Replies: 900
    • Posts: 973

    Hi Les,

    As you are doing a scan with a true / false condition you don’t need the Plot1, so remove that and it should work.

    Also, another way to look at offsets is to use the square brackets method, so this will achieve the same result:

    #69779
    Les
    • Topics: 1
    • Replies: 1
    • Posts: 2

    Thankyou Darren, I will give this a go.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest