Hi, I'm new to mql4. I'm learning. I would like to know if someone could help me with an indicator that I have! I would like to place a horizontal line at the 0 fibonacci level and when moving the horizontal line the fibonacci expands or recedes, thank you very much who can help me
There's a lot that you're asking for, but it comes down to using the ChartEvent CHARTEVENT_OBJECT_DRAG.
When the event is fired, check the sparam of OnChartEvent() to make sure it matches the name of the HLine . If it does, then get the HLine's OBJPROP_PRICE value and set it to the Fibo's OBJPROP_PRICE1 or OBJPROP_PRICE2 value, whichever is the 0 level of your Fibo.

- docs.mql4.com
There's a lot that you're asking for, but it comes down to using the ChartEvent CHARTEVENT_OBJECT_DRAG.
When the event is fired, check the sparam of OnChartEvent() to make sure it matches the name of the HLine . If it does, then get the HLine's OBJPROP_PRICE value and set it to the Fibo's OBJPROP_PRICE1 or OBJPROP_PRICE2 value, whichever is the 0 level of your Fibo.
I'm going to try thank you very much

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I'm new to mql4. I'm learning. I would like to know if someone could help me with an indicator that I have! I would like to place a horizontal line at the 0 fibonacci level and when moving the horizontal line the fibonacci expands or recedes, thank you very much who can help me