Skip to content

MarketSession

Summary

Represents the predefined market sessions.

Signature

1
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

1
public static MarketSession None;

Return Value

MarketSession

Wellington

Summary

Wellington

Signature

1
public static MarketSession Wellington;

Return Value

MarketSession

Tokyo

Summary

Tokyo

Signature

1
public static MarketSession Tokyo;

Return Value

MarketSession

Sydney

Summary

Sydney

Signature

1
public static MarketSession Sydney;

Return Value

MarketSession

Singapore

Summary

Singapore

Signature

1
public static MarketSession Singapore;

Return Value

MarketSession

Frankfurt

Summary

Frankfurt

Signature

1
public static MarketSession Frankfurt;

Return Value

MarketSession

London

Summary

London

Signature

1
public static MarketSession London;

Return Value

MarketSession

NewYork

Summary

NewYork

Signature

1
public static MarketSession NewYork;

Return Value

MarketSession