Hello everyone!
Just wanted to say that you guys rock! Learned a lot from everybody- and hope to learn much more. I'm having trouble nailing down a working algo- I'm new to Python- I know about as much as it takes to get me into trouble lol..
Anyways, I'm trying to setup an algo that will basically scan stocks or sectors (I can set the universe) and check to see if there are any tickers that are opening with at least a 15% or so gap up and higher than normal volume. If the condition is met- to run the rest of the algo, but if not- don't place any orders for that day.. (been playing around with other algos and most will always execute an order every day.)
If the condition is met- I want it to log the high and low of the first 5 mins after market open. On min 6, I want it to execute a short order (maybe 1000 shares or something) and place a stop loss at the high of first 5 min.
Once a position is open- it would have a profit target to unload 1/2-3/4 shares at $1 profit, and the rest for either EOD or $2 profit target. If it reaches the first target ($1)- the stop loss would be canceled- and the stop loss would be reset to break even (without commissions) for the remaining shares.
If there are still open positions at 3:45pm- close all positions.
I realize this may not make sense but just looking for a little help. If you have suggestions or can help with parts of it- I would really appreciate it.