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

OrderFlowTradeDetector in a strategy

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

    OrderFlowTradeDetector in a strategy

    Hello, how do I use the OrderFlowTradeDetector in a strategy?

    Code:
            private OrderFlowTradeDetector IndicatorOrderFlowTradeDetector;        
    
            protected override void OnStateChange()
            {
                if (State == State.Configure)
                {                
                    IndicatorOrderFlowTradeDetector = OrderFlowTradeDetector(Close, NinjaTrader.NinjaScript.Indicators.TradeDetectorBaseLargeVolumeOn.Block, 100, 50, NinjaTrader.NinjaScript.Indicators.TradeDetectorSizeBase.VisibleArea, true);                
                }
            }
    That does not work.
    Attached Files
    Last edited by 1001111; 03-26-2020, 04:18 AM.

    #2
    If you use AddChartIndicator(), the Ninjatrader program gets stuck because this message keeps coming.
    Code:
    if (State == State.DataLoaded)
    {                                    
        AddChartIndicator(IndicatorOrderFlowTradeDetector);                
    }


    How to use OrderFlowTradeDetector () correctly?
    Last edited by 1001111; 03-26-2020, 03:59 AM.

    Comment


      #3
      Hell 1001111,

      Thanks for your post.

      The OrderFlowTradeDetector indicator is not exposed for NinjaScript access.

      This is something we are currently tracking interest behind in the internal suggestion ticket SFT-3323. I have added a vote on your behalf. This is an internal number, but for anyone else wishing to have their interest tracked, please let our support staff know that you would like a vote added for this request.

      Feature request disclaimer

      We receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing.

      When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number will be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

      Release Notes - https://ninjatrader.com/support/help...ease_notes.htm


      Let us know if you have any questions.

      JimNinjaTrader Customer Service

      Comment


        #4
        I then wonder why the indicator can be selected in strategy Builder.

        Nevertheless many thanks

        Comment


          #5
          Hello 1001111,

          You may be using an older version of the platform. The OrderFlow indicators require additional code when used in NinjaScript that the Strategy Builder cannot generate so these indicators were removed from the Strategy Builder.

          You can update NinjaTrader here - https://ninjatrader.com/PlatformDirect

          We look forward to assisting.
          JimNinjaTrader Customer Service

          Comment


            #6
            Please add my vote to SFT-3323.

            Comment


              #7
              Thanks for your feedback aworldnervelink.

              Your vote has been added.
              JimNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              57 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Today, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Today, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Today, 03:01 PM
              2 responses
              19 views
              0 likes
              Last Post helpwanted  
              Started by cre8able, Today, 07:24 PM
              0 responses
              9 views
              0 likes
              Last Post cre8able  
              Working...
              X