GA
Topics
10 Apr 2019, 16:11
1184
2
Replies
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
gakazas
10 Apr 2019, 16:16
I aproach the second issue with the following "hack", but there must be something better.
@gakazas