Can you create a new chart programmatically via the API?

Created at 29 Nov 2022, 18:20
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!
SC

scotpip

Joined 24.07.2018

Can you create a new chart programmatically via the API?
29 Nov 2022, 18:20


Hi

New to CTrader.

I'm generating my own bars from ticks for backtesting and would like to visualise the results.

In MT4 and JForex it's possible to create a new chart via the API and populate it with your own bars, indicators and trade visualisations.

I've taken a quick look at the CTrader chart API and can't see any way to do this - it only seems to work with charts that already exist in the client.

Am I missing something, or will I have to use a 3rd party charting library?


@scotpip
Replies

ghcaplan
01 Jan 2023, 14:11

RE:

I never got an answer to this, and took a different route.

But I recently spotted this in the Spotware Github repo, and it seems to work.

It may be useful to someone so I thought I'd post the link:

 

 


@ghcaplan

PanagiotisCharalampous
02 Jan 2023, 09:35

Hi there,

In MT4 and JForex it's possible to create a new chart via the API and populate it with your own bars, indicators and trade visualisations.

You can't.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisCharalampous