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

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Alain Joaris who wrote (5567)7/24/1998 1:58:00 PM
From: Rick Slemmer  Read Replies (1) 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
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext