Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition Builder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Condition Builder

    hello,

    Is it possible to use a look back period within condition builder? For example:

    If the close today is higher than the high over the last 10 days then buy?

    So far I have only been able to figure out how to compare today to the exact bar 10 days ago which does not take the bars in between into considration.

    Any help would be appreciated.

    Thanks

    #2
    Originally posted by msc400 View Post
    hello,

    Is it possible to use a look back period within condition builder? For example:

    If the close today is higher than the high over the last 10 days then buy?

    So far I have only been able to figure out how to compare today to the exact bar 10 days ago which does not take the bars in between into considration.

    Any help would be appreciated.

    Thanks
    Yes, but you must use the correct indicator for what you want to do. The high over a lookback period will need to use the MAX() indicator. Specifically, your condition should turn out to be:

    Close[0] > MAX(High, 10)[1]

    Your other option for an indicator would be the Donchian Channel. but that itself just uses MAX() and MIN() anyway.
    Last edited by koganam; 11-08-2011, 11:05 PM.

    Comment


      #3
      thanks for the info.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      668 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      377 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X