New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Syntax time frame change

Writing my first piece of code. Was wondering how to change my time frame on the following piece from daily to weekly but struggling with "weekly" placement, as current code scans the daily time frame.

[min(3,BB Width(20,2)) <= 1.20 * min(1000,BB Width(20,2))]

Appreciate the help!


  • Options
    The "weekly" modifier goes in front of everything can have time frame, so

    [weekly min(3, weekly BB Width(20,2)) <= 1.20 * weekly min(1000, weekly BB Width(20,2))]

    If you do something like an sma, it would be

    weekly sma(10, weekly close)
  • Options
    Thank you markd!
Sign In or Register to comment.