Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot is always zero in real time

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

    Plot is always zero in real time

    I have an indicator that works fine when you first load it, and you review historical data, but as time moves forward one of the various plots is always zero.

    This only seems to happen on non-tick charts, best I can tell. For instance, on a 5m chart this issue occurs. But, on a 233 tick chart, or a 5 range chart, it works fine in real time.

    In addition, the plot is really just a value of another indicator. When I pull up that other indicator on the same "problem" chart, it works fine.

    Here is the code for the Set:
    VWMA.Set(TrendStrengthA(Typical, VC.NinjaScript.Utility.MovingAverageType.VWMA, Slowlength, 10, 10).TrendStrength[0]);

    Below are some screen shots, and then the export of the indicator is attached.

    Click image for larger version

Name:	1.png
Views:	1
Size:	69.3 KB
ID:	891907

    Click image for larger version

Name:	2.png
Views:	1
Size:	77.7 KB
ID:	891908

    Thanks,
    Mike

    #2
    Works the same here on minute charts as well as tick ones - isn't one LinReg value always 0 depending on the up / dn oscillation?

    Comment


      #3
      Works fine here as imported but if you change CalculateOnBarClose to false it will plot at zero. I have seen this happen before when referencing other indicators. I have had to change the other referenced indicators by adding another dataseries that I could call data from.
      Last edited by eDanny; 04-20-2009, 07:33 AM.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Thank you. I need sleep! I actually noticed that hours ago... and then promptly forgot to fix my template!!!

        Mike

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        168 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        322 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X