GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article] (Point-and-Click NinjaTrader® Strategy)
Original Trading Strategy
Peer Reviews, Modifications & Responses
Thanks for Sharing!
Trading Strategy Article
SUMMARY: By backtesting the 7-bar chart pattern on GLD’s daily chart that ended on May 19, 2023, we were able to determine that it has only happened one other time in GLD’s price history with that instance being on November 9, 2015. Going short on the open of the daily bar after the November 9, 2015 bar and exiting 7 bars later would have been a profitable trade.
This 7-day chart pattern can be seen at the right edge of the chart of GLD’s daily bars ending on May 19, 2023:
![Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]" Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]"](https://eadn-wc02-5937971.nxedge.io/images/trading-idea-images/2023/05/20/quagensia/gld-2023-05-19-7-bar-pattern-occurred-only-one-other-time-in-its-history-n-1.png)
The aforementioned 7-bar chart pattern has the following characteristics:
- The six daily bars prior to the May 19, 2023 bar all closed below their open prices.
- The open and close prices of the six daily bars prior to the May 19, 2023 bar were all below the 7-period simple moving average of the close price.
- The open of the daily bar six bars prior to the May 19, 2023 bar was higher than the close of the daily bar directly prior to the May 19, 2023 bar.
- The daily bar on May 19, 2023 opened above the open and close of the previous bar and closed above its own open.
- The open and close prices of the daily bar on May 19, 2023 were also below the 7-period simple moving average of the close price.
To determine if this chart pattern had ever occurred on GLD’s daily bars in the past, and if so, what would happen if a short position was taken on the open of the next trading day and exited on the open of the bar seven bars later, we created a Quagensia N Edition strategy using point-and-click, generated its NinjaTrader® NinjaScript® strategy code, and backtested the strategy in NinjaTrader® Desktop’s Strategy Analyzer.
We were hoping that this chart pattern would have occurred many times in GLD’s daily bar price history so that the results of the backtest would have been more statistically significant, but unfortunately our backtest showed that it only happened one other time in GLD’s price history, on November 9, 2015. Going short on the open of the daily bar after the November 9, 2015 bar and exiting on the open of the bar seven bars later would have been a profitable trade, as can be seen in the chart below:
![Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]" Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]"](https://eadn-wc02-5937971.nxedge.io/images/trading-idea-images/2023/05/20/quagensia/gld-2023-05-19-7-bar-pattern-occurred-only-one-other-time-in-its-history-n-2.png)
While this is clearly not a statistically significant finding and we were hoping that there would have been more times in history when this pattern occurred on GLD’s daily bars, we decided to publish this Quagensia N Edition strategy and our findings anyway so that:
- Traders could see the other time in history when this specific chart pattern occurred on GLD’s daily bars in case it informed their trading decisions for Monday’s open.
- Traders would have another example of how to test their trading ideas before they trade them instead of assuming that a testable chart pattern is bullish or bearish.
- This specific Quagensia N Edition strategy will be useful to traders in the future on other instruments and not just on daily price charts. Traders can change the strategy’s input parameters from the NinjaTrader® Desktop’s Strategy Analyzer’s user interface to change various aspects of the strategy such as:
- The moving average length, or “Period”, of the simple moving average (SMA).
- The minimum number of consecutive bars before the final bar in the chart pattern that must close below their open prices and must have open and close prices below the moving average of the close price.
- The extent to which the close price of the final bar in the pattern must close above its open on a percentage basis.
- Whether to go long or short on the open of the bar after the chart pattern occurs.
- The number of bars to stay in the trade, starting on the open of the bar after the chart pattern occurs.
Traders can then run backtests to determine if the similar pattern based on their customizations is bullish or bearish looking out a customizable number of bars.
We invite you to download the Quagensia N Edition strategy on this page, open it in Quagensia N Edition, generate its NinjaTrader® NinjaScript® strategy code and test it in NinjaTrader® 8 or NinjaTrader® Desktop where you should be able to verify our results. You can explore the effect of tightening or loosening the thresholds for the entry criteria by changing the values of the strategy’s input parameters in NinjaTrader®. Finally, if you have a valid paid license for Quagensia N Edition you can change the Quagensia N Edition strategy’s logic without code so you don’t need to use our assumptions and our choice of using the simple moving average instead of one of the many other moving averages built into Quagensia N Edition as shown in the screenshot below:
![Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]" Screenshot for point-and-click trading strategy "GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article]"](https://eadn-wc02-5937971.nxedge.io/images/trading-idea-images/2023/05/20/quagensia/gld-2023-05-19-7-bar-pattern-occurred-only-one-other-time-in-its-history-n-3.png)
This article is an example of algorithmic journalism. We invite content creators to use a Quagensia Desktop Application to create their own articles based on tested trading ideas. And we invite traders to use a Quagensia Desktop Application to test their ideas before they trade them.
This trading idea is subject to the disclaimers in our Terms of Service.
How to Get the Quagensia Strategies
The downloadable zip file linked to below contains Quagensia N Edition (for NinjaTrader®) files and/or auxiliary files that were created by us at Quagensia, Inc.:
Click the link above to download the zip file and unzip it. If this zip file contains point-and-click Quagensia Trading Strategy files for your edition of the Quagensia Desktop Application, put the point-and-click Quagensia Trading Strategy files into your “My Algos” folder as described in the video Downloading & Importing Third-Party Strategies into Quagensia N Edition (for NinjaTrader®) or Downloading & Importing Third-Party Strategies into Quagensia T Edition (for TradeStation®).
Customize Quagensia Strategies with Your Own Ideas
Tweaking Quagensia Trading Strategies using point-and-click with the Quagensia Desktop Application is easy for non-programmers. If you get stuck you can usually find the answer you need in our online help documentation or you can ask a question in our friendly Discord community.
If you don’t want to tweak a Quagensia Trading Strategy with point-and-click to add your own proprietary trading logic, you can still download a Quagensia Trading Strategy file, open it up in the Quagensia Desktop Application, and generate its code, then backtest and optimize the trading strategy on different instruments, different bar periods (weekly bars, daily bars, hourly bars, 15-minute bars, etc.), or different bar types (time-based bars, volume-based bars, tick-based bars, etc.), and use different start and end dates.
Some tweaks you can make to the Quagensia Trading Strategies you download include:
Modify the entry & exit logic.
- Add more conditions, remove conditions, or change them by choosing from among a very large number of components, including many exotic indicators.
- Add or modify stop losses, trailing stops, and profit targets. Make them tighter, less tight, or based on an entirely different calculation.
- Add or modify time stops. For example, exit after a certain number of bars either unconditionally or only if the post-entry price action did or did not exhibit certain characteristics.
Enhance the output of the strategy to go beyond simply placing orders.
- Draw lines, shapes, and text on the chart. For instance, you can mark times or prices where each entry or exit condition of a multi-condition entry or exit was true, even if all the necessary entry or exit conditions were not true at the same time so an entry or exit did not occur.
- Write information to NinjaTrader®’s NinjaScript® Output window or TradeStation®’s EasyLanguage® Print Log window.
- Write information to a file. You can even output a report that can be opened in Microsoft Excel or consumed by another application that reads comma-delimited, semicolon-delimited, or otherwise character-delimited tabular data files.
![GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article] (Point-and-Click NinjaTrader® Strategy) GLD 5/19/2023: 7-Bar Pattern Occurred Only One Other Time in its History. Possibly Bearish for Monday’s Open. [Article] (Point-and-Click NinjaTrader® Strategy)](https://eadn-wc02-5937971.nxedge.io/images/trading-idea-images/2023/05/20/quagensia/gld-2023-05-19-7-bar-pattern-occurred-only-one-other-time-in-its-history-n.png)
