Forum

copying a number from a text document

hii friends, suppose i have a text file with some rabdom numbers only, only one number in each line. 10 500 350 457 1385 57 3987 4532 something like above. I want to copy the second last number. In this case 7th number. Remember we don't know which numbers are there and how many numbers are there. I

Writing to file

Hi friends, int filehandle0l= FileOpen (File_Name1, FILE_TXT | FILE_WRITE | FILE_READ | FILE_SHARE_READ ); if (filehandle0l!= INVALID_HANDLE ) { FileSeek (filehandle0l, 0 , SEEK_END ); FileWrite (filehandle0l, "a" );

Discard unwanted digits in Mql4

Hello, How can I change a double value say 0.1784257 to 0.1 When I used NormalizeDouble (0.1784257,1) it was converted to 0.2 I don't want a rounded number. I need just first one digit after the decimal point. Any help please

Arrows not updating/refreshing in real time (mql5)

Hello friends, I wrote a simple mt5 indicator to display arrow/dot, when we get a bullish candle after a bearish/series of bearish candle and vice versa. It works fine.But the problem is it is not updating in real time.I need to switch time frames or restart mt5 in order to get it updated every