0
Answered

Problem loading in Indicators

Emanuel Mann 1 year ago updated by Андрей Ринас2 (ATAS developer) 1 year ago 6

Hello,

I am having some trouble when loading in Indicators into an own one.

I tested with the SMA, Dynamic Levels and VWAP/TWAP.

all were imported as shown in the ATAS example as following:

[...]

private readonly SMA _sma = new SMA();

public myConstructor(){

Add(_sma);

}

[...]

From all 3 Indicators, I can only load in the SMA. Both the VWAP and Dynamic Levels print "Select indicator settigns error. Object reference not set to an instance of an object".


How can I implement any other Indicator besides the SMA and read its ValueDataSeries?

Under review

Please provide us with your code and we will able to check.

If your question is still active, please provide us with sample of your code. Otherwise this ticket will be closed automatically in 2 days

I put together an Indicator using the VWAP and all its standard deviations, please see attached file.

Example Code

After setting a DataProvider we finally got what we wanted.

Please use following constructor:

public ATAS_API_Code():base(true)