Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot Update Problem

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

    Plot Update Problem

    I have a basic traffic light indicator that plots a different color dot when certain conditions occur. CalculateOnBarClose is set to false. This indicator works correctly in 6.5. However, in nt7, the dots aren't updated correctly as the conditions change intrabar. Worked with this a while and then decided to confirm that the code wasn't causing the problem by writing another simple indicator. This test indicator plots a red dot where close < open, green dot when close > open and gray dot when close == open. Again CalculateOnBarClose is set to false. This indicator in 6.5 works correctly but in nt7 the dots do not get the correct color a lot of the time. Am attaching my indicator for you to verify.

    Exported it in nt7.

    Thanks,
    Mike
    Attached Files

    #2
    Thanks for reporting Mike, will test here shortly.

    Comment


      #3
      Please try the attached which would also reset the other plots as needed (demonstrated in the MultiColoredPlot reference sample), this should work well even with CalculateOnBarClose = false.
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      55 views
      0 likes
      Last Post CarlTrading  
      Working...
      X