Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy is Yellow in Strategy Tab

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

    Strategy is Yellow in Strategy Tab

    Gents
    My strategy is highlighted 'yellow' in the strategy tab this morning
    Sim trading on zenfire feed.

    Should I be able to 'flatten everything' in order to turn the strategy green?
    Thanks!

    #2
    MGabriel

    "Yellow highlighted "Strategy" cell indicates the strategy is waiting until it reaches a flat position to be in sync with the account.

    If you flatten it should let the strategy start trading again.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Adam
      I flattened everything and the strategy is still Yellow
      Is there a way to find out what specific circumstance is causing the strategy to stay in yellow status?
      I don't see anything in the log

      Comment


        #4
        mgabriel,

        Essentially you probably have a trade open for that instrument. Have you checked your Orders and Executions tab? The other thing you could do is to restart NinjaTrader and see if it remedies the issue.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Adam,
          There are no trades open for the instrument. The orders tab showed no pending orders and the positions tab showed no open positions

          I have restarted and its still yellow.

          Here is a thought.
          I am running 2 machnes - both using zenfire and both running the same strategy on ES-12.
          Is there any way Ninjatrader running on one machine could 'know' that a strategy of the same name, on the same intstrument was running on a second machine?

          Remember, these are both SIM accounts, not live accounts

          Comment


            #6
            mgabriel,

            You can try to remedy it by setting to 'Immediately Submit' and then ensure strategy vs account position synching .

            Adam P.NinjaTrader Customer Service

            Comment


              #7
              Adam,
              I'm aware of the option to change it to 'Immediately Submit'. Thanks
              I've read previous posts on the topic
              I would still like to know how to identify the specific condition that is causing it to stay yellow.
              Can you assist with that?

              Comment


                #8
                MGabriel,

                Sure, no problem.

                Could you possible post some screen shots of the strategies tab?

                The complete guide to capturing screenshots on Windows Need to take a screenshot on your Windows PC? Whether you want to capture your full screen or just one window or area, there are several quick and easy ways to take screenshots in...
                Adam P.NinjaTrader Customer Service

                Comment


                  #9
                  Adam, screen shots from this morning
                  These are from the second PC (Test) ---
                  The first PC has exactly the same script running (and it is green)
                  Attached Files

                  Comment


                    #10
                    more screen shots
                    Attached Files

                    Comment


                      #11
                      Hello mgabriel01,

                      The yellow highlighting means there is a historical (virtual) strategy position. There's no way to check for the conditions that caused this historical position except to debug the strategy. Place a Print statement in each block that places orders to this effect:

                      Print("Strategy submitted a (long/short) order on: " + Time[0]);

                      Then check in Tools > Output window. The last line (at the bottom of output window) should then indicate what bar the historical position belongs with.

                      If you want to disable historical processing in your strategy and enforce real time only, add this line to the top of OnBarUpdate()
                      if (Historical) return;
                      Ryan M.NinjaTrader Customer Service

                      Comment


                        #12
                        Ryan,
                        Got it! That's easy enough to do. Thanks

                        One question about this though -
                        I am running 2 PCs (Side by Side) - both with Zenfire, both charting ES-12 using the stame indicator and strategy

                        It appears (from trial and error) that if the first PC has an open position, I cannot start the strategy on the second PC. If the first PC has no open positions, I am able to start the strategy on the 2nd PC

                        Since both are running SIM accounts, (which are local to the PC on which NT runs?) -- I would not expect there to be any dependency between the 2 PCs

                        But it sure looks like thats whats causes the yellow condition on the second PC
                        Is this possible?

                        Comment


                          #13
                          There is no connection at all between two strategy instances even when they're running on the same computer. For multiple computers, there's zero NinjaTrader communication between them, so this wouldn't be it unless your strategy had coded in some server components.

                          The historical position is only based on the strategy that accessess it. In addition to those Print() statements, you can also check using TraceOrders output for messages related to strategy order submission.
                          Ryan M.NinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by NinjaTrader_RyanM View Post
                            There is no connection at all between two strategy instances even when they're running on the same computer. For multiple computers, there's zero NinjaTrader communication between them, so this wouldn't be it unless your strategy had coded in some server components.

                            The historical position is only based on the strategy that accessess it. In addition to those Print() statements, you can also check using TraceOrders output for messages related to strategy order submission.

                            Thanks Ryan
                            I have enough to keep testing now
                            I appreciate the quick response

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by jaybedreamin, Today, 05:56 PM
                            0 responses
                            3 views
                            0 likes
                            Last Post jaybedreamin  
                            Started by DJ888, 04-16-2024, 06:09 PM
                            6 responses
                            18 views
                            0 likes
                            Last Post DJ888
                            by DJ888
                             
                            Started by Jon17, Today, 04:33 PM
                            0 responses
                            1 view
                            0 likes
                            Last Post Jon17
                            by Jon17
                             
                            Started by Javierw.ok, Today, 04:12 PM
                            0 responses
                            9 views
                            0 likes
                            Last Post Javierw.ok  
                            Started by timmbbo, Today, 08:59 AM
                            2 responses
                            10 views
                            0 likes
                            Last Post bltdavid  
                            Working...
                            X