Whats Your Best Approach To Draw This Fibonacci

hemmiesoft

Trader
Sep 9, 2020
2
0
17
31
Hi Everyone, I need your expertise to solve this little problem in my EA.....
How can draw a Fib to the low of my first open order to the high of the candle before the current bar provided the numbers of bar between them is more that 10 ?
 

Enivid

Administrator
Staff member
Nov 30, 2008
16,039
817
144
Odessa
www.earnforex.com

hemmiesoft

Trader
Sep 9, 2020
2
0
17
31
What is this?

That's High[1].

That's easy if you know the index of the first bar - you just check whether it is > 11.
Yes ... I'm trying to get the low of the oldest position (OrderTicket=0)... And how to get the Bar number...
 

Enivid

Administrator
Staff member
Nov 30, 2008
16,039
817
144
Odessa
www.earnforex.com
Yes ... I'm trying to get the low of the oldest position (OrderTicket=0)... And how to get the Bar number...
Could you please explain what you mean by the "low of the oldest position"?
As for the Bar number, you are trying to get it by what? By time? There is iBarShift() for that.