I wanted to ask if there is a way to load an indicator value from another indicator but actually divert the primary series so that it loads for a different time frame. So for example my current indicator is applied to a 3 minute chart, within that indicator it loads another one and extracts a value with the following
protected override void OnStartUp()
{
USS = VolatilitySwing(Input, dtbStrength, endOffset, multiplier, period).UpSwingSignals;
DSS = VolatilitySwing(Input, dtbStrength, endOffset, multiplier, period).DnSwingSignals;
DW = DailyWindow(Input, 3).Signal;
}
Are there other values that I can pass to Input instead of the default, what I gather is that Input will pass through the same data series being used as the primary in the passing indicator which in this case is the 3minute, I would however like the DailyWindow indicator to be run off the daily series. How best do I accomplish this?
At the moment the only way I can figure it but it seems inefficient since I'm loading an extra series is to put this code into daily window indicator:
In initialize
Add(PeriodType.Day,1);
In Onbarupdate
if (BarsInProgress == 0) return;
I think this should have the effect of overriding the primary passed series but it means this indicator can only ever run as daily for one and secondly it will be loading a second series and then ignoring one which seems inefficient.
I'm thinking there must be a better way that I'm not aware of?
cheers for any help
Ross
Comment