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 fitspressoburnfat, Today, 04:25 AM
          0 responses
          2 views
          0 likes
          Last Post fitspressoburnfat  
          Started by Skifree, Today, 03:41 AM
          1 response
          4 views
          0 likes
          Last Post Skifree
          by Skifree
           
          Started by usazencort, Today, 01:16 AM
          0 responses
          1 view
          0 likes
          Last Post usazencort  
          Started by kaywai, 09-01-2023, 08:44 PM
          5 responses
          604 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          6 responses
          23 views
          0 likes
          Last Post xiinteractive  
          Working...
          X