Category Archives: investing

Backtesting $AAPL Apple trade before and after earnings using Trading View @tradingview

Let’s say you want to find a trade for Apple after and before earnings. How can you do it?

Here is a step-by-step plan to backtest an Apple trade before and after earnings on TradingView using 2-week increments of historical stock prices for 20 quarters:

Apple 2 week backtest trading view
  1. Log in to TradingView and select the chart for Apple’s stock (AAPL).
  2. Click on the “Settings” icon in the top toolbar and select “Interval” from the dropdown menu. Set the interval to “2 weeks” to ensure that the chart displays historical data in 2-week increments.
  3. Click on the “Data” icon in the top toolbar and select “Load Data” from the dropdown menu.
  4. In the “Load Data” dialog box, select “Historical Data” and set the date range to cover the past 20 quarters of Apple’s earnings releases.
  5. Once you have loaded the historical data, click on the “Strategy Tester” icon in the top toolbar to open the backtesting panel.
  6. In the backtesting panel, select “AAPL” as the instrument and set the date range to cover the same time period as the historical data you just loaded.
  7. Define your trading strategy. For example, you may want to buy AAPL stock two weeks before each earnings release and sell it two weeks after the release. You can define this strategy using TradingView’s simple point-and-click interface.
  8. After defining your strategy, click on the “Start Testing” button to begin the backtest.
  9. Once the backtest is complete, review the results. TradingView provides a range of performance metrics, including total return, Sharpe ratio, and drawdown. Analyze these metrics to determine the effectiveness of your strategy.

What is backtesting? How can I do backtesting?

Backtesting is a technique to evaluate the performance of an investment strategy or trading algorithm.

The process involves testing the strategy or algorithm against historical data to determine how it would have performed in past market conditions.

Backtesting options

The goal of backtesting is to determine whether a particular investment strategy or trading algorithm would have been profitable in the past, and to use this information to make informed decisions about future investments.

By analyzing the historical performance of a strategy or algorithm, investors can gain insights into its strengths and weaknesses, and make adjustments as needed to improve its future performance.

Backtesting can be done using a variety of methods, including manual analysis of historical data or automated software programs that simulate past market conditions.

It’s important to note that while backtesting can provide valuable insights into the performance of a particular investment strategy or trading algorithm, it’s not a guarantee of future success.

Which tools help with backtesting?

  1. MetaTrader: MetaTrader is a popular trading platform that includes a built-in backtesting tool. The platform allows users to test and optimize trading strategies using historical data, and also includes a range of other features such as advanced charting tools and real-time market data.
  2. TradeStation: TradeStation is a comprehensive trading platform that includes a powerful backtesting engine. The platform allows users to test and optimize trading strategies using historical data, and also includes a range of other features such as advanced charting tools and real-time market data.
  3. Amibroker: Amibroker is a popular technical analysis and trading platform that includes a built-in backtesting tool. The platform allows users to test and optimize trading strategies using historical data, and also includes a range of other features such as advanced charting tools and real-time market data.
  4. Quantopian: Quantopian is a web-based platform that allows users to develop, test, and deploy trading algorithms. The platform includes a powerful backtesting engine that allows users to test their trading strategies using historical data, and also provides access to a range of other tools and resources.
Meta trader

New YouTube Video – Trading Strategies with Jim Matthews

I returned to doing a YouTube video interview last week with JJMStocks, or Jim Matthews. It was an enlightening conversation for 20 or so minutes.

We covered:

  1. How he go into trading / investing?
  2. Does he day trade, swing trade or invest for the long term?
  3. What are his favorite tools? Which is his go to charting solution?
  4. What is his trading strategy?
  5. How does he manage his emotions?

and more.