Lachlan James:
Indicator used - https://www.mql5.com/en/code/22602
Been searching for about 7 hours, but cant seem to get anything to work. I have tried working with icustom and looking at the buffer but kept getting the empty value,
in which I tried to detect if it value != empty value but it didn't work either. Saw on ForexFactory that people were looking for objects drawn but the code posted didn't work for me. Any help would be great.
Kind regards,
Lachlan
The code seems to draw objects on chart. You could try using OnChartEvent to detect object creation of specific type.

Documentation on MQL5: Event Handling / OnChartEvent
- www.mql5.com
OnChartEvent - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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
Indicator used - https://www.mql5.com/en/code/22602
Been searching for about 7 hours, but cant seem to get anything to work. I have tried working with icustom and looking at the buffer but kept getting the empty value,
in which I tried to detect if it value != empty value but it didn't work either. Saw on ForexFactory that people were looking for objects drawn but the code posted didn't work for me. Any help would be great.
Kind regards,
Lachlan