Candlestick Range (High/Low) filter
Author: traindl
Creation Date: 6/13/2012 2:12 AM
profile picture

traindl

#1
Hello,

i just wanted to create buy order when the following happens
close price cum down 3 days and on 4. day (signalday) the Range of the bar(High minus Low) should be at least 10% smaller then ATR (10days), if both criteria are true then buy at market on next day.

i would like to create this in code directly without using wizard.
the first thing price cum down 3 days is not the problem but how can i code the rest ?

can somebody help me please !?

thanks thomas
profile picture

Eugene

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

Cone

#3
QUOTE:
close price cum down 3 days and on 4. day (signalday) the Range of the bar(High minus Low) should be
It's a little confusing. Do you mean...

1. Buy two positions? - one after 3 days down and another after 4 days down?

2. Or, buy at market on the 4th day after 3 days down, but only if the H - L is less than 90% of the ATR? (That would actually be a peeking condition.)

Or something else?
profile picture

traindl

#4
hi Eugene and Cone,

also for me it is a little bit confusing...

i meant step 2 only buy one position !

so buy at market on the 5th day after 3 days down but only if the "High minus Low" on the 4th day is less then 90% of the ATR .

thats what i want... so EUgene can i really use the code you mentioned for this?

thanks
thomas
profile picture

Eugene

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

traindl

#6
okay thanks will try this code
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).