Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator on Indicator - No time information is passed

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

    Indicator on Indicator - No time information is passed

    When using an indicator on the output of another indicator, no time information is passed. I hope this is a bug because it is severely limiting and will break any indicator which references time.

    How to reproduce:

    Create a modified SMA indicator by saving SMA as SMATest.
    As the first line in OnBarUpdate of SMATest, insert the following line:

    Print("SMATest, CurrentBar = " + CurrentBar.ToString() + " , Time[0] = " + Time[0].ToString() + " , Input[0] = " + Input[0].ToString());

    Open a new chart. Open the Output window.
    Apply the SMATest indicator, using the SMA indicator as the Input series.

    In the Output window, Time[0] for every bar is 1/1/1800 12:00:00 AM

    #2
    Here is what I get on our latest development sources:
    SMATest, CurrentBar = 0 , Close[0] = 1097,75 , Time[0] = 11.11.2009 14:31:00 , Input[0] = 1097,75
    SMATest, CurrentBar = 1 , Close[0] = 1098 , Time[0] = 11.11.2009 14:32:00 , Input[0] = 1098
    SMATest, CurrentBar = 2 , Close[0] = 1098 , Time[0] = 11.11.2009 14:33:00 , Input[0] = 1098
    SMATest, CurrentBar = 3 , Close[0] = 1098,25 , Time[0] = 11.11.2009 14:34:00 , Input[0] = 1098,25
    SMATest, CurrentBar = 4 , Close[0] = 1097,75 , Time[0] = 11.11.2009 14:35:00 , Input[0] = 1097,75
    SMATest, CurrentBar = 5 , Close[0] = 1097,75 , Time[0] = 11.11.2009 14:36:00 , Input[0] = 1097,75
    SMATest, CurrentBar = 6 , Close[0] = 1097,25 , Time[0] = 11.11.2009 14:37:00 , Input[0] = 1097,25
    SMATest, CurrentBar = 7 , Close[0] = 1097,25 , Time[0] = 11.11.2009 14:38:00 , Input[0] = 1097,25
    SMATest, CurrentBar = 8 , Close[0] = 1098 , Time[0] = 11.11.2009 14:39:00 , Input[0] = 1098
    SMATest, CurrentBar = 9 , Close[0] = 1098 , Time[0] = 11.11.2009 14:40:00 , Input[0] = 1098
    SMATest, CurrentBar = 10 , Close[0] = 1098 , Time[0] = 11.11.2009 14:41:00 , Input[0] = 1098
    SMATest, CurrentBar = 11 , Close[0] = 1097 , Time[0] = 11.11.2009 14:42:00 , Input[0] = 1097
    SMATest, CurrentBar = 12 , Close[0] = 1097 , Time[0] = 11.11.2009 14:43:00 , Input[0] = 1097
    SMATest, CurrentBar = 13 , Close[0] = 1097,5 , Time[0] = 11.11.2009 14:44:00 , Input[0] = 1097,5
    (I added the close value for clarification)

    -> looking fine to me. If issue persists using NT7B4, then I suggest trying again after next update. Thanks

    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
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X