Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I need to figure how to disable two consecutive entries from same type

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

    I need to figure how to disable two consecutive entries from same type

    Hi,
    I am developing a strategy via the wizard that uses SMA, offset and aroon in order to identify overbought/oversought entry points.

    I however need to disable consecutive entries from the same type, as sometimes when there is a stronger trend, this could result in several "long" entries that could fail.

    I prefer to have only one failed long entry, and the only possible entrie after that to be short.

    I need to ask if it would be possible to add such a rule via the wizard.

    Thanks

    #2
    Hello Nikolaax,

    Thank you for your post.

    Yes, you would want to use a variable switch essentially.

    You can use the 'User Defined Variable' to set and test the value between different conditions.

    I have screenshots of how thisis done with the Wizard

    Let me know if I can be of further assistance.
    Attached Files
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      Thanks, I managed to set the user variable!
      Last edited by nikolaalx; 04-26-2014, 03:00 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      65 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Working...
      X