How to get the price of a trendline (of a specified color) that was manually drawn

Created at 09 Mar 2024, 03:34
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!
XA

xanderdsa

Joined 09.03.2024

How to get the price of a trendline (of a specified color) that was manually drawn
09 Mar 2024, 03:34


Hi All

Need some help on how to pull chart object data (I am coming from Mt4 and relearning a lot of this).

Trying to pull the price data for a straight trendline of a specified color (let's say green for example) but not sure how to do this. Meant to go in the code below (bold and underline is what I am stuck on):

bool Lowest_price = Bars.HighPrices.Maximum(3) > GetChartTrendLine.Price(Color.Green)

Having the same problem with a true or false condition that is supposed to check if any arrows exist that are lets say down and green.

Any pointers would be apperciated.

 


@xanderdsa