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 jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,290 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      8 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      8 responses
      61 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Option Whisperer, Today, 09:55 AM
      0 responses
      8 views
      0 likes
      Last Post Option Whisperer  
      Started by halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      24 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X