Script Assistance

Optuma Forums Optuma Scripting Script Assistance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #61977
    • Topics: 2
    • Replies: 0
    • Posts: 2

    Hi, Just wondered if anyone can assist me with the following criteria for a script for scans:-

    1. 50MA<20MA
    2. 20MA<7MA
    3. Price< Highest High (Last 52weeks)
    4. Price uptrending
    5. Price uptrend change >10% (Last 14days)

    I have attached the charts showing typically what I need. The current script I am using is including too many false +ves.

    Many thanks and appreciate any assistance.

    • Topics: 40
    • Replies: 1,965
    • Posts: 2,005

    Hi Marie,

    You do not need to specify the daily time frame if you are using this on Day Charts and scanning on daily data ( which is the default).

    I like to break up scans into separate items and put them in variables like “C1” which in my mind I call “Condition 1”

    What I like about using the variables is if there are any issues, I can go line by line and examine each item to be sure that it is right. eg If I wanted to check my Gann Swing rule, I can comment out the last line and just put c4 as the output like this

    Hope that helps point you in the right direction


    1 user thanked author for this post.
    • Topics: 4
    • Replies: 14
    • Posts: 18

    That’s a great example of best-practice scripting.  Thanks Matthew.

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

Pin It on Pinterest