Announcement

Collapse
No announcement yet.

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.

      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.

          Comment


            #6
            Please add my vote to SFT-3323.

            Comment


              #7
              Thanks for your feedback aworldnervelink.

              Your vote has been added.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              69 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X