Hello,

I'm struggling to understand how to get an algorithm to start fresh each day.  Is it possible to create a new watchlist every day to be scanned every second while the market it open?  Is it possible to code the following strategy?

I want an algorithm that scans all tiers of NYSE and all tiers of Nasdaq right after market open every day.  I want to make sure the algorithm includes NYSE, NYSE American Equities, NYSE Arca Equities, NYSE National, NYSE Texas, The NASDAQ Global Select Market, the NASDAQ Global Market, and the NASDAQ Capital Market, and all other tiers in its morning scan.

From the morning scan about 10 seconds after market open, I want the algorithm to create a watchlist of the 100 stocks that have opened with the biggest gap above their previous day's close price.  I only want a stock added to my watchlist if that stock opened at a $0.25 share price or higher.

After the watchlist is created, I want my algorithm to scan that watchlist every second until market close.  I want the algorithm to buy any stock on my watchlist when that stock hits 40% above its open price.  I want my algorithm to sell a position when it hits a 30% profit or a 30% loss.  If any positions are still open a few seconds before market close, I want them all closed.  I want the watchlist cleared after market close. 

For example, I want to make sure this algorithm would've bought SBET on 5/27 and that it would've bought KNW on 6/6.  Thanks!