Crashed in ChartArea.MouseUp with RuntimeBinderException: 'cAlgo.API.Chart' does not contain a definition for 'DrawRectangle'

Created at 10 Sep 2020, 10:36
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!
FA

fang0092

Joined 08.06.2019

Crashed in ChartArea.MouseUp with RuntimeBinderException: 'cAlgo.API.Chart' does not contain a definition for 'DrawRectangle'
10 Sep 2020, 10:36


What does this error mean - Crashed in ChartArea.MouseUp with RuntimeBinderException: 'cAlgo.API.Chart' does not contain a definition for 'DrawRectangle' ?


@fang0092
Replies

PanagiotisCharalampous
10 Sep 2020, 11:04

Hi fang0092,

Can you please provide more information so that we can reproduce this exception?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

fang0092
12 Sep 2020, 09:49

RE:

fang0092 said:

What does this error mean - Crashed in ChartArea.MouseUp with RuntimeBinderException: 'cAlgo.API.Chart' does not contain a definition for 'DrawRectangle' ?

I made a few changes and I got this.

Crashed in ChartArea.MouseUp with RuntimeBinderException: Cannot convert type 'System.Collections.Generic.List<object>' to 'int'

 

It seems like it was because I supplied variables of the wrong data type(var) to the DrawRectangle method.


@fang0092