fly7680:
but at each new Bar, the coordinates slip automatically forward of a Bar.
I also inserted ObjectMove but it does not work.
- You created the object, nothing is going to change. Do you mean you want to automatically move it?
ObjectCreate ("Fibo",OBJ_FIBO,0,Time[K],iCustom(0,0,"Heiken Ashi",3,K),Time[K],High[K]); : ObjectMove(0,"Fibo",K,Time[K],High[K]);
A Fib has two coordinates. Coordinate 0 is your Time[K],Heiken price[K], and coordinate 1 is Time[K],High[K]. There is no coordinate K, so of course "it doesn't work." You would know that had you bothered to check your return codes What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
I would like Fibo's coordinates to remain unchanged and not move, so I thought I would leave K.
Fibo moves to each new candle forward, while I would like it to always stay at the first coordinate.
Fibo moves to each new candle forward, while I would like it to always stay at the first coordinate.
You created the object, nothing is going to change unless you move it or delete and recreate it.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, I have created the Fibonacci object without problems, but at each new Bar, the coordinates slip automatically forward of a Bar. I also inserted ObjectMove but it does not work.