Define Constant

Created at 16 Oct 2018, 18: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!
FR

freemangreat

Joined 16.10.2018

Define Constant
16 Oct 2018, 18:28


Hi everyone.
Is there an opportunity to declare constants in cAlgo?

#define PI 3.1415926535897932384626433832795

 


@freemangreat
Replies

freemangreat
16 Oct 2018, 20:25

RE:

freemangreat said:

Hi everyone.
Is there an opportunity to declare constants in cAlgo?

#define PI 3.1415926535897932384626433832795

 

In C# there is no preprocessor directive #define.

private const double PI=3.1415926535897932384626433832795;

 


@freemangreat