Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 393
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
Then it goes like this:
Then it goes like this:
V5 is some kind of calculation result. I removed V5, put an array in its place and want it to be written to the file. The file is created, but only one value is written to it, not the indicator data array. What is missing? I have an indicator that is correctly plotted on the chart. I want to write its values into a file to be able to read them later. But only one number is written. Can you help me to understand what is wrong?
Then it goes like this:
I did it with FileWriteArray, but now the file is empty. it won't write an array there :(. Do you know how to help? Sure you do. Please tell me what's wrong.
It goes like this
What type of array? Insert the code, stop being greedy! And here's an array writing apparently only a character array.
And the array double in the loop writes
It goes like this
What type of array? Insert the code, stop being greedy! And this array writes apparently only a character array
And here's the array double in the loop writing
How greedy is that? :)
Why would you print anything from an indicator? Everything is on the screen - that's what an indicator is. When I need a table - I run a script with iCustom()
Hello, I've been struggling with the code that is supposed to check the price of the order in the terminal. I decided to try checking against the tickets. Put the tickets into an array, started checking.
All is good, it returns TRUE. I think, I will delete one, it will return FALSE. But no((( I deleted all, and script still returns 1 instead of 0. What I do wrong?
Hello, fellow experts! Please help a beginner. I'm trying to put an indicator into my Expert Advisor(I've racked my brains ...)! Gives out an error: 'limit' - declaration without type.
In this line: limit = MathMax(limit,MathMin(Bars,iCustom(NULL,timeFrame,indicatorFileName, "returnBars",0,0)*timeFrame/Period());
Hello, I've been struggling with the code that's supposed to check the order price in the terminal. I decided to try checking against the tickets. Put the tickets into an array, started checking.
All is good, it returns TRUE. I think, I will delete one, it will return FALSE. But no((( I deleted all, and script still returns 1 instead of 0. What I do wrong?
The thing is that if you select (OrderSelect(...)) by ticket, parameter 3 is ignoredMODE_TRADES
so, to find out from which list (closed, open) you have chosen the order, you need to check its close time
0- open and pending, >0 closed
Hello, fellow experts! Please help a beginner. I'm trying to put an indicator into an Expert Advisor (I've racked my brains ...)! Gives out an error: 'limit' - declaration without type.
In this line: limit = MathMax(limit,MathMin(Bars,iCustom(NULL,timeFrame,indicatorFileName, "returnBars",0,0)*timeFrame/Period()));
This is quite an interesting way of doing it.
Try the following on the error