This might be considered as an c# issue rather than Nt but by any luck.
I get an error message saying :
NinjaScript File Error Code Line Column
NEWSDBA.cs 'NinjaTrader.NinjaScript.Indicators.Indicator.NEWS DBA (int, int)' is a 'method', which is not valid in the given context CS0119 78 34
I want to access my list from OnRender to OnBarUpdate. The base.OnRender methods work fine but cant access the list outside that class unless declared in public class.
Any inputs on how to deal with that NT error?
Thank you
- public class NEWSDBA : Indicator
- {
- public List<double> listm { get; set; }
- protected override void OnBarUpdate()
- {
- NEWSDBA newsdba = new NEWSDBA();
- foreach(var item in NEWSDBA.listm)
- {
- Value[0] = item;
- }
- }
- }


Comment