How to use/implement events OnBarClose/Open in cBot
How to use/implement events OnBarClose/Open in cBot
26 Jul 2023, 13:08
Hello!
I tried to write like this:
protected override void OnStart()
{
Bars.BarClosed += BarsBarClosed;
}
private void BarsBarClosed(BarClosedEventArgs obj)
{
Print("Bar closed");
}
But I get the following error in the cTrader log: 01/02/2023 03:00:00.230 | Crashed in OnStart with TypeLoadException: Could not load type 'cAlgo.API.BarClosedEventArgs' from assembly 'cAlgo.API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3499da3018340880'.
Replies
v.fiodorov83
26 Jul 2023, 14:04
( Updated at: 21 Dec 2023, 09:23 )
RE: How to use/implement events OnBarClose/Open in cBot
PanagiotisChar said:
Hi there,
Are you using 4.8.15?
Need help? Join us on Telegram
@v.fiodorov83
PanagiotisChar
27 Jul 2023, 05:12
Hi,
This became available in 4.8
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
26 Jul 2023, 13:12
Hi there,
Are you using 4.8.15?
Aieden Technologies
Need help? Join us on Telegram
@PanagiotisChar