Global Variables

Created at 13 Aug 2014, 13:30
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!
MI

mijo212

Joined 12.10.2013

Global Variables
13 Aug 2014, 13:30


Hello,

have cTrader & cAlgo global variables that can communicate with the all CBOT and all Inidcator as it has MT4 ?

thx.


@mijo212
Replies

Spotware
13 Aug 2014, 14:04

No, there is no such functionality in cAlgo.API.


@Spotware

mijo212
16 Aug 2014, 19:56

RE:

It would be possible to incorporate into the new next release version ?

Spotware said:

No, there is no such functionality in cAlgo.API.

 


@mijo212

Spotware
18 Aug 2014, 10:33

We cannot provide a time estimate for the release global variables at this time


@Spotware

AlexanderRC
28 Aug 2014, 05:39

It is likely possible to emulate global variables via a named AppDomain with permissions to access it from any code (both cBots and indicators). I will try to do that later.
 


@AlexanderRC

modarkat
28 Aug 2014, 11:02

The easiest way to emulate global variables is a Registry:

http://www.codeproject.com/Articles/3389/Read-write-and-delete-from-registry-with-C


@modarkat

AlexanderRC
28 Aug 2014, 13:05

RE:

modarkat said:

The easiest way to emulate global variables is a Registry:

http://www.codeproject.com/Articles/3389/Read-write-and-delete-from-registry-with-C

It would leave some traces in the registry, but that is not a big for most of us. AppDomain is transient.


@AlexanderRC

pennyfx
01 Sep 2014, 19:00

You can write the variables out to a shared file or a database.  Personally, I use Redis for sharing data between robots.


@pennyfx