Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies Status Yellow

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

    #31
    Sounds good.
    BrettNinjaTrader Product Management

    Comment


      #32
      now I am receiving this message
      Attached Files

      Comment


        #33
        Hello,

        Over-Fills is a serious issue that can occur when using complex entry conditions that bracket the market in both directions end up with both entries being filled instead of one being cancelled. Over-Fills can also occur when you place a trade quickly hoping to close a position while a prior order to close the same position already had an in-flight execution. The exact scenarios in which an over-fill can occur is highly dependent on the specific strategy programming. By default, NinjaTrader will protect against over-fills even though you are using the Unmanaged approach by halting the strategy, but should you decide to custom program your own over-fill handling it is up to you to either prevent over-fills from being a possibility in your code or by introducing logic to address over-fills should one occur.


        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #34
          Yes there was an error I found it, I copy/pasted long rules to short rules (to save time) but did not change the short rules around, according to your comment this sounds like it was the error (since my rules for going long and going short were the same).

          I spoke with an API person at interactive brokers, for anyone that trades with IB there is an API setting that must be changed, I pasted the API portion of the message:

          In TWS, navigate to Configure > API, it is essential that “Bypass Order Precautions for API Orders” is enabled. Following that, “Suppress market cap check for API order…

          This should get rid of the pop-up precautionary messages etc. that interfere with NT automated orders.

          It's all coming together slowly thanks for you help!





          Originally posted by NinjaTrader_Brett View Post
          Hello,

          Over-Fills is a serious issue that can occur when using complex entry conditions that bracket the market in both directions end up with both entries being filled instead of one being cancelled. Over-Fills can also occur when you place a trade quickly hoping to close a position while a prior order to close the same position already had an in-flight execution. The exact scenarios in which an over-fill can occur is highly dependent on the specific strategy programming. By default, NinjaTrader will protect against over-fills even though you are using the Unmanaged approach by halting the strategy, but should you decide to custom program your own over-fill handling it is up to you to either prevent over-fills from being a possibility in your code or by introducing logic to address over-fills should one occur.


          Let me know if I can be of further assistance.

          Comment


            #35
            One more thing regarding the "market data not subscribed" message we are still trying to clear that up, I can trade all US stocks on IB, so that should not be happening. I changed the API settings so hopefully this will take care of the issue.

            Comment


              #36
              Hello,

              If the error comes up again please let me know. Also, please check to make sure you can bring up a chart of the instrument.
              BrettNinjaTrader Product Management

              Comment


                #37
                Originally posted by NinjaTrader_Brett View Post
                Hello,


                So it is advisable to wait until the strategy is flat or, either manually submit an order to bring the account in sync with the strategy of use one of the solutions below:

                1st solution:
                You can include the following statement in your code to avoid the strategy to be calculated on historical data.
                // Only run on real-time data
                if (Historical)
                return;
                Add the statement to the top of OnBarUpdate()
                2nd solution:
                You can set 'On starting a real-time strategy' to 'Immediately submit live working orders'.
                This option can be found at Tools-->Options-->Strategies-->NinjaScript-tab.
                3rd solution, would be submitting manual orders to sync the strategy and account positions described in the link

                Let me know if I can be of further assistance.
                Hi

                I am in a similar position, yet already have option 2 as my default.

                I selected my ninja script strategy today and of the 4 pairs selected, 3 remained yellow. My broker has me as flat, and as far as I can see in NT7, it also has me flat, yet 3 yellow and 1 green when I put the strategy on the 4 pairs.

                I have followed the ling posted but it does not help me find out what to do.

                This may have occurred when I had the strategy running on Friday but manually closed out some trades using the broker's online platform instead of using NT.

                If I could find where to look to remove the references to any trades, I'd look, but NT is not that intuitive. I have opened the particular charts and there are no strategies running.

                If you could point me towards a way to discover what is wrong, I would be most thankful.

                regards

                honkin

                Comment


                  #38
                  honkin, the strategy would show as yellow as long as the historical position the strategies would carry from historical data is still open...if this is flat / exited it would turn green and take the next entry signal generated live going forward.

                  Comment


                    #39
                    Can you please explain to me what an historical position is? If I apply a strategy to a chart and a trade is open and then closed, that is the end of the deal. These strategies do not work backwards.

                    Let me ask again if you can point me towards where I can find where such an "historical position the strategies would carry from historical data" is located.

                    I mean, really Bertrand, why is the only trading software I have issues with NT? Why is there NEVER an issue with MT4? All I am trying to do is to have a simple script place a trade for me and you are telling me a mystical hidden trade is preventing. You have not told me how to rectify the situation, which is what I asked. You have only told me what is causing it. That does not give any assistance.

                    As a last resort, I may have to take to uninstalling the thing and reinstalling it, which is a ludicrous solution

                    regards

                    honkin

                    Comment


                      #40
                      honkin, to clarify - if you start up the strategy it will go through the historical data portion on the chart and arrive at a position it does have coming over from historical data, if you set the setting 'On Starting a Realtime strategy' to WaitUntilFlat - the strategy is waiting until this very last historical position is closed (for example stopped out) and only then it would take the next regular trade.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      75 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      45 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      26 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      32 views
                      0 likes
                      Last Post TheRealMorford  
                      Started by Mindset, 02-28-2026, 06:16 AM
                      0 responses
                      62 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Working...
                      X