Transmission of an array from a custom indicator to a bot

Created at 15 Apr 2019, 23:51
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!
AL

alter.christian

Joined 12.02.2019

Transmission of an array from a custom indicator to a bot
15 Apr 2019, 23:51


Hi,

I have builded up an indicator with different arrays, which I want to use in a bot - but I don't know how.... Is there an option to declare them as output values?!

Something like:

[Output(...)]
public int[] testArray { get; set; }

....

             for (int i = 0; i <= 10 ; i++)
            {
                testArray [i] = i;
            }

 

Think it is a similar issue to this topic from 2015:

http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/11096220-output-array-of-results

Thank you and best regard


@alter.christian
Replies

PanagiotisCharalampous
18 Apr 2019, 21:46

Hi alter.christian,

Thank you for posting in our forum. You do not need to declare the arrays as output paramaters. If the arrays are public then they will be accessible from your cBot as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous