Replies

gakazas
10 Apr 2019, 16:16

I aproach the second issue with the following "hack", but there must be something better.

 

public class indicator: Indicator
{
        [Output("Limit 1", PlotType = PlotType.Line, LineColor = "00FFFFFF")]
        public IndicatorDataSeries Limit1 { get; set; }
        [Output("Limit 2", PlotType = PlotType.Line, LineColor = "00FFFFFF")]
        public IndicatorDataSeries Limit2 { get; set; }
}

public override void Calculate(int index)
{
            Limit1[index] = 20;
            Limit2[index] = -120;
}


 


@gakazas

gakazas
23 Mar 2019, 18:10

For the grouping of the cbot settings, a toggle button to be able to hide the settings of the various groups would be also useful. It would help navigate the needed group in the settings.


@gakazas

gakazas
22 Mar 2019, 22:42 ( Updated at: 21 Dec 2023, 09:21 )

Hi again! Xavier's suggestion is great. I would also like to report a crash that occurs when there is a groups parameter, and I try to add a second one. App crashed as I am typing. 


@gakazas

gakazas
13 Mar 2019, 22:52

Please igonre the "password =0" part of the code above, shouldn't be there for the example.
I would also like to suggest to take "Input Parameters Grouping" one step further, and make possible to create Sub-groups as well.


@gakazas

gakazas
10 Mar 2019, 18:46

part of my cbot:
 

    public enum SignalIndicator
    {
        Option1,
        Option2,
        Option3
    }

    [Robot(TimeZone = TimeZones.CentralEuropeStandardTime, AccessRights = AccessRights.FileSystem)]
    public class myCbot : Robot
    {
        [Parameter("Signal Indicator")]
        public SignalIndicator SigIndi { get; set; }

part of cbotset file:
 

[ChartParameters]
Symbol = EURUSD
Timeframe = D1

[cBotParameters]
password = 0
SigIndi = 1

 


@gakazas

gakazas
10 Mar 2019, 18:40 ( Updated at: 21 Dec 2023, 09:21 )

Hello, Thanks for the update.
"Load Parameters" for a cbot doesn't work when dealing with custom enums, as even if the parameter is saved in the .cbotset file, when loading from it an error message appears and the first option is always selected. 


@gakazas