This is MQL4 questions and not MQL5 questions.
My observation is that this simple code line always enable Ray to the right property.
Even if I set Object Ray Property = false, it always stretch the fibo retracement to right end of the chart. This is only applicable to programmatically drawn Fibonacci Retracement object using MQL4. In MQL5, this is fine and no bug at all.
Also when you manually drawn, this is not a problem too.
Should this be considered to be bug for MQL4 or is there any other ways to get around with this ?
Thanks in advance for your help on this. :)
If you move the entire fib to the left (or move the chart shift triangle further to the left) you will probably see that the fib does end i.e. it is not a ray.
The bigger the difference between the 2 times, the longer the line. You can't control how long the line is, only whether it is a ray.
It is not entirely what I am looking for.
But still make some sense to some extent.
It look bug to me still since this does not happen to MQL5.
Thanks for sharing your idea. :)
I have used exactly the same first and second point to insert Fibonacci retracement manually in the chart in the Meta Trader 4.
The right ray does not happen when the Fibonacci retracement was inserted manually.
It only happen when it is programmatically inserted using MQL4. Shouldn't they behave the same if the same first and second points are used in the chart ????
Odd. When I use your code in post #1, it draws the fib exactly the same as when I draw it manually. Build 1031
Is this happen in Meta Trader 4 ?
We already know that this is not a problem in Meta Trader 5.
Thanks for your clarification.
When you say exactly the same, do you mean that it does have right ray on for both manually and programmatically ?
Running this script on MT4:
Produces this result:
Now manually dragging a fib over the same points:
Deliberating pulling the manual fib higher, so you can see: