• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 MNinjaTrader 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 RockRiver, Today, 10:38 AM
      0 responses
      4 views
      0 likes
      Last Post RockRiver  
      Started by 7robert, Today, 10:07 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Irukandji, 06-10-2019, 06:13 AM
      4 responses
      35 views
      0 likes
      Last Post Irukandji  
      Started by Uwe1981, Today, 03:41 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by emuns, Today, 09:36 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Working...
      X