Scripting TS strategy

Optuma Forums Optuma Scripting Scripting TS strategy

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64477
    Raphael
    • Topics: 13
    • Replies: 13
    • Posts: 26

    Hi there! Hope you all doing fine!

    I´m struggling to find a correct way to script “Turtle Soup” strategy. Just found all information and rules @ stockcharts thru this link below:
    https://stockcharts.com/articles/rrg/2018/06/combining-relative-rotation-graphs-and-the-turtle-soup-setup.html

    And i´m trying to apply these rules on optuma. Its says that de “script is valid” but i´m pretty sure that i missing something, because the results are not like i assume is correct.
    Would you help me? What am i missing? I´m using this script below.

    Thank you,
    RF

    • This topic was modified 2 weeks ago by Darren.
    #64739
    Darren
    • Topics: 66
    • Replies: 617
    • Posts: 683

    Hi Rafi,

    When looking for the low values 4 periods ago you need to use LOW()[4] and not LOW(Day(PERIODAMOUNT=4)) – this converts the data from a one day to 4 day bar.

    However, we can use the TimeSinceSignal function to count the days since the previous 20 day low signal instead of a line for each day:

    When added to a watchlist of the S&P500 stocks there were 3 results as of Friday’s data:

    Capture

    Let me know what you think!

    #64745
    Raphael
    • Topics: 13
    • Replies: 13
    • Posts: 26

    Thank you very much Darren,

    TimeSinceSignal is new and much better for sure!

    Thank you very much!

    Best,
    RAFI.

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

Pin It on Pinterest