ubzen:
Yeah, show me the complete code so I can better understand what you're trying to do.
int start()
{
int handle;
string str;
handle = FileOpen("info.txt",FILE_READ);
str=FileReadString(handle);
string hebe = str;
int cur = 12;
int cor = 1;
ObjectCreate("inf", OBJ_LABEL, 0, 0, 0);
ObjectSetText("inf", hebe, 10, "Times New Roman", Red);
ObjectSet("inf", OBJPROP_CORNER, cor);
ObjectSet("inf", OBJPROP_XDISTANCE, 10);
ObjectSet("inf", OBJPROP_YDISTANCE, cur);
return;
}
i have this code works well as info.txt i mean it can read inside of the text and show on the screen. but when i changed info.cvs, or xls, FILE_CSV|FILE_READ or FILE_BIN instead of txt damn thing doesnt work and i could find how to do on internet
i have this code works well as info.txt i mean it can read inside of the text and show on the screen. but when i changed info.cvs, or xls, FILE_CSV|FILE_READ or FILE_BIN instead of txt damn thing doesnt work and i could find how to do on internet am i want an impossible thing :)
When testing in the Strategy Tester, you want to place the Data-File in the "\tester\files" folder. The File looks something like below. Also Attached. ( Rename the file any.xls
).
You do-not want to use Microsoft Excel to Create the File. You could Edit the file using a Spread-Sheet program like Excel but be careful not to save the extra stuff these programs tend to add to the files. Anyways, you might be better off using .txt with Tab separated for simple stuff.
When testing in the Strategy Tester, you want to place the Data-File in the "\tester\files" folder. The File looks something like below. Also Attached. ( Rename the file any.xls ).
You do-not want to use Microsoft Excel to Create the File. You could Edit the file using a Spread-Sheet program like Excel but be careful not to save the extra stuff these programs tend to add to the files. Anyways, you might be better off using .txt with Tab separated for simple stuff.
sorry for late response i was bussy wiht my other jobs thanks a lot its seem works ive tired it with expert and i think i can modify it for my project. see ya later if ill have any question about modify i hope will not
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.
if you need complate code i can send
i wonder even if its works is there way to read data from xls file
thanks
Yeah, show me the complete code so I can better understand what you're trying to do.
i have this code works well as info.txt i mean it can read inside of the text and show on the screen. but when i changed info.cvs, or xls, FILE_CSV|FILE_READ or FILE_BIN instead of txt damn thing doesnt work and i could find how to do on internet
am i want an impossible thing :)
thanks
i have this code works well as info.txt i mean it can read inside of the text and show on the screen. but when i changed info.cvs, or xls, FILE_CSV|FILE_READ or FILE_BIN instead of txt damn thing doesnt work and i could find how to do on internet am i want an impossible thing :)
thanks
This is what I have in mind.
When testing in the Strategy Tester, you want to place the Data-File in the "\tester\files" folder. The File looks something like below. Also Attached. ( Rename the file any.xls ).
You do-not want to use Microsoft Excel to Create the File. You could Edit the file using a Spread-Sheet program like Excel but be careful not to save the extra stuff these programs tend to add to the files. Anyways, you might be better off using .txt with Tab separated for simple stuff.win 7 ulti 32bit last sp
This is what I have in mind.
When testing in the Strategy Tester, you want to place the Data-File in the "\tester\files" folder. The File looks something like below. Also Attached. ( Rename the file any.xls ).
You do-not want to use Microsoft Excel to Create the File. You could Edit the file using a Spread-Sheet program like Excel but be careful not to save the extra stuff these programs tend to add to the files. Anyways, you might be better off using .txt with Tab separated for simple stuff.sorry for late response i was bussy wiht my other jobs thanks a lot its seem works ive tired it with expert and i think i can modify it for my project. see ya later if ill have any question about modify i hope will not
thanks again best regards