Scripting various timeframes

Optuma Forums Optuma Scripting Scripting various timeframes

Tagged: 

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by Dean.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #62253
    Dean
    • Topics: 2
    • Replies: 2
    • Posts: 4

    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
    Dean

    #62315
    Mathew
    • Topics: 40
    • Replies: 2,021
    • Posts: 2,061

    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

    Mathew

    #62409
    Dean
    • Topics: 2
    • Replies: 2
    • Posts: 4

    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:

    thanks,
    Dean

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

Pin It on Pinterest