cAlgo not show inherited Properties with Parameter and Output Attributes from base class.

Created at 19 Mar 2017, 09:31
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PS

psz5mc@gmail.com

Joined 14.02.2017

cAlgo not show inherited Properties with Parameter and Output Attributes from base class.
19 Mar 2017, 09:31


cAlgo should show the inherited parameters and outputs from base indicator class. For example:

[Indicator(IsOverlay = true, AutoRescale = false)]
public class MyBaseIndicator : Indicator {
[Parameter("Atr Period", DefaultValue = 100, MinValue = 1, MaxValue = 200)]
public int atrPeriod { get; set; }
[Parameter("Atr Multiplay", DefaultValue = 2, MinValue = 0, MaxValue = 8)]
public int atrMultiplay { get; set; }
}

[Indicator(IsOverlay = true, AutoRescale = false)]
public MyIndicator : MyBaseIndicator
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
}

cAlgo show only Parameter instead of all parameters.
I suggest cAlgo should use dotNET reflection API instead of source code analising. In case of Indicators and Robot too.


cTrader Automate
@psz5mc@gmail.com