Scripting various timeframes

Optuma Forums Optuma Scripting Scripting various timeframes


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

    Hi Optuma community,

    I am looking to run a multiple codes scan in multiple time frames, for example 14 period ADX > 25 in both the daily and weekly time frame. I have my data timeframe set to date range = last bar, data timeframe = 1 week and the scan works perfectly until I add the daily line in, at which point it returns nothing.

    any help much appreciated as always

    • Topics: 32
    • Replies: 1,707
    • Posts: 1,739

    Hi Dean,

    Please include the code which works and then the code which does not. It takes too long for anyone to build this from a description and then we do not know if we have it right or not.  Also, please make sure that you use the  “<> Code” button when you want to paste in the code.

    All the best


    • Topics: 1
    • Replies: 2
    • Posts: 3

    Hi Matthew,

    Thanks for getting back to me. After further investigation it seems that both of the below scripts work as expected when I set the Date Range to Yesterday, however when I use Last Bar, the Weekly scan works as expected but the Daily + Weekly scan does not.

    Weekly Only:


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

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.