Exporting Live data from metatrader 4 to text file - text-files

I know how to export historical data from mt4, but what if I need live tick data?
How to program an EA for mt4 to export tick data to a txt file?

Look at
http://docs.mql4.com/files
and
http://docs.mql4.com/predefined/variables
Set up a loop with short sleep and write ask/bid to file if changed

Related

How can I add a extra channel for time on AcqKnowledge (Biopac)?

I am trying add an extra channel on AcqKnowledge which has the time passed during the experiment saved as milliseconds. I need that specific channel for later analyses when I export the file into text. Otherwise the time information is lost when opening the txt file. Can anyone help? Using AcqKnowledge 5.02 with MP160 Biopac Systems. Thanks!

Toad Datapoint Export, Strange Behavior

I'm experiencing some strange behavior when I use the Quick Export - File function in Toad Datapoint, to export the result of a large sql Oracle query to Excel. Using TOAD Datapoint 4.3 (I know it's not the latest version, but this is what my employer provides).
Has anyone else experienced this?
I see 2 background processes: Writing Data, and Exporting Data. The Writing Data process completes pretty quickly and the progress bar advances. But the Exporting Data process just sits there with no progress, sometimes for 30-45 minutes. Then, for no particular reason that I'm aware of I get a message that the export is complete. Even before that happens, I can see the exported file in Windows Explorer.
So basically 2 questions:
1) Why does this happen, and how can I make it stop?
2) Once the "Writing Data" process completes, is it OK to open the Excel, or will it somehow be incomplete or get corrupted if I don't wait for the Exporting Data process to complete?
Note, I usually just copy and paste from the results grid into Excel whenever possible, but for large data sets I sometimes have to use the Export function.
Thanks in advance!
Well, I still don't know why it happens, but I guess it's specific to my environment.
Anyway, I have a pretty good workaround. Instead of exporting to excel, I export to CSV, then import the results into an excel workbook. The "Writing Data" process completes immediately that way, and the whole thing is much faster.
Thanks for reading

Monitor value via OCR

Background:
Sometime I have the need to monitor the change of a value in a certain program.
My solution is to use a batch file to capture the part of the screen with where the value is shown with Minicap and then use Tesseract to convert the value to plain text. However this script would not work so good if I would need to monitor value change every second for several hours.
Current solution (simplified example):
minicap.exe -captureregion 800 600 850 620 -save C:\file.png -exit -escapequit
tesseract.exe C:\file.png out.txt
Question:
What I would like is some simple way to OCR a value directly from the screen to use in the batch file, perhaps buffer several values before appending them to a csv file. I would prefer to do this without the need to install python or write compiled software
(Posted on behalf of the question author, to move the solution to the answer space).
I found that I could use Capture2Text. The following command takes the on screen text and prints it to stdout:
Capture2Text_CLI.exe --screen-rect "800 600 850 620"
This way it's possible to run the command, check if the value is changed, and if so, append it to a log file together with a timestamp.

write OMNET++ output to a text file

Greeting All,
I have two questions regarding OMNET++ output results
1- I have a simulation that uses AODV routing protocol in VANET network, but
when I record pcap for this simulation, it's shown as corrupted or damage even when I spill it to multi pcap file. How can I solve that? is the Inet pcap support AODV?
2-Is there a way to write this output (in below pic) to a text file or exported as excel format (I highlighted with red color).
I need all the information (event #, time, Relevant hop, name, info). I can copy it but it takes a time when I have around 10000 events?
Thanks in advance
If I am not wrong, you should be able to record the information you want with the statistics methods provided by OMNeT++. You should refer to cOutVector for real-time data recording. Statistical Collection are well explained in Part. 5 of the OMNeT++ TicToc Tutorial 1.
Once you have recorded your data, you can export them from the Browse Data interface (select the vectors you previously recorded in the browse data tab, right click and select Export Data).

Ruby: Reading Unsaved Text File

I have a RFID scanner program in Windows writing its results to a sample text file. However the program does NOT save the file. Is there any way in Ruby that I can read in these changes made to the text file even though they have not been committed?
. You can not .
Can the RFID program be setup to send it's data to any arbitrary program? Because if so, then I'd say your best bet is to start by writing a program that it can send to that would do something sensible with the data (like write it to a file), instead of using Notepad as part of your process.

Resources