Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add indicator to other indicator in NT8

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

    #31
    Hi Jim,

    Thanks a lot for the great value explanation and the video!
    That helped clarifying how to formulate the problems.

    Ok, Think I understand now.

    On Mondays, Time[0] returns the values gotten from the last 'Calculation made at the most recent close timestamp'
    — which was most recent Sunday's Close (for CL, GC etc. with-Sunday-evening-session-but-no-Saturday's-sessions-contracts,
    for other contracts (without-Sunday-evening-session-nor-Saturday's-sessions-contracts: Lumber, Live Cattle etc.)
    Time[0] returns values gotten from most recent Friday's close)?
    On Mondays, Time[1] returns the values gotten from the last 'Calculation made at the most recent close timestamp - 1'
    — which was most recent Friday's Close (for CL, GC etc. with-Sunday-evening-session-but-no-Saturday's-sessions-contracts,
    for other contracts (without-Sunday-evening-session-nor-Saturday's-sessions-contracts: Lumber, Live Cattle etc.)
    Time[1] returns values gotten from most recent Thursday's close)?

    Whereas

    On Sundays, Time[0]returns the values gotten from the last 'Calculation made at the most recent close timestamp'
    — which was most recent Friday's Close (for CL, GC etc. with-Sunday-evening-session-but-no-Saturday's-sessions-contracts,
    for other contracts (without-Sunday-evening-session-nor-Saturday's-sessions-contracts: Lumber, Live Cattle etc.)
    Time[0] returns values gotten from most recent Friday's close as well)?
    On Sundays, Time[1] returns the values gotten from the last 'Calculation made at the most recent close timestamp -1'
    — which was most recent Thursday's Close (for CL, GC etc. with-Sunday-evening-session-but-no-Saturday's-sessions-contracts,
    for other contracts (without-Sunday-evening-session-nor-Saturday's-sessions-contracts: Lumber, Live Cattle etc.)
    Time[1] returns values gotten from most recent Thursday's close as well)?


    For with-Sunday-evening-session-but-no-Saturday's-sessions-contracts, we can use:

    Time[0] on Sundays

    Time[1] on Mondays


    For without-Sunday-evening-session-nor-Saturday's-sessions-contracts, we can use:

    Time[0] on Mondays or/and Sundays

    Time[1] on Mondays


    The causation/why reasoning I made:

    The Time[0] can only refer to one bar back on the Daily bars/data series with Calculate mode set to OnBarClose,
    it cannot refer to current/processing bar (simply because the data is not yet available?).
    It's just that way because of the OnBarClose calculations for the Daily bar — it must get some values,
    and the only ones available/the most recent ones are the ones from the most recent Bar (not the not yet available ones of the current bar).

    I think that makes sense. I was just too used to viewing indexes zero [0] to only be applicable to the processing bar. But that's not possible with OnBarClose calculation mode and the spaced Closes between Fridays sessions and Sundays evening session circumstance.

    Thank a lot! You rock!

    I'll test it now and then will tackle the BarsPeriod approach to get familiar with that way too.

    Be well!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jipsonmv, Today, 06:51 AM
    0 responses
    8 views
    0 likes
    Last Post jipsonmv  
    Started by harr5754, Today, 06:28 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by aelagha, Today, 12:21 AM
    0 responses
    20 views
    0 likes
    Last Post aelagha
    by aelagha
     
    Started by rcrook23, Today, 03:06 AM
    1 response
    15 views
    0 likes
    Last Post rcrook23  
    Started by timekiller1985, Today, 02:46 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X