Download MetaTrader 5

How to get point from the chart

To add comments, please log in or register
Nasser charm
26
Nasser charm  
How to get points from current chart, point ( price, time ) in order to used it specific funtion
Keith Watford
Moderator
10565
Keith Watford  

ChartTimePriceToXY

Nasser charm
26
Nasser charm  

(ChartTimePriceToXY(0,window,dt,price,x,y))

dt and price are values of the selected point.

I want to get the latest date and price updated ????

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
Yes, you can get it but you have to use ChartEvent to make it work.
Nasser charm
26
Nasser charm  
I want to draw function,starts at the chosen point using chartTimePricetoXY, and ends at the latest available point.
Keith Watford
Moderator
10565
Keith Watford  
Nassersh:
I want to draw function,starts at the chosen point using chartTimePricetoXY, and ends at the latest available point.


You cannot draw a function, you can have a function that draws something.

If you just want a trendline, then you don't need chartTimePricetoXY, just draw a trendline and as the latest available point moves, use Object Move for the second (10 co-ordinate

Nasser charm
26
Nasser charm  

how to take the last X and Y coordinate on the chart,


For example :

ChartXYToTimePrice(0,x,y,window,OT,OP))


int x =(int)lparam; ///// ===> here I want to get the latest update of X |||
int y =(int)dparam; //// ====== > here I want to get the latest update of Y ||| get the updates while chart running
datetime CT =0;
double CP =0;
int window=0

qjol
3243
qjol  
why can't you use time[0] ?
Nasser charm
26
Nasser charm  
how to get price using Time[0]
Alain Verleyen
Moderator
32395
Alain Verleyen  
Nassersh:
how to get price using Time[0]
Please don't double post, I have to remove your other topic.
To add comments, please log in or register