ChartObjects.DrawLine -- Result

Created at 06 Mar 2016, 12:18
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!
MaVe's avatar

MaVe

Joined 24.08.2015

ChartObjects.DrawLine -- Result
06 Mar 2016, 12:18


Is it possible to get the Result of the ChartObjects.DrawLine internal?


@MaVe
Replies

Spotware
08 Mar 2016, 16:37

Dear Trader,

Could you please further explain us your question.

Unfortunately, we are not sure we fully understand what are you trying to retrieve.


@Spotware

MaVe
09 Mar 2016, 09:59

Dear Spotware,

I'm trying to retrieve the Result of a "DiagonalLine" to combine it with the HasCrossedAbove Function.

ChartObjects.DrawLine("DiagonalLine", today, high, tomorrow, low, color, 1);

Is it possible to retrieve the Result of such a "DiagonalLine", similar to an ema Result?


@MaVe

Spotware
09 Mar 2016, 12:08

Dear Trader,

When you know the (x,y) end points of a line, it's possible to find the X (time) or Y (price) based on a given y or x.

However, there is no such Method in cAlgo.


@Spotware