Add periods to streams without using addViewBAr
Posted: Mon Jan 02, 2017 2:49 pm
Hi
I need to handle three OHLC streams (grouped with createCandleGroup) that will contain three different time frames (i.e. H1, H4 and D1). Each H1 period I will recalculate the High, Low and Close values for H4 and D1 streams based on H1. The problem is that each time I execute addViewBar to add a period on H4 stream, a new period is added to D1 stream. I need to be able to add a new period to D1 after 6 period has been added to H4.
Is that possible?
Regards
I need to handle three OHLC streams (grouped with createCandleGroup) that will contain three different time frames (i.e. H1, H4 and D1). Each H1 period I will recalculate the High, Low and Close values for H4 and D1 streams based on H1. The problem is that each time I execute addViewBar to add a period on H4 stream, a new period is added to D1 stream. I need to be able to add a new period to D1 after 6 period has been added to H4.
Is that possible?
Regards