0

I saw an indicator in ex5 format. I wanted to use the indicator in an EA. One of the processes is to write the indicator input parameter as it is inside my EA. The problem am having now is the int variable is having space in between. Example, input int Calc Bars = 500; that is what the indicator is having. putting it in my EA, Bars is a mql5 code, mql5 is seeing Calc Bars as two different words. How do I overcome this problem?.

1 Answer 1

1

Are you sure this is the variable name? Variable names cannot include spaces. This is most likely the comment after the input variable definition. In the imported EA, the corresponding source code most likely looked like this:

input int cBars = 500;  // Calc Bars

I spelled it cBars, but it could be any name. You should make sure you find out the name of the input variable. There should be some documentation along with the ex5 file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.