• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 .

            http://ninjatrader.com/support/helpG...tegies_tab.htm
            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?

                http://www.wikihow.com/Take-a-Screen...rosoft-Windows
                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 MNinjaTrader 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 MNinjaTrader 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 seagraph, Today, 03:27 PM
                            0 responses
                            11 views
                            0 likes
                            Last Post seagraph  
                            Started by dedouglas, Today, 02:54 PM
                            1 response
                            10 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by elkhatabi, 08-01-2019, 06:36 PM
                            5 responses
                            52 views
                            0 likes
                            Last Post NinjaTrader_RyanL  
                            Started by mr_trade, Today, 01:01 PM
                            4 responses
                            19 views
                            0 likes
                            Last Post mr_trade  
                            Started by Renorail, Today, 12:31 PM
                            1 response
                            13 views
                            0 likes
                            Last Post NinjaTrader_PaulH  
                            Working...
                            X