cTrader 3.0 - Crashed in OnStop with TypeLoadException: Could not load type 'cAlgo.API.Color'

Created at 23 Nov 2018, 17:55
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!
NE

netread2004

Joined 26.12.2017

cTrader 3.0 - Crashed in OnStop with TypeLoadException: Could not load type 'cAlgo.API.Color'
23 Nov 2018, 17:55


I am using cTrader 3.0 becasue the broker did not release 3.3 yet. I am using Chart.DrawStaticText for example as follows:

 Chart.DrawStaticText("pendcanc", "\n\n\n\n\n\n\n\n\n\n\n\n PendCancelled   : " + args.PendingOrder.Id + " CancelTrigg : " + orderCancelledTriggered, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Lime);

I don't get any error when I build the code but when I run it cTrader Crashes with following types of message:


23/11/2018 15:48:06.072Crashed in OnStop with TypeLoadException: Could not load type 'cAlgo.API.Color' from assembly 'cAlgo.API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3499da3018340880'.

This is show-stopper issue please help resolve this ASAP.

 

Thanks


         


@netread2004
Replies

PanagiotisCharalampous
23 Nov 2018, 17:58

Hi netread2004,

Go to Documents\cAlgo\API and delete the contents of the folder. Then launch your cTrader 3.0 again. Let me know if it resovles the problem.

Best Regards,

Panagiotis


@PanagiotisCharalampous

netread2004
23 Nov 2018, 18:58

Now I get following BUILD error:

Error CS0117: 'cAlgo.API.Chart' does not contain a definition for 'DrawStaticText'

Error CS0103: The name 'Color' does not exist in the current context

 

 


@netread2004

PanagiotisCharalampous
26 Nov 2018, 11:10

Hi netread2004,

This is because you are using classes and functions that are not included in 3.0. If you want to use them, you will need to wait until your broker gets 3.3

Best Regards,

Panagiotis


@PanagiotisCharalampous