Testing the Trade Client with a Batch File
How to test the Trade Client by sending a fake trade on demand.
When you configure the Trade Client, it's nice to be able to test that it's working right then.
But by default, you have to wait until a real trade signal comes in, which could take hours or days to appear.
This document describes a way to generate a custom trade signal on demand, so you can verify things are working at anytime, even after hours or on the weekend.
Let's say your file that Amibroker is appending to is c:\temp\trade_signal_file.txt and that you've configured the Trade Client to watch that file and take trades based on it.
You can create a batch file that, when executed, can append whatever text you want to the file.
Here's the contents of a batch file I've used for testing this process:
echo AAPL,3/13/2025 9:46:41 AM,5.6,100,5.6,85.80364047,2.80 >> c:\temp\trade_signal_file.txt
You can customize the string in the echo statement to whatever you'd like.
Here's a video showing the process: