-
Notifications
You must be signed in to change notification settings - Fork 0
Command line version
Bohuslav Svancara edited this page May 26, 2015
·
7 revisions
This is just a quick experiment.
-
Create a folder
SignalsToCollective2
on your hard diskC:
-
Download Microsoft's MSXSL tool to the same directory.
-
Install CURL for Windows.
-
Download all files from the
CommandLine
folder of this repository to theSignalsToCollective2
folder. -
Modify 3 elements in
signals_to_c2.xml
:
- Enter your C2DS password
- Enter your Collective2 trading system ID
- If CURL is not on the system path, enter the path in this line:
<curlpath>CURL.EXE</curlpath>
- Run
transform.bat
. This transformation createssignals_to_c2_curl.bat
. Review this new file if it looks fine.
Lines should look like this one:
CURL.EXE "https://www.collective2.com/cgi-perl/signal.mpl?cmd=signal&systemid=11111111&pw=YOUR_C2DS_PASSWORD&symbol=ABAX&action=BTO&quant=30&instrument=stock" -o c2_response_ABAX_BTO_6.txt
If it looks good, you can run the signals_to_c2_curl.bat
command file.
It sends signals to Collective2 and stores Collective2 responses to files like c2_response_ABAX_BTO_6.txt
.
-
run.bat
does both steps (transform and run) and collects all responses to thec2_responses.txt
file.
Happy trading!