Questions from Beginners MQL5 MT5 MetaTrader 5 - page 690
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
I apologise for the inconvenience.
//+------------------------------------------------------------------+
//| start |
//+------------------------------------------------------------------+
int start()
{
а надо
//+------------------------------------------------------------------+//| start |
//+------------------------------------------------------------------+
int OnStart
{
But the file creates, not with the requested data,
result - one column filled with 17 rows of boolean true
There's a stringStringSetChar - swore at the beginning,
I changed it toboolStringSetCharacter - this might be the reason for the boolean error.
//| PrepareString |
//+------------------------------------------------------------------+
string PrepareString(string s)
{
bool exit = false;
int index = 0;
string str = s;
//----
while(!exit)
{
index = StringFind(str, ".", index);
if(index > -1)
str = StringSetChar(str, index, ',');
else
exit = true;
}
return(str);
}
While I won't be at computer, I will not be able to give any hints. I will be in 4 hours, it's my day off.
I apologise for the inconvenience
//+------------------------------------------------------------------+
//| start |
//+------------------------------------------------------------------+
int start()
{
а надо
//+------------------------------------------------------------------+//| start |
//+------------------------------------------------------------------+
int OnStart
{
No, it's not the string -StringSetChar
Actually you needvoidOnStart(), although it's allowedint
Thanks, but not the point!
No, it's not about the string -StringSetChar
Thanks, but not the point!
Are you sure you candeclare an array like this?
double arrayZ[ARRAY_SIZE_X,ARRAY_SIZE_Y];
Are you sure you candeclare an array like this?
double arrayZ[ARRAY_SIZE_X,ARRAY_SIZE_Y];
And yet it doesn't swear. Fixed it, no change.
Doesn't it also fail on this one?
int handle =FileOpen(fileName,FILE_CSV|FILE_WRITE,' '), x, y;
Doesn't it also fail on this one?
int handle =FileOpen(fileName,FILE_CSV|FILE_WRITE,' '), x, y;
I don't understand why X,Y and I don't see the catch anymore.
That's your code, I certainly don't understand why you have it written that way.
It's your code, I certainly don't understand why you have it written that way.