Can you create a new chart programmatically via the API?
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?
Replies
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.
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisCharalampous
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