Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Want to add candle size limit to strategy

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

    Want to add candle size limit to strategy

    I need assistance to figure out how to add a candle size limit to a strategy. I only want the strategy to execute if the previous bar size is less than a certain limit among other conditions already setup. Any ideas about where to go to research this or assistance about how to do this will be appreciated. Thanks...

    #2
    Hello cmorrill,

    You can add to your entry conditions one that checks Range() is below your threshold.

    if (Range()[0] <= 1)
    {
    //do something
    }
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by cmorrill View Post
      I need assistance to figure out how to add a candle size limit to a strategy. I only want the strategy to execute if the previous bar size is less than a certain limit among other conditions already setup. Any ideas about where to go to research this or assistance about how to do this will be appreciated. Thanks...
      The candle size is: High[0] - Low[0]

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by gentlebenthebear, Today, 01:30 AM
      0 responses
      2 views
      0 likes
      Last Post gentlebenthebear  
      Started by samish18, Yesterday, 08:31 AM
      2 responses
      9 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by Mestor, 03-10-2023, 01:50 AM
      16 responses
      389 views
      0 likes
      Last Post z.franck  
      Started by rtwave, 04-12-2024, 09:30 AM
      4 responses
      31 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by yertle, Yesterday, 08:38 AM
      7 responses
      30 views
      0 likes
      Last Post yertle
      by yertle
       
      Working...
      X