Profile Picture

unregistrating indicator from IndicatorManager

Posted By omri1181 7 Years Ago
Message
Posted Wednesday September 22 2010
for example, i would put MA and then later in the code i would remove it and replace with EMA...

is it possible to remove an indicator from Indicator Manager ?

public override void Startup()

{

// Perform initialization here.

SMA ma = new SMA(10);

ma.SetInputs(Close);

ma.ChartSettings.ShowInChart = true;

SystemData.IndicatorManager.Register(ma,Symbol,"ma");

}

public override void NewBar()

{

// Put your trading code here

if (Bars.Count == 400)

{

SystemData.IndicatorManager.****UnRegister****(ma,Symbol,"ma");

//

}

}

Posted Thursday September 23 2010
It is not possible to change or remove registered indicators. The only thing you can change is the name, but I suspect that isn't going to help you here. If you want to give me a higher level view of the problem you're trying to solve, I might be able to provide a different idea.


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems