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?
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.
YarTrade: I did it with FileWriteArray, but now the file is empty. It won't write the array there :(. Do you know how to help? Sure you do. Please tell me what's wrong.
It goes like this
int V5=555;
string file_name="VolC_"+Symbol()+(string)Period();
int file_handle=FileOpen(file_name,FILE_WRITE|FILE_TXT);
FileWrite(file_handle,V5);
FileClose(file_handle);
What type of array? Insert the code, stop being greedy! And here's an array writing apparently only a character array.
string V5[5]={"Жили","были","дед","и","баба"};
string file_name="VolC_"+Symbol()+(string)Period();
int file_handle=FileOpen(file_name,FILE_WRITE|FILE_TXT);
FileWriteArray(file_handle,V5);
FileClose(file_handle);
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
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
int limit = MathMax(limit,MathMin(Bars,iCustom(NULL,timeFrame,indicatorFileName,"returnBars",0,0)*timeFrame/Period()));
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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