Return time and date of peak in graph
Created at 22 Aug 2019, 12:56
DA
Return time and date of peak in graph
22 Aug 2019, 12:56
Hi all,
I am trying to build a robot that trades using trend lines, and need to figure out how to get the time and date, and price of the peaks in the graph.
Then i need to generate x,y coordinates to plot the gradient of the line.
The findMax function can presumably be used to find the peak, then I need to find the date and time and the candle highest price of that bar.
Any help would be gratefully accepted :)