Simple QQQ Long / Flat Trading

I’m looking to replicate the results from this article. It’s shows a simple system that buys QQQ when RSI(3) < 10. However, it filters out trades where the close of the previous day is in the upper half of the candlestick. The author shows significant improvement from the filter, but I am not seeing any benefit to adding this buy rule.

  1. Do you guys see anything wrong with the Setvar rule?
  2. How do I see the output of the Setvar rule after running the sim? It just shows up when using showvar in a screen.

Thank you, Shawn


You may want to set the transaction price to ‘Next Close’.

Is the Sell rule being RSI(2) > 70 instead of RSI(3) intended?

Also, the article states that the RSI is calculated using an SMA instead of the standard EMA.

Thanks for the responses :slight_smile: Changing the transaction price to next open matches my intended system of placing the trades before the open. I’m still not getting much benefit from the second buy rule requiring that the previous close must have been in the lower half of the candle. Here’s the corrected equity curve with the open price. Not bad and it looks good if in IEF when not holding QQQ. Also, the system was only active 8% of the time leaving capital free for bonds or other trades 92% of the time.

Yes, I switched the exit rule to my preferred RSI(2) > 70, but RSI(3) > 50 gives very similar results.

I still cannot find the output of the SetVar function which is important for troubleshooting…