How to Trade like an O'Neil Disciple?
Author: mnoack
Creation Date: 6/18/2011 1:32 PM
profile picture

mnoack

#1
I'm a complete beginner to back testing systems and just started using WealthLab Pro-6. I'm interested in back testing the relatively simple trend following strategy presented in the above book.

Since its largely volume based, I wanted to begin by trying to generate a buy signal when the up volume is greater than the down volume for the previous 10 days and the price is a certain percentage above the 50 dma or 10 dma. It seemed that the volume conditions didn't allow for this, but I'm sure I'm wrong.

Thanks for any input or help pointing me in the right direction. - Matthew

profile picture

Eugene

#2
Hi and welcome to the forums.

What is the up/down volume, precisely?
What does it mean "for the previous 10 days"? For each, or what?
profile picture

Cone

#3
Up volume is the volume on an "up" day, which we'll assume is a day whose close is greater than the previous close. Down volume is the opposite.

So, we'll assume that if the sum of the 10-day up volume minus the 10-day down volume is greater than zero, then the volume condition is met.

Since we don't have an exit condition, the script below sells on a close below the 50 dma.

CODE:
Please log in to see this code.
profile picture

mnoack

#4
Thanks a bunch for the quick feedback. The idea of the "up day" is correct, but i think the volume rule stated above may be a little off. The buy point, or pocket pivot, happens on an up volume day whose volume is higher than any down day volume in the prior 10 days. Thanks again for the help.
profile picture

Cone

#5
In that case we just need to find the Highest value of the Volume series on down days. No problem, and you've got 3 slider parameters ready for optimization...

CODE:
Please log in to see this code.