Event from Indicator to Bot not working.

Created at 09 Apr 2021, 13:47
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!
AN

AndreaDev

Joined 15.02.2019

Event from Indicator to Bot not working.
09 Apr 2021, 13:47


I'm trying so hard to make event work, I have a indicator(the one on the left) and a bot(the one on the right).

I would like to fire the event from the indicator and get it in the bot, but no matter what I tried it wont fire the event.

Even tried with a reference type before static without success.


@AndreaDev
Replies

amusleh
09 Apr 2021, 17:15

Hi,

You have to call your indicator Calculate method from your cBot OnTick/Bar methods, as the indicator Calculate method is a lazy method its not called automatically unless you do it manually.


@amusleh