OPEN-SOURCE SCRIPT

Stock Gaps SPY Correlation Strategy

This is daytrade stock strategy, designed to take the best out of the daily gaps that are forming between the close of previous day and opening of present day.

At the same time its logic has been adapted for SPY chart, in order to use correlation with the other stocks/assets/ etf which are linked with SP500 movement.

Lastly it has been added 2 new confirmation logics, based on the USI: advance/decline chart and percentage above vwap among all US stocks.


The rules for entry are simple :

We are at the opening daily candle, we have a long/short gap based on where the opening is happening and at the same time we are checking to see that the current different between the current difference between low and previous high (or viceversa) is higher than an established parameter(minimal deviation )

For exit, we exit based on time/clock parameter, in this case by default I selected 1h and half before close of the US session.

For testing purposes I have used 10% of the available capital, with a 0.0035$ comission per each share bought ( IBKR comissions)



If there are any questions, please let me know either here or in private !
botdaytradeLONGnasdaqshortSPX (S&P 500 Index)S&P 500 (SPX500)SPDR S&P 500 ETF (SPY) statisticsStocksTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


🔻My Website: hercules.money/
🔻Blog: hercules.money/blog/
🔻Telegram : t.me/hercules_trading
🔻Discord: discord.gg/hudcJvcCAq
Also on:

Disclaimer