Skip to content

SymbolSentiment

Summary

Represents a symbol sentiment.

Signature

1
public abstract interface SymbolSentiment

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 using cAlgo.API;
 namespace cAlgo.Robots;
 [Robot(AccessRights = AccessRights.None)]
 public class TestExample : Robot
 {
     protected override void OnStart()
     {
         Print($"Symbol {SymbolName} traders sentiment Buy Percentage: {Symbol.Sentiment.BuyPercentage} and Sell Percentage: {Symbol.Sentiment.SellPercentage}");
     }
 }

See Also

Properties

BuyPercentage

Summary

Gets buy percentage if available otherwise 0.

Signature

1
public abstract double BuyPercentage {get;}

Return Value

double

SellPercentage

Summary

Gets sell percentage if available otherwise 0.

Signature

1
public abstract double SellPercentage {get;}

Return Value

double

Events

Updated

Summary

Occurs when symbol sentiment data is updated.

Signature

1
public abstract event Action<SymbolSentimentUpdatedEventArgs> Updated;