What's New in cTrader Automate API 3.01

25 Aug 2018, 02:40What's New in cTrader Automate API 3.01#11
.icsposts: 57since: 10 Mar 2015

Automate API 3.01 is nice!


cTrader community chat on Discord: https://discord.gg/uzu7PdH --- If your strategy is profitable, i provide coding services for your algo free of charge under Non Disclosure Agreement terms.
31 Aug 2018, 18:41#12
thongbaogiaodichposts: 18since: 19 May 2018

Hi,

I have this code

ChartObjects.DrawText("pipsaway", PipsAway, StaticPosition.TopRight);


When I compile in cTrader beta, it show error:

Error CS0612: 'cAlgo.API.StaticPosition' is obsolete
Error CS1501: No overload for method 'DrawText' takes 3 arguments

How can I modify my code to new API?

Thanks!

03 Sep 2018, 11:02#13
Panagiotis Charalampousposts: 1631since: 13 Jan 2017

Hi thongbaogiaodich,

Here it is

Chart.DrawStaticText("pipsaway", PipsAway, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);

Best Regards,

Panagiotis


Head of Community Management at cTrader
03 Sep 2018, 17:12#14
Vitoreposts: 6since: 11 Feb 2018

Hi Panagiotis,

could you provide any insight into when the v3.01 could be released to production for brokers? Would be great having the new API available on my life accounts, too

Thank you

04 Sep 2018, 09:59#15
Panagiotis Charalampousposts: 1631since: 13 Jan 2017

Hi Vitore,

There is no ETA for release yet but we are in the final stages of beta testing so it should be soon.

Best Regards,

Panagiotis


Head of Community Management at cTrader
26 Sep 2018, 14:26#16
daniele84ctposts: 1since: 26 Sep 2018
Hello, thanks to this new set of API can a programmer create new custom tick charts?
26 Sep 2018, 14:32#17
Panagiotis Charalampousposts: 1631since: 13 Jan 2017

Hi daniele84ct,

Thanks for posting in our forum. It is possible to create your custom tick charts in cAlgo. You can use this indicator as a guide.

Best Regards,

Panagiotis


Head of Community Management at cTrader
26 Sep 2018, 18:23RE:#18
thriscioposts: 5since: 03 Jan 2018

Hi ! I have a probleme with new classes for drawing

I get a crash using the new DrawText, Color, DrawHorizontalLine etc..

 

If use the exemple you mentionned

     var line = Chart.DrawHorizontalLine("my line", Symbol.Ask, Color.Red);

 

26/09/2018 15:15:18.000 | Crashed in OnStart with TypeLoadException: Impossible de charger le type 'cAlgo.API.ChartHorizontalLine' à partir de l'assembly 'cAlgo.API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3499da3018340880'.

 

Is there anything to do to fix it ? It looks like my reference to cAlgo.API is junk.

12 Nov 2018, 09:57Spaces in ObjectNames#19
Ton de Wildeposts: 7since: 14 Oct 2018

Hi thriscio

Change 

var line = Chart.DrawHorizontalLine("my line", Symbol.Ask, Color.Red);

to

var line = Chart.DrawHorizontalLine("my_line", Symbol.Ask, Color.Red);

Dont use spaces in ObjectNames