HiLo Activator

Optuma Forums Optuma Scripting HiLo Activator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38987
    Mathew
    • Topics: 40
    • Replies: 1,998
    • Posts: 2,038

    Here is a script that I had to write for the CMT3 course that I am doing. It is based on Robert Krauz’s work and it take the average of the highs and the average of the lows. Only one of the lines is ever shown depending on which line last got broken. To achieve this in scripting, I used the SWITCH function to set the status and then the IF statement to choose the values I wanted. The last part just formats the output as dots like a PSAR tool.

    Capture

    1 user thanked author for this post.
    #65883
    Ibrahim
    • Topics: 0
    • Replies: 1
    • Posts: 1

    Hi Matthew

    Are you able to advise what this script will look like if it was for a daily time frame and the MA being for 3 periods.

    Apologies as I do not do too much scripting but am trying to develop my Gann Swing strategy.

    Regards

    #65919
    Darren
    • Topics: 66
    • Replies: 666
    • Posts: 732

    Hi Ibrahim,

    The script formula above was used in a Show Plot tool. Change the dh1 and dl1 variables in the above to use the timeframe of the chart by removing the weekly w1 variable, and set the calculation to 3 bars:

    If you are interested in learning more about the power of the Optuma scripting language see the video tutorial courses under the Help > Scripting Resources menu in the software.

    • This reply was modified 2 weeks ago by Darren.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest