CustomSymbolSentiment.SellPercentage
property · CustomSymbolSentiment · cAlgo.API Since 5.3
DesktopCLICloud
Gets / sets sell percentage.
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
double SellPercentage {get; set;}
customSymbolSentiment.SellPercentage: float
Returns double
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.Sentiment.SellPercentage = 45;
Print("Sell percentage: {0}", customSymbol.Sentiment.SellPercentage);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.Sentiment.SellPercentage = 45
api.Print(f"Sell percentage: {customSymbol.Sentiment.SellPercentage}")