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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      60 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X