Is obsolete warning

Created at 30 May 2018, 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!
ZE

zedodia

Joined 30.05.2018

Is obsolete warning
30 May 2018, 09:31


Ive downloaded a bot to play with while I learn C#. Upon building to bot since the update i recieve the following warnings even though it says build succeded.

Error CS0618: 'cAlgo.API.Position.Volume' is obsolete: 'Use VolumeInUnits instead'

Error CS0618: 'cAlgo.API.Internals.Symbol.NormalizeVolume(double, cAlgo.API.RoundingMode)' is obsolete: 'Use NormalizeVolumeInUnits instead'

Error CS0618: 'cAlgo.API.Internals.Symbol.VolumeMin' is obsolete: 'Use VolumeInUnitsMin instead'

Error CS0618: 'cAlgo.API.Internals.Symbol.VolumeMax' is obsolete: 'Use VolumeInUnitsMax instead'

 

What do I do? changing the code to whats writen doesnt work and the build fails.

 

any help would be great. thanks

 


@zedodia
Replies

PanagiotisCharalampous
30 May 2018, 11:49

Hi zedodia,

Thanks for posting in our forum. Could you please share your cod with us so that we can fix it?

Best Regards,

Panagiotis


@PanagiotisCharalampous

zedodia
03 Jun 2018, 02:07

thanks for the reply. I wont post the code as it is not my own and dont want to distribute something i didnt write. I will keep learning .


@zedodia

PanagiotisCharalampous
04 Jun 2018, 10:34

Hi zedodia,

The warnings suggest themselves what you should do.

Best Regards,

Panagiotis


@PanagiotisCharalampous