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 Ndakotan1313, 03-14-2024, 05:02 PM
          3 responses
          65 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by reynoldsn, Yesterday, 04:40 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by memonic, Yesterday, 01:23 PM
          4 responses
          27 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by BIOK.NT, Yesterday, 01:56 PM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by betsuni_123, Yesterday, 04:20 PM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X