[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 223

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
Gentlemen! Good evening!
Could you please tell me why the compiler thinks that in the code below
the int Ticket variable is undefined.
It generates one error
'Ticket' - variable not defined C:\Program Files\Alpari NZ MT4(2)\experts\hhhh.mq4 (18, 6)
But the Ticket variable is also defined in the assignment statement in the code below and the code compiles successfully
Probably just missing brackets in one place
The int Ticket variable is local and will be reset on the next tick.
I've run into this problem.
I need to initialise a one-dimensional array of type double for 3000 bid price values, all values are different and are not in order.
I have to manually enter each value separated by comma - not realistic.
I tried with excel, but if I put a dot instead of a floating point, excel doesn't read the numbers to put a comma between them.
Please suggest the best option.
I wrote a simple Expert Advisor that returns 3 variables and passes them to start().
Then on each tick these data (object type, price1 and price2) should be returned.
Then I run this Expert Advisor in visualization mode in the tester and draw a line in the chart by hand. The drawing prices and the object type I got in theIsObjectFound() function do not return correct. Here is the log output:
The line is hand-drawn, which means it has a type and other parameters:
Why are the required parameters not returned?
I've run into this problem.
I need to initialise a one-dimensional array of double type for 3000 bid price values, all values are different and are not in order.
It's not realistic to manually enter each value separated by a comma.
I tried it with excel but if I put a dot instead of a floating point excel doesn't read the numbers to put a comma between them.
Please suggest the best option.
Excel can read, show me more details of how you did it
I wrote a simple Expert Advisor that returns 3 variables and passes them to start().
Then on each tick these data (object type, price1 and price2) should be returned.
Then I run this Expert Advisor in visualization mode in the tester and draw a line in the chart by hand. The drawing prices and the object type I got in theIsObjectFound() function do not return correct. Here is the log output:
The line is hand-drawn, which means it has a type and other parameters:
Why aren't the required parameters returned?
We have to
objName without quotes. This is the variable name (identifier in the program text) that contains the object name (string)
It should be
objName without quotes. This is the variable name (identifier in the program text) that contains the object name (string)
By the way, the documentation thinks otherwise. That's where I got caught up in the confusion.
Excel can read it, show me more details how to do it
In the line of 100 values with a comma after the first sign (ie, price)
Highlighting a line
Home - find and replace
Changing all the commas to dots - successful.
Now we have to put commas between the values
I select the format of the cells
All formats
In the active field that displays the number format of my string - I put a comma at the end
Exel says he is unable to process the format I have entered.
By the way, the documentation thinks otherwise. So I've been misled.