Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

1 Minute Line Chart

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

    1 Minute Line Chart

    I have a system that runs fine on charts such as 5 minute, tick, etc. The problem I am having is that it does not run properly on the 1 Minute Line Chart??? It shows the entry on the chart, but never shows the figures in the Control Center under Unrealized and Realized??? See attached........ (it just shows zeroes across the board)
    Attached Files

    #2
    Hi edgeliner,

    What version of NinjaTrader are you using?

    Thanks for the report. I was not able to reproduce this here using 1 min Line Break Charts. You only attached a screenshot of the chart, so maybe this is a historical entry and your strategy is waiting until flat before accepting the first live entry signal?

    If you can provide any steps to follow that will allow us to see the same thing here, I'm happy to setup the same and see if we are able to reproduce.
    Attached Files
    Last edited by NinjaTrader_RyanM1; 10-10-2011, 09:51 AM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ryan.......

      I'll simply give you a cut down version and let you see what happens as well....... I am using 7.0.1000.4 and think I may need to upgrade for this to work???

      // Condition set 1
      if (CrossAbove(EMA(5), EMA(7), 1))

      {
      EnterLong(DefaultQuantity, "");
      }

      // Condition set 2
      if(CrossBelow(EMA(5), EMA(7), 1))
      {
      EnterShort(DefaultQuantity, "");
      }

      Comment


        #4
        Yes, we release updates frequently to address any issues with the platform. Please upgrade your NinjaTrader to the latest 7.0.1000.7 and retest.


        If you have a reversal only(no standard exits) strategy like that, the entry indicated is likely historical one, as it may always be in a waiting until flat state before it accepts a live entry. This setting is made under Tools > Options > Strategies > NinjaScript tab.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I don't have a reversal only and I use marketposition.short, long, and flat, etc. in this system. Like I said, it works fine on a normal 5 minute chart. I will upgrade and let you know if that cures the problem...thanks Ryan!

          Comment


            #6
            Ryan......... I upgrade both Ninja and MBTrading and restarted the system and you can see by the attached that it does not register the Unrealized or Realized positions???? Here is a simple version of my code........

            {
            if (Historical)
            return;
            }


            // Condition set 1
            if (Position.MarketPosition == MarketPosition.Flat
            && (Close[0] > Open[0]))
            {
            EnterLong(DefaultQuantity, "");
            }

            // Condition set 2
            if (Position.MarketPosition == MarketPosition.Flat
            && (Close[0] < Open[0]))
            {
            EnterShort(DefaultQuantity, "");
            }

            // Condition set 3
            if (Position.MarketPosition == MarketPosition.Short
            && (Close[0] > Open[0]))
            {
            EnterLong(DefaultQuantity, "");
            }

            // Condition set 4
            if (Position.MarketPosition == MarketPosition.Long
            && (Close[0] < Open[0]))
            {
            EnterShort(DefaultQuantity, "");
            }

            Any ideas??????

            Comment


              #7
              I will re-create the scenario and upload it...........

              Comment


                #8
                I'm not sure why you are having these results as the same strategy works fine here. Your strategy looks like it should enter frequently and have no historical positions.

                Can you please take a screenshot of your strategy settings so we can see what you are running this against? The screenshot should include settings like the instrument, interval, session template, min bars required, etc.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Ryan.....I figured it out.......first of all, I definitely had to upgrade both Ninja and MBT, and I was using a DefaultQuantity that was not stated in the system. Thanks for your help!!!!!

                  Mike

                  Comment


                    #10
                    Thanks for the update, Mike. Glad to hear you were able to sort it out.
                    Ryan M.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    647 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    369 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    108 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    572 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    573 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X