MarketSession
Summary
Represents the predefined market sessions.
Signature
| public enum MarketSession
|
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 | using cAlgo.API;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.FullAccess)]
public class MarketSessionsTest : Robot
{
[Parameter("Working Session", DefaultValue = MarketSession.London)]
public MarketSession WorkingSession {get; set;}
protected override void OnStart()
{
Print("Current Sessions: {0}", MarketSessions);
}
protected override void OnTick()
{
if (!MarketSessions.HasFlag(WorkingSession))
return;
// Do something on WorkingSession only
Print("It's working session");
}
}
}
|
Fields
None
Summary
None
Signature
| public static MarketSession None;
|
Return Value
MarketSession
Wellington
Summary
Wellington
Signature
| public static MarketSession Wellington;
|
Return Value
MarketSession
Tokyo
Summary
Tokyo
Signature
| public static MarketSession Tokyo;
|
Return Value
MarketSession
Sydney
Summary
Sydney
Signature
| public static MarketSession Sydney;
|
Return Value
MarketSession
Singapore
Summary
Singapore
Signature
| public static MarketSession Singapore;
|
Return Value
MarketSession
Frankfurt
Summary
Frankfurt
Signature
| public static MarketSession Frankfurt;
|
Return Value
MarketSession
London
Summary
London
Signature
| public static MarketSession London;
|
Return Value
MarketSession
NewYork
Summary
NewYork
Signature
| public static MarketSession NewYork;
|
Return Value
MarketSession