Global Variables
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.
Replies
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
Spotware
13 Aug 2014, 14:04
No, there is no such functionality in cAlgo.API.
@Spotware