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

How To Ignore Previous Signals When Enabling Auto Strategy

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

    How To Ignore Previous Signals When Enabling Auto Strategy

    Hi NinjaTrader/All

    When using strategy builder and having it take entries on signals, how do I get the strategy to ignore previous signals before going flat?

    So whats happening is, if I enable the strategy or disable it and then re-enable it, it waits for the previous signal to hit either its profit target or stop if there was a previous signal (before turning green from yellow in the control panel) and then looks for the next signal.

    So if im waiting for a setup, I see one, enable the strategy, if the previous signal hasnt gone flat it doesnt take the new signal and entry that I was waiting for.

    So in a nut shell, what can I use within strategy builder to ignore all previous signals when I enable the strategy?

    Please note that im not a coder and am only using strategy builder.

    Thank you

    #2
    Hello Trader5012,

    From the description it sounds like you are asking to exclude historical trades. You can do that by adding a state check to your conditions. In the builder you can do that by making the following condition:

    Left: Misc -> Current State
    Center: Equals
    Right: Misc -> State -> Realtime
    JesseNinjaTrader Customer Service

    Comment


      #3
      SuperStar! Thank you Jesse!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      21 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X