Return time and date of peak in graph

Created at 22 Aug 2019, 12:56
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DA

danblack9988

Joined 03.06.2019

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 :)

@danblack9988