IndicatorTypeLineOutput
interface cAlgo.API Since 5.4
DesktopCLICloud
Represents an indicator type line output.
Definition
public interface IndicatorTypeLineOutput
Namespace: cAlgo.API · Group: AlgoRegistry
Examples
public partial class TestExample : Robot
{
protected override void OnStart()
{
if (AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator) is not IndicatorType smaIndicatorType)
return;
foreach (var lineOutput in smaIndicatorType.Lines)
{
Print($"Name: {lineOutput.Name}");
}
}
}
import clr
clr.AddReference("cAlgo.API")
# Import cAlgo API types
from cAlgo.API import *
# Import trading wrapper functions
from robot_wrapper import *
class Test():
def on_start(self):
indicatorType = api.AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator)
if indicatorType is not None:
smaIndicatorType = IndicatorType(indicatorType)
for line in smaIndicatorType.Lines:
print(f"Name: {line.Name}")
{
"AccessRights": "None"
}
Properties
| Name | Description |
|---|---|
DefaultColorDesktopCLICloudColor | Gets default color. |
DefaultLineStyleDesktopCLICloudLineStyle | Gets default line style. |
DefaultPlotTypeDesktopCLICloudPlotType | Gets the PlotType. |
DefaultThicknessDesktopCLICloudfloat | Gets default thickness. |
NameDesktopCLICloudstring | Gets output name. |