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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      66 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X