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 bill2023, Today, 08:21 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Human#102, Today, 09:54 AM
      0 responses
      2 views
      0 likes
      Last Post Human#102  
      Started by Johnny Santiago, 10-11-2019, 09:21 AM
      97 responses
      6,276 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by patrickmlee007, Today, 09:33 AM
      0 responses
      3 views
      0 likes
      Last Post patrickmlee007  
      Started by Rogers101, 05-05-2024, 11:30 AM
      22 responses
      67 views
      0 likes
      Last Post Rogers101  
      Working...
      X