SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Alain Joaris who wrote (5567)7/24/1998 1:58:00 PM
From: Rick Slemmer  Read Replies (1) | Respond to of 11149
 
Alain:

Backtesting doesn't work with QP1, since the loop(0,-250) starts the scan at Day(0) and goes back to Day(-250), so the first hit is not what you might be looking for while backtesting (I think this is the same problem with QP2).

I backtest regularly using QP1. All that's needed is to write the scan so that the point of interest is -3 or however many days ago. F'rinstance:

I want to know how an 10-day/50-day MA crossover will reflect empirically in 3 days. The scan goes something like this:

10-dma(-5) < 50-dma(-5)
10-dma(-3) > 50-dma(-3) [Crossover happened on day -4 or -3]
Println Close(0)

This is, of course, a very simple rendition. By adding a Loop statement, you can get as many 10/50-dma crossovers as you want to examine. I've asked Gary to implement a "show me" function in QP3 to show where specified conditions are met on a historical chart.

Hope this helps.

RS



To: Alain Joaris who wrote (5567)7/29/1998 1:09:00 PM
From: Dale Wingo  Read Replies (1) | Respond to of 11149
 
Alain, Thanks for sharing your experience

Your backtesting setup sounds interesting. I've not used QP Ver1 so I didn't exactly follow your procedure but sounds as if it works nicely for you!

FYI.. I've sent Gary the revised VB programs. There is one remaining issue and as soon as I hear back from him I'll fix that. These programs should prove to be a good start on anything you wish to do on your own.

I've also expressed and interest in writing a backtesting program to Gary but haven't heard back from him.

Glad you found this useful.

Dale