if (Account.IsLive)

Created at 21 Mar 2015, 01:45
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!
kricka's avatar

kricka

Joined 13.03.2013

if (Account.IsLive)
21 Mar 2015, 01:45


I have a coded in the cBot that it should only run on "demo account" not on a live account.

if (Account.IsLive)
                Stop();
            else
                Print("This is a demo account");

So far it runs OK on demo account on most brokers but on one broker it does not run, like the code is treated as a live account.

Any ideas what causes this behavior?

 

 


@kricka
Replies

Spotware
27 Mar 2015, 17:42

Please specify broker name, we will check.


@Spotware

kricka
28 Mar 2015, 01:12

RE:

Spotware said:

Please specify broker name, we will check.

FxPro is the only broker so far that is treating the code as a live account. 


@kricka