Background:
I am aware of how to call an indicator from within another indicator. e.g.
---------------------------
public class Sim22_DeltaV3 : Indicator
{
private Sim22.Gapless.Sim22_EmaGaplessV2 emaGapless;
.
.
.
if (State == State.Configure)
{
emaGapless = Sim22_EmaGaplessV2(Values[1], PeriodEma, DeltaGaplessEmaType);
.
.
.
Values[0][0] = emaGapless[0]; = emaGapless[0];
------------------------
My question is is this not supposed to work when the called indicator uses OnMarketData and would require TickReplay to be enabled , even though TickReplay is enabled on the chart. Another point is that the called indicator used Lists to store OnMarketData values like an OrderBook list.
I am trying to achieve a divergence indicator with RSI(for example), where the price is compared to the indicator value and noted.
If calling the indicator is not right way, I am also open to have a public variable(or similar) which stores the called indicator value and can be accessed by calling indicator in realtime.
I hope I am making sense.
Thanks,
SDG
Comment