professor_frink
Moderator
- Joined
- 16 February 2006
- Posts
- 3,252
- Reactions
- 5
ATR mightn't be the way to go with that canuck. Might be better off using the daily range(H-L) to measure each day.
Have a read of this link on ATR-
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:average_true_range_atr
ATR won't always be the high - low figure.
Someone else correct me if I'm wrong here, as I've never really used ATR at all.
I think code-wise, you would want it to look something like this-
Or something like that(far from a coding guru)
Have a read of this link on ATR-
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:average_true_range_atr
ATR won't always be the high - low figure.
Someone else correct me if I'm wrong here, as I've never really used ATR at all.
I think code-wise, you would want it to look something like this-
range = H - L;
buy = range < ref(range,-1) AND ref(range,-1) < ref(range,-2);
Or something like that(far from a coding guru)