- Font size
- How to get bar index from datetime?
- (MQL4) How to code previous or first indicator data?
ChartTimePriceToXY
(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 ????
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
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
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use