checking for gaps
Author: jaymehta
Creation Date: 8/31/2008 11:16 PM
profile picture

jaymehta

#1
I am trying to test a idea based upon gaps but I don't know how to check for it.
Thanks in advance.
profile picture

deepbuyer

#2
WLP has 2 stategy based on gaps in the Gaps folder. Have you looked at those?
profile picture

jaymehta

#3
Thanks - will browse through those strategies.
profile picture

jaymehta

#4
The gap filler strategy is starting point for me.
Questions:

What do the 2nd,3rd and 4th args represent in:
CODE:
Please log in to see this code.


Also, I am at a loss on this:
CODE:
Please log in to see this code.
profile picture

Eugene

#5
QUOTE:
What do the 2nd,3rd and 4th args represent in:

pctGap = CreateParameter("Gap Percent", 2, 1, 15, 1);

See WealthScript Programming Guide, Programming Trading Strategies > Strategy Parameters. Or simply start typing the first letters of CreateParameter in the QuickRef's Find box.

QUOTE:
Also, I am at a loss on this:

DataSeries trigger = Bars.Close * (1 - pctGap.Value / 100) >> 1;


It represents a series based on closing price multiplied by a percentage value offset by one bar (the >> 1 part).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).