Download MetaTrader 5
To add comments, please log in or register
How to choose the most appropriate signal and subscribe to it in no time
Nasser charm
26
Nasser charm 2014.04.07 21:24 
How to get points from current chart, point ( price, time ) in order to used it specific funtion
Keith Watford
Moderator
7994
Keith Watford 2014.04.07 22:04  

ChartTimePriceToXY

Nasser charm
26
Nasser charm 2014.04.08 08:14  

(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 2014.04.08 08:21  
Yes, you can get it but you have to use ChartEvent to make it work.
Nasser charm
26
Nasser charm 2014.04.08 09:04  
I want to draw function,starts at the chosen point using chartTimePricetoXY, and ends at the latest available point.
Keith Watford
Moderator
7994
Keith Watford 2014.04.08 09:52  
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 2014.04.08 12:28  

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 2014.04.08 12:32  
why can't you use time[0] ?
Nasser charm
26
Nasser charm 2014.04.08 13:04  
how to get price using Time[0]
Alain Verleyen
Moderator
28672
Alain Verleyen 2014.04.08 17:11  
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