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
Hi everyone. I have been trying to set a variable in an indicator and then pass it to an Expert Advisor. I was wondering if anyone can help me with what am I doing wrong and how I should get the values that I need.
Brief explanation: I have been trying to get the 'double' value for expertVar[0] and use it ('int') in my expert advisor (in order to know the corrisponding pattern and open the right position (Buy, Sell)).
The question: How can I get the value from the indicator in my expert advisor?
Code for the Pattern Indicator:
My Expert Advisor code to get the value from the indicator:
I apologize if it's a noob question. I have been trying to look up several topics, but didn't find anything that helped me. Thank you.