Scripting TS strategy

Optuma Forums Optuma Scripting Scripting TS strategy


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #64477
    • 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:

    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,

    • This topic was modified 2 weeks ago by 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:


    Let me know what you think!

    • Topics: 13
    • Replies: 13
    • Posts: 26

    Thank you very much Darren,

    TimeSinceSignal is new and much better for sure!

    Thank you very much!


    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