custom Parameters
custom Parameters
11 Feb 2014, 11:33
would be very useful to have the possibility to insert parameter type enums. For example : Type trade op.: "Sell" "Buy" "Sell & Buy" "Auto"
Replies
perayut.2012
05 Dec 2014, 06:13
I agree too, sometimes I'd like to declare TradeType parameter, but it's not allowed.
@perayut.2012
chiripacha
11 Jul 2016, 06:28
please add the functionalty, that is what we are waiting for. thank you
@chiripacha
stevennjuki
16 Aug 2016, 16:29
Hello please add this functionality for custom enumerations. Even decimal data types are not yet possible!!
@stevennjuki
sulemankm
19 Dec 2016, 15:50
Hi, I just wanted to know if there is a work around for this, I mean until it is added by spotware.
They already do it for parameter types such as TimeFrame etc.
@sulemankm
radityo.ardi
28 Apr 2017, 06:50
( Updated at: 28 Apr 2017, 06:51 )
2017 and none is implemented.
When this feature will be implemented? 2150? Or later when man-made satellite reaches the edge of Milky Way galaxy?
@radityo.ardi
tacnet
15 Jun 2017, 15:24
To be able to create a code as suggested below would be great.
Is it still not possible to create a custom type to select from a dropdown list to set a parameter?
public enum MovingAverageType
{
EMA,
HMA,
SMA,
WMA,
}
[Parameter("MAType", DefaultValue = EMA)]
public MovingAverageType MAType{ get; set; }
@tacnet
equantfx
15 Jul 2017, 05:41
extremely important feature to be able to write code cleanly for more complex indicators. One issue I have is that we do not have a comment or description field for the parameters which would appear as a mouseover. The workaround for the missing enum is to have an integer field and then map it internally, BUT currently I have no way to provide information as a tooltip popup, which would tell me how to use the parameter. I think in addition to the support for enums, it would be nice to have a Description field which would appear as a tooltip.
@equantfx
if.mihai@gmail.com
21 Jun 2018, 07:44
vital feature
the number of votes actually shows how many users of CTrader are programming with it
:))
@if.mihai@gmail.com
gregschr
20 Sep 2014, 13:58
I agree. It could also be used for other Parameters like line and text colors or a moving average type. For example"
public enum MovingAverageType
{
EMA,
HMA,
SMA,
WMA,
}
[Parameter("MAType", DefaultValue = EMA)]
public MovingAverageType MAType{ get; set; }
@gregschr