A previous event flagged by setting a variable equal to CurrentBar allows the printing of the time this occurred ... Print (Time[CurrentBar - variable].ToString()); Where a multi-time frame strategy is constructed (and appropriately synchronized), the "CurrentBar" integer refers to the current "BarsInProgress" dataSeries.
The CurrentBar of different dataSeries can be stored as variables (e.g. PrimaryCurrentBar, SecondaryCurrentBar) to allow the recall of the desired dataSeries CurrentBar even when that dataSeries is not in progress. Thus allowing the calculation of the number of bars ago of whereby some flagged event in the Secondary dataSeries occurred even when that dataSeries is not in progress.
However, the Time.ToString syntax still refers to the Primary dataSeries. So, Print (Time[SecondaryCurrentBar - Secondaryvariable].ToString()); will return the time X barsago on the primary dataSeries.
Any ideas on how to point the Time.ToString syntax at the secondary dataSeries to return the correct time value??
Regards
Shannon

Comment