result

Created at 17 Dec 2020, 01:08
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!
EM

emmasystems

Joined 08.12.2015

result
17 Dec 2020, 01:08


code: 

[Parameter("MaFast",DefaultValue= 2)]

public double maFast {get; set;}

ma=Indicators.SimpleMovingAverage i_ma;

 'ma=maFast.Result.Last(0);'

Error :    'double' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'double' could be found (are you missing a using directive or an assembly reference?)   

Not Sure why the error. your help will be appreciated. Thank you

 

 


@emmasystems
Replies

PanagiotisCharalampous
17 Dec 2020, 08:08

Hi emmasystems,

Please provide us with the complete cBot code.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous