Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 00nevest, Today, 02:27 PM
      0 responses
      0 views
      0 likes
      Last Post 00nevest  
      Started by Jonafare, 12-06-2012, 03:48 PM
      5 responses
      3,986 views
      0 likes
      Last Post rene69851  
      Started by Fitspressorest, Today, 01:38 PM
      0 responses
      2 views
      0 likes
      Last Post Fitspressorest  
      Started by Jonker, Today, 01:19 PM
      0 responses
      2 views
      0 likes
      Last Post Jonker
      by Jonker
       
      Started by futtrader, Today, 01:16 PM
      0 responses
      9 views
      0 likes
      Last Post futtrader  
      Working...
      X