Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1115
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
Good time, how to add a new line to the finished file.csv, with a shift to the 1st line - if possible? Or some other way, but without recalculating/recycling the existing data. Is it allowed to update the names of columns and rows
{
int handle= FileOpen(fileName,FILE_CSV|FILE_WRITE," "),x=0,y=0;
string str="";
if(handle<1)
{
Print("Error:",GetLastError());
return(handle);
}
else
{
str="";
for(x=0; x<ARRAY_SIZE_X; x++)
{
str = str + DoubleToString(arrayIndexX[x]);
str = str + "\t";
}
FileWrite(handle,PrepareString(str));
for(y=0; y<ARRAY_SIZE_Y; y++)
{
str = "";
str = str + DoubleToString(arrayIndexY[y]) + "\t";
for(x=0; x<ARRAY_SIZE_X; x++)
{
str = str + DoubleToString(arrayZ[0][x][y]);
str = str + "\t";
}
FileWrite(handle,PrepareString(str));
}
}
FileClose(handle);
return(handle);
}
In general, the problem is that the system swearing at the three-dimensional array where the axis j,k must be huge values, here I think to put everything into a text editor as storage, if necessary, to process it.
I may need to use\n when writing, but I don't know how yet.
The value of the first line is the cap, the second line is 0 for all columns always, filling comes from the 2nd line
Good time, how to add a new line to the finished file.csv, with a shift to the 1st line - if possible? Or some other way, but without recalculating/recycling the existing data. Is it allowed to update the names of columns and rows
{
int handle= FileOpen(fileName,FILE_CSV|FILE_WRITE," "),x=0,y=0;
string str="";
if(handle<1)
{
Print("Error:",GetLastError());
return(handle);
}
else
{
str="";
for(x=0; x<ARRAY_SIZE_X; x++)
{
str = str + DoubleToString(arrayIndexX[x]);
str = str + "\t";
}
FileWrite(handle,PrepareString(str));
for(y=0; y<ARRAY_SIZE_Y; y++)
{
str = "";
str = str + DoubleToString(arrayIndexY[y]) + "\t";
for(x=0; x<ARRAY_SIZE_X; x++)
{
str = str + DoubleToString(arrayZ[0][x][y]);
str = str + "\t";
}
FileWrite(handle,PrepareString(str));
}
}
FileClose(handle);
return(handle);
}
In general, the problem is that the system swearing at the three-dimensional array where the axis j,k must be huge values, here I think to put everything into a text editor as storage, if necessary, to process it.
I may need to use\n when writing, but I don't know how yet.
The value of the first line is the cap, the second line is 0 for all columns always, filling goes from the 2nd line
Dear Experts advise: how to MT4 instaforex to insert a screenshot, the message on this forum (if you can - in detail - "on the fingers" for not very bright)
1. Save the screenshot on your computer, press Ctrl+Alt+I, specify the desired picture. That's all.
2. If from a network, the same, but instead of the path to the file on the local drive - to specify a link to the image on the network.
1. Save the screenshot on your computer, press Ctrl+Alt+I, specify the desired picture. That's all.
2. If from network, the same, but instead of path to the file on the local disk - specify the link to the image in the network.
Screenshots of the MetaTrader platform
EURCHF, H4, 2017.01.05
InstaForex Group, MetaTrader 4, Real
FileWriteArray
Good time, how to add a new line to the finished file.csv, with a shift to the 1st line - if possible? Or some other way, but without recalculating/recycling the existing data. Unless it's allowed to update column and row names
{
int handle= FileOpen(fileName,FILE_CSV|FILE_WRITE," "),x=0,y=0;
Remove FILE_CSV, use FILE_ANSI instead if you use "\n\t"format etc.