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 RideMe, 04-07-2024, 04:54 PM
          6 responses
          31 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          2 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,281 views
          0 likes
          Last Post Leafcutter  
          Started by WHICKED, Today, 12:45 PM
          2 responses
          19 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by Tim-c, Today, 02:10 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X