cBot Trial

Created at 30 Aug 2021, 15:04
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!
Nickachino's avatar

Nickachino

Joined 03.04.2017

cBot Trial
30 Aug 2021, 15:04


Hi,

Can anyone assist in helping how a trial version of a cBot can be created, that expires after 1 month's of use for example?

Regards

Nick


@Nickachino
Replies

PanagiotisCharalampous
30 Aug 2021, 15:23

Hi Nick,

You have two options

1) Hard code the expiration date in the cBot's code and exit the cBot in case the expiration date has passed.

2) Implement a licensing system that will control the trial period of your cBot.

See an example for point 1 below

            var dateTime = new DateTime(2021, 9, 30);
            if (Server.Time > dateTime)
                return;

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

Nickachino
30 Aug 2021, 15:48

RE:

PanagiotisCharalampous said:

Hi Nick,

You have two options

1) Hard code the expiration date in the cBot's code and exit the cBot in case the expiration date has passed.

2) Implement a licensing system that will control the trial period of your cBot.

See an example for point 1 below

            var dateTime = new DateTime(2021, 9, 30);
            if (Server.Time > dateTime)
                return;

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Thanks for the quick response.

I quickly were bale to implement the hardcoded style, however do you have any direction on how to go about implementing the licensing system?


@Nickachino

PanagiotisCharalampous
30 Aug 2021, 15:55

Hi Nick,

You will probably have to buy one (google it, there are hundreds of them available) and implement it as per the developer's instructions.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous