Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Opinions??

Hello all,

I'm a complete novice when it comes to coding and I'm trying to get a few opinions on this. Can my strategy below be coded? I'm going to list the exact parameters for what the algo should do. I would have to adjust some certain aspects in order for the algo to run properly.

Universal Metrics For All:
1. If stock falls below low of day after purchase, sell.
2. If stock does not reach 10% or 20% target, sell at end of day.
3. All purchases are volume controlled, the program should only purchase a stock if the volume does not exceed this mathematical limit. (Share price x 214,000 + 42,000) For instance, if the stock hits the acceleration and deceleration metrics, it's no good if the volume in the 5 minute candle is too high. This is too much exposure. For instance, a share price of $3.45 with volume of 122,000 in a 5 minute candle is good, a share price of $3.45 with volume of 1,750,000 in a 5 minute candle is bad. The volume is too high. That is the mathematical formula that is needed.
4. Minimum 5 minute candle volume increases every hour.
9:30-10:30 / 75,000
10:30 - 11:30 / 100,000
11:30 - 12:30 / 125,000
12:30 - 1:30 / 150,000
1:30 - 2:30 / 175,000
5. Cutoff for the trading day is 2:30 P.M.
6. The program must be able to adjust its spend to the overall funds available and the share price. For instance, if the fund has $1,000,000 overall, and the share price of the stock being purchased is $2.39, the program should spend $239,000 on the trade. So if 1,000,000 is available, the fund should be spending (Share price x $100,000). So the scale should be as follows:
** $1,000,000 (Share price x 100,000)
$900,000 (Share price x 90,000)
$800,000 (Share price x 80,000)
(So the amount of shares purchased should always correlate to 10% of the overall portfolio value.)

Specific Metrics By Price:

Price: $0.50-$1.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 20%.

Price: $1.00-$2.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 20%.

Price: $2.00-$4.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 20%.

Price: $4.00-$8.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 20%.

Price: $8.00-$16.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 20%
**Above $10, profit target is 10%.

Price: $16.00-$32.00
Must rise 1% in 5 minute candle.
Must not fall more than 1% from high of 5 minute candle.
If does not fall more than 1% from high of 5 minute candle, buy a break of the high of 5 minute candle in which acceleration was reached.
Must adhere to volume metrics previously described.
Profit target is 10%.

I would need to be able to change a few things within the code, they will need to be adjusted from time to time:
1. Acceleration & Deceleration metrics.
2. Volume minimum and maximum metrics.

I would assume that I'll have to build a list of stocks to input into the code because my strategy does not trade any and every stock. There is some criteria that isn't numerical. So I think I may have to build an asset list. I typically do not trade S&P 500 components, this strategy is outside of the general market. I target low priced stocks with high volume for huge profit potential. I'm looking to collaborate with someone that has the necessary skill and overall market understanding needed to pull this off. Of course I can't put the full details of my strategy on here so the "1% and 1%" are just placeholders. Shoot me an email to [email protected] if you'd like to collaborate.