source: AccountState.mq4

Last change on this file was 6, checked in by george, 15 years ago
  • Přidáno: Skript pro zápis stavu účtu do souboru.
File size: 634 bytes
Line 
1#property copyright "Chronos"
2#property link ""
3
4int init()
5{
6 return(0);
7}
8
9int deinit()
10{
11 return(0);
12}
13
14int start()
15{
16 int FileHandle;
17 int FileHandle2;
18 int err;
19
20 FileHandle2 = FileOpen("account.info", FILE_CSV | FILE_WRITE);
21 FileHandle = FileOpen("account.info", FILE_CSV | FILE_WRITE);
22 //err = GetLastError();
23 //Print("error(",err,"): ", err);
24 if(FileHandle > 0)
25 {
26 FileWrite(FileHandle, AccountBalance(), AccountCredit(). AccountProfit());
27 FileWriteDouble(FileHandle, AccountBalance(), AccountCredit(). AccountProfit());
28 }
29 FileClose(FileHandle);
30 return(0);
31}
32
Note: See TracBrowser for help on using the repository browser.