Make ChartXYtoTimePrice and ChartTimePricetoXY APIs available programmatically
Make ChartXYtoTimePrice and ChartTimePricetoXY APIs available programmatically
29 Sep 2023, 15:59
Hello all,
I've looked through the documentation but can't seem to find the necessary function i'm looking for.
I've previously used MT4/5 so for those that are familiar, I'm looking for the ChartXYtoTimePrice and ChartTimePricetoXY functions. For those not aware of the functions, they're:
ChartXYtoTimePrice
- Converts the Chart X & Y axis/pixels to their respective chart Time and Price values for an object, typically a trend line.
ChartTimePricetoXY
- Converts Time and Price to XY pixel values
Since converting these values won't give your precise values, CTrader team should consider adding a zoom/scale input argument for granular control.
Each of these can be variable assigned and referenced later.
https://www.mql5.com/en/docs/chart_operations/chartxytotimeprice
https://www.mql5.com/en/docs/chart_operations/charttimepricetoxy
Replies
Profit_Islander
10 Oct 2023, 10:20
RE: Make ChartXYtoTimePrice and ChartTimePricetoXY APIs available programmatically
PanagiotisChar said:
Hi there,
These methods are not available in cTrader.
Ctrader should create them and make it available, without methods like these, a programmer is limited
@Profit_Islander
Chanie
05 May 2024, 08:57
( Updated at: 05 May 2024, 15:16 )
RE: Make ChartXYtoTimePrice and ChartTimePricetoXY APIs available programmatically
Spotware said:
Hi all,
These methods are in our backlog for future releases.
Best regards,
cTrader Team
Any estimated time of release? This is a crucial feature.
@Chanie
PanagiotisChar
09 Oct 2023, 12:57
Hi there,
These methods are not available in cTrader.
@PanagiotisChar