I'm looking for a way to automate when stocks are invested in, and taken out. Here are the conditions:
a: The software has to support a cheap broker like zecco or sogotrade. I need <$4 dollar trades if possible.
b: The software has to be cheap - less than $100 preferably with a free trial for me to test it out.
c: The software has to be easy to work with. I want to program a simple script in C, or Visual Basic, and get the program to do the rest with the minimum of fuss. Here's a very simple and naive rule set which the potential program would hopefully allow:
Code:
For st=1 to 100 // cycle through my 100 stock portfolio predefined at an earlier point in time
If (invest==true) {
// i.e. if today's (n) stock price (from stock company "st") is lower than yesterday's (n-1), take out money.
if p[st][n] < p[st][n-1] invest=false
}
If (invest==false) {
// i.e. if today's stock price is higher than yesterday's stock price.
If p[st][n] > p[st][n-1] invest=true
}
*invest*
Next st
The script would run once per day, and [n] always represents the current day it's on.
It should be as simple as that. I don't need all the bells and whistles from these overly feature-laden programs. Just historical stock data, and allowing a simple program as above would be amazing.
I've heard metaquotes might be a solution, but where does it give the list of supported brokers? And how much does it cost?
Also, what software does sogotrade support? Can I get free or virtually free software from anywhere, and have it support the sogotrade broker?
Many thanks for any responses!