KNHConsultants:
Hello i hope someone can help me. I want to know which function to use to capture when a user uses the 'draw text' tool on the chart.
What i am trying to use allow the user to use the text tool to type on the chart then the EA would interpret what the user typed and use it in executing a trade.
Nice idea :).
You can use OnChartEvent() to capture the moment when the object has been created or changed, then check through it's type to make sure it's a text object, before trying to interpret it's content.
Documentation on MQL5: Event Handling / OnChartEvent
- www.mql5.com
//| OnChartEvent_Sample.mq5 | //| Copyright 2018, MetaQuotes Software Corp. | //| https://www.mql5.com | //| Expert initialization function |...
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 hope someone can help me. I want to know which function to use to capture when a user uses the 'draw text' tool on the chart.
What i am trying to use allow the user to use the text tool to type on the chart then the EA would interpret what the user typed and use it in executing a trade.