• 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

Select entry logic option for strategy

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

    Select entry logic option for strategy

    Hi, I would like to know how I can select an entry logic condition set in the strategy settings drop down menu.

    I plan on separating a breakout and a mean reversion entry logic based on a drop down box in the strategy settings.

    #2
    Originally posted by brucelevy View Post
    Hi, I would like to know how I can select an entry logic condition set in the strategy settings drop down menu.

    I plan on separating a breakout and a mean reversion entry logic based on a drop down box in the strategy settings.
    Use an enum variable.

    Comment


      #3
      Hello brucelevy,

      Thanks for your post.

      As member koganam has offered, using an enum in the strategy properties would allow you to select which strategy code to use and then in your code you can use branching statements based on the enum selected.

      Here is a link to a reference indicator that demonstrates using an enum: http://ninjatrader.com/support/forum...ead.php?t=3420
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ballboy11, Today, 09:35 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Conall, Today, 06:11 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by CaptainAmericaXX, Today, 07:41 AM
      4 responses
      11 views
      0 likes
      Last Post CaptainAmericaXX  
      Started by Longhornmark, Today, 07:06 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by 2sureshk, Today, 07:29 AM
      0 responses
      7 views
      0 likes
      Last Post 2sureshk  
      Working...
      X