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 kujista, Today, 05:44 AM
      0 responses
      6 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by ZenCortexCLICK, Today, 04:58 AM
      0 responses
      9 views
      0 likes
      Last Post ZenCortexCLICK  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      172 responses
      2,281 views
      0 likes
      Last Post sidlercom80  
      Started by Irukandji, Yesterday, 02:53 AM
      2 responses
      18 views
      0 likes
      Last Post Irukandji  
      Started by adeelshahzad, Today, 03:54 AM
      0 responses
      11 views
      0 likes
      Last Post adeelshahzad  
      Working...
      X