NormalizeVolume shown obsolete

Created at 01 May 2018, 10:28
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!
sifneos4fx's avatar

sifneos4fx

Joined 15.11.2017

NormalizeVolume shown obsolete
01 May 2018, 10:28


Hello Support Team

Since week or so, I get this warning on compilation:

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

However NormalizeVolumeInUnits does not exists.

Any suggestions?

Best,
Patrick  


@sifneos4fx
Replies

PanagiotisCharalampous
08 May 2018, 14:43

Hi Patrick,

In order to fix this issue, go to C:\Users\username\Documents\cAlgo\API and delete the contents of this folder.

Best Regards,

Panagiotis


@PanagiotisCharalampous

sifneos4fx
20 May 2018, 17:56

That did the magic!

Thanks!

Patrick


@sifneos4fx

Waxy
31 May 2018, 01:50

Hello Patrik,

I must repeatedly do this in order to work, hopefully, there will be a fix for backward compatibility soon, right?

Best Regards


@Waxy

PanagiotisCharalampous
31 May 2018, 11:44

Hi Waxy,

All brokers have been upgraded to cTrader 3.0 therefore you should not have this problem anymore. You should just upgrade your cBot to use the latest function and the warning will go away.

Best Regards,

Panagiotis


@PanagiotisCharalampous

Waxy
01 Jun 2018, 02:04 ( Updated at: 21 Dec 2023, 09:20 )

Hello Panagiotis,

The error is shown when I build from VS2017:

In the end, it says: Process doesn't have access to file because it's being used by another process.

I must close VS and click Build on cTrader for these errors to become warnings, I think it's a bug.

Now without VS2017 Open:


@Waxy

sifneos4fx
03 Jun 2018, 08:04

RE:

Hi Panagiotis, 

Now, with cTrader 3.0, warning remains, even after deletion of the DLLs!

Any suggestions?

Best, 

Patick

 

Panagiotis Charalampous said:

 

Hi Patrick,

In order to fix this issue, go to C:\Users\username\Documents\cAlgo\API and delete the contents of this folder.

Best Regards,

Panagiotis

 


@sifneos4fx

PanagiotisCharalampous
04 Jun 2018, 10:57

Hi Patrick,

My suggestion is to follow what is suggested in the warnings. Replace the obsolete methods with the new ones.

Best Regards,

Panagiotis


@PanagiotisCharalampous

sifneos4fx
17 Jun 2018, 11:20

RE:

Hello Panagiotis, 

Please kindly deliver an example of the NormalizeVolumeInUnits, as no info found in the API reference.

Thank you!

Best regards,
Patrick

 

 

Panagiotis Charalampous said:

Hi Patrick,

My suggestion is to follow what is suggested in the warnings. Replace the obsolete methods with the new ones.

Best Regards,

Panagiotis

 


@sifneos4fx

... Deleted by UFO ...

PanagiotisCharalampous
18 Jun 2018, 09:37

Hi Patrick,

Here it is.

Best Regards,

Panagiotis


@PanagiotisCharalampous