



WHRoeder:
I can't interpret your 13 points. The triangle is not a simple line. For example it can be located in the so far past too. I have to work with the price and with the time too (x, y coordinates). 

Solution: Given three corner points of a triangle, and one more point P. Write a function to check whether P lies within the triangle or not. For example, consider the following program, the function should return true for P(10, 15) and false for P'(30, 15) Let the coordinates of three corners be (x1, y1), (x2, y2) and (x3, y3). And coordinates of the given point P be (x, y) 1) Calculate area of the given triangle, i.e., area of the triangle
ABC in the above diagram. Area A = [ x1(y2 – y3) + x2(y3 – y1) +
x3(y1y2)]/2 
3423 

3423 

GumRai: Normally when you refer to Bid price it is the current price which is shown as an horizontal line across the chart. On historical bars you would usually refer to Open, High, Low and/or Close. X coordinate: Barsshift (0 is the last bar, then 1, 2, 3...) Y coordinate: Price (any price) Acutla bid price coordinates can be for example: X:0, Y:1.12345 
Hi Coders,
I would like to know the position of the Bid price relative to the TRIANGLE object. Whether is it inside a TRIANGLE or not?
Do you have a simple idea for it?
Thank you in advance.
Relative