AccessRights
Summary
cBots and Indicators Access Rights.
Signature
Namespace
cAlgo.API
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 is 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)
{
}
}
}
|
Fields
None
Summary
Algorithm doesn’t require any access rights.
Signature
Return Value
AccessRights
FileSystem
Summary
Access to file system.
Signature
Return Value
AccessRights
Internet
Summary
Access to Internet or other networks.
Signature
Return Value
AccessRights
Registry
Summary
Access to windows registry.
Signature
Return Value
AccessRights
FullAccess
Summary
The unlimited access rights.
Signature
Return Value
AccessRights