Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashed in Symbol.Tick event with InvalidOperationException: Sequence contains no elements #7

Open
teymourian opened this issue Sep 30, 2022 · 0 comments

Comments

@teymourian
Copy link

Hi dear
my code is

_renkoBars = new RenkoBars(RankoSizeInPips, Symbol, this);
private void RenkoBars_OnBar(object sender, OhlcBar newBar, OhlcBar oldBar)
{            
  Print(_renkoBars.LastBar.Close);
}   

after run error
30/09/2022 15:55:22.730 | Crashed in Symbol.Tick event with InvalidOperationException: Sequence contains no elements
30/09/2022 15:55:22.871 | CBot instance [RenkoBot, EURUSD, m1] crashed with error "Crashed in Symbol.Tick event with InvalidOperationException: Sequence contains no elements"

error for [Print(_renkoBars.LastBar.Close);]

pls help
tnk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant