Check if price is inside-outside of ellipse object

Created at 23 Jan 2020, 02:03
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!
SA

sascha.dawe

Joined 11.02.2019

Check if price is inside-outside of ellipse object
23 Jan 2020, 02:03


Hi,

 

I was wondering how to workout if closed price is on the inside or outside of the ellipse chart object.  

This specifically relates to the curved area of the ellipse and the corresponding price/level, not whether the closed price is higher or lower than the bottom and top point of the ellipse.

See below screenshot.

Thanks,

Sascha

.


@sascha.dawe
Replies

sascha.dawe
23 Feb 2020, 12:39 ( Updated at: 21 Dec 2023, 09:21 )

RE:

I was able to find a solution to this problem using the formula on this page. https://math.stackexchange.com/questions/2114895/point-ellipse-collision-test

 

sascha.dawe said:

Hi,

 

I was wondering how to workout if closed price is on the inside or outside of the ellipse chart object.  

This specifically relates to the curved area of the ellipse and the corresponding price/level, not whether the closed price is higher or lower than the bottom and top point of the ellipse.

See below screenshot.

Thanks,

Sascha

.

 

 


@sascha.dawe