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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        33 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        286 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        284 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        133 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        91 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X