Hello,
I am trying to acces a list outside a class. I tried with public static but nothing. The list return different answers than if it called from OnRender class. Any suggestions!
public class NEWSDBA : Indicator
{
public static var listm = new List<double>(); //tried with private also
protected override void OnBarUpdate()
{
foreach(var item in listm)
{
Value[0] = item;
}
}
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
base.OnRender(chartControl, chartScale);
//calculation to produce the list start here
}
}
Thank you