CustomSymbol.Sentiment
property · CustomSymbol · cAlgo.API Since 5.3
DesktopCLICloud
Gets custom symbol sentiment.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
CustomSymbolSentiment Sentiment {get;}
customSymbol.Sentiment: CustomSymbolSentiment
Returns CustomSymbolSentiment
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.Sentiment.BuyPercentage = 70;
customSymbol.Sentiment.SellPercentage = 30;
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.Sentiment.BuyPercentage = 70
customSymbol.Sentiment.SellPercentage = 30