Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart data is not current?

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

    Chart data is not current?

    Hallo,

    i´m using the following code in my strategy:

    // Condition set 1
    if (Close[0] > WMA(Weighted, 54)[0]
    && Close[0] < Open[0])
    {
    BarColor = Color.Red;

    But when i look at the weekchart from CAT the last week.candle is not RED; the last red candle is the one before. I´m using kinetick.
    Where ist the problem in my code?

    Bye Blackburn

    #2
    Blackburn, can you please clarify? Does the chart contain old data but not new data? Is your indicator not updating properly?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hallo Austin,

      take a look at the chart:

      The last week - candle isn´t red. the code ist the same. what can i do?

      Comment


        #4
        Blackburn, thanks for the picture, it really cleared things up. The reason the bar isn't colored yet is because technically the bar hasn't closed yet. If you run your indicator with CalculateOnBarClose = false, it should update on every tick, thus coloring it correctly. Please try that and let me know if it doesn't work.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Thanks for this advice! This was the point :-)

          Blackburn

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          147 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X