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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      60 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      148 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      284 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X