Problem Accessing Indicator Data Objects

Created at 16 Dec 2018, 07:40
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DE

deanmikan@gmail.com

Joined 19.05.2018

Problem Accessing Indicator Data Objects
16 Dec 2018, 07:40


Hi there,

I'm finding difficulty in trying to access an object in a custom indicator from a bot.

I.e. I have a public list located in the indicator. I'm loading the indicator as such:

 indicator = Indicators.GetIndicator<IndicatorName>(Params[]);

However, when trying to access the list in the indicator like:

List<type> list = indicator.signalList;

The variable "list" is always empty. And yes I am initializing the list in the indicator.

I've tried building the indicator and loading the .dll as a library but had no luck there either. 
Please provide a solution.

Thanks.


@deanmikan@gmail.com
Replies

Shares4UsDevelopment
17 Dec 2018, 10:52

Hi.
Please provide the relevant c# code there is no way of checking based upon your description.


@Shares4UsDevelopment