Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
JavaScript developer looking for some help

Hey I have always been interested in algorithmic trading but never has there been a tool to make it as easy as this. That being said, I cant program in python and am completely lost. However, I have an awesome idea for an algorithm and was looking to see if someone could write it up for me. Here it is:

  1. multiple stocks are loaded into the program
  2. the algorithm loops through the stocks and selects the one that has fluctuated a lot (i.e. the stock that has the greatest difference between high and low and has gradually declined, essentially the stock that has gone up and down a few times most dramatically) and is currently n% closest to the average low for n amount of days
  3. the algorithm buys the largest amount of stock possible, whether that (for small stocks) is stock volume or it is the amount of cash the portfolio has (make sure the portfolio does not become overdrawn)
  4. if the stock is n% close to the average high n days ago it sells it, (also the algorithm should not sell stock it doesn't have)

I would appreciate it if anyone could put this into code for me. Judging by the simplicity of some of the sample algos it seems that it should not be hard to implement.