AccessRights
Summary
cBots and Indicators Access Rights.
Signature
Namespace
cAlgo.API
Fields
Name | Description |
None | Algorithm doesn’t require any access rights. |
FileSystem | Access to file system. |
Internet | Access to Internet or other networks. |
Registry | Access to windows registry. |
FullAccess | The unlimited access rights. |
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | using cAlgo.API;
namespace cAlgo
{
// This is how you can use the AccessRights property of an Indicator or Robot attribute
// The default value is None, which means your indicator/cBot will not access anything outside
// like files, network, windows registry, etc
// If you try to access any of aforementioned resources you will see an access right error on
// cTrader automate logs tab if your indicator/cBot access rights were not enough.
// The FullAccess gives you access to everything, it's like executing a .NET standalone app
// on a Windows machine.
// The AccessRights allows cTrader to notify the user of your indicator/cBot that it will
// access which resources on his system, so he can decide to allow it or not
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
public class AccessRightSample : Indicator
{
protected override void Initialize()
{
}
public override void Calculate(int index)
{
}
}
}
|
Last update: March 17, 2023