Skip to content

SymbolTickEventArgs

Summary

Provides data for the symbol tick event.

Signature

1
public class SymbolTickEventArgs

Namespace

cAlgo.API

Properties

Name Description
SymbolName { get; } Gets the symbol name.
Bid { get; } Gets the bid price.
Ask { get; } Gets the ask price.
Symbol { get; } Gets the symbol.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the SymbolTickEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class SymbolTickEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Symbol.Tick += Symbol_Tick;
         }
         private void Symbol_Tick(SymbolTickEventArgs obj)
         {
             Print("Symbol: {0} | Ask: {1} | Bid: {2}", obj.SymbolName, obj.Ask, obj.Bid);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: March 23, 2023