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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    619 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    561 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    566 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X