DirectionalMovementSystem indicator issue in Cloud

Created at 20 Jan 2025, 14: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!
FMogyi's avatar

FMogyi

Joined 13.10.2015

DirectionalMovementSystem indicator issue in Cloud
20 Jan 2025, 14:31


DMI with the 3rd parameter (cAlgo.API.MovingAverageType) does not working in cloud.

Crashed in OnStart with MissingMethodException: Method not found: 'cAlgo.API.Indicators.DirectionalMovementSystem cAlgo.API.Internals.IIndicatorsAccessor.DirectionalMovementSystem(cAlgo.API.Bars, Int32, cAlgo.API.MovingAverageType)'.

Regards,

FMogyi


@FMogyi
Replies

firemyst
27 Jan 2025, 08:24 ( Updated at: 14 Feb 2025, 18:16 )

Are you still experiencing this issue?

If so, are you able to post sample code that reproduces it?


@firemyst

FMogyi
22 Feb 2025, 10:09

RE: DirectionalMovementSystem indicator issue in Cloud

Use the indicator with  3 parameters.

Sample Copied as the New Template from the List:   “Directional Movement System Sample” created by Spotware:

protected override void OnStart()
        {
            _volumeInUnits = Symbol.QuantityToVolumeInUnits(VolumeInLots);

            _directionalMovementSystem = Indicators.DirectionalMovementSystem(Bars,Periods,MovingAverageType.Simple);
        }

 


@FMogyi