Code for identifying V type patterns in stocks
Author: gbullr
Creation Date: 3/9/2010 12:09 AM
profile picture

gbullr

#1
How would I code A stock that reaches a 52 week high and within x period goes down by 10 % or more and goes back up lets say to within 2 pct of the 52 week high.

What I am having trouble with is the sequence in the timing :

First 52 week high
then 10Pct down
Then back up
within certain period.

Thanks.

Regards.

profile picture

Eugene

#2
QUOTE:
What I am having trouble with is the sequence in the timing :

Please take a look at this tutorial:

Setups, Triggers, Delays, and Timeouts
profile picture

Eugene

#3
Here you go:
CODE:
Please log in to see this code.
profile picture

gbullr

#4
Any way to delimit the time of the v such that this pattern has to occur in 10 days?

profile picture

Eugene

#5
Thank you for saying thank you.

Yes, what you have to do is simply calculate the difference between the highBar and the bar before the buy order.
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).