Print works in initialize but not in Calculate when indicator in a Robot.

Created at 12 Nov 2020, 22:33
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!
SH

Shares4UsDevelopment

Joined 14.10.2018

Print works in initialize but not in Calculate when indicator in a Robot.
12 Nov 2020, 22:33


To debug an indicator i've set a Print in initialize and in calculate

Running  the indicator standalone will print in both cases
Running the indicator in a bot only prints the initialize message.

Is that a bug?


@Shares4UsDevelopment
Replies

PanagiotisCharalampous
13 Nov 2020, 15:21

Hi Shares4UsDevelopment,

I cannot verify your claim. I tested it and works fine for me. Please check your code.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

Shares4UsDevelopment
13 Nov 2020, 15:41

RE:

Code was OK.
Just needed to create new project with same source and restart ctrader and it worked.
Sorry I did not mentioned that before (Bit too busy i think)

 


@Shares4UsDevelopment