|
|
Spectator
Posts: 5
Location: : , | Hello Jim,
Reading through the forum I believe I need to post my request here.
If I'm wrong, let me know and I can repost.
I am moving back to OT and in Wordens TC2000 I have a handy scan that presents me with a watch-list that does two things.
1. Lists tickers that are touching a 20, 50, 100 or 200 simple moving average
2. Lists tickers with bullish or bearish candles (Hammers and inverted hammers in my case) that are ALSO touching the above moving averages.
As you would recognize, this was used by the late David Elliot (FirstWave) and known as an Ice Hole Failure/Bounce.
I have attached the results screen-shot and the code I use in Wordens.
50sma IHF
L <= AVGC50 AND AVGC50 <= H AND O - L <= (H - L) / 3 AND C - L <= (H - L) / 3 AND H > L
50sma IHB
L <= AVGC50 AND AVGC50 <= H AND H - O <= (H - L) / 2 AND H - C <= (H - L) / 3 AND H > L
Jim, to get a similar result to what I have shown, can you help me out?
Ash Webb
Brisbane
Australia
Attachments ihfb 1.jpg (116KB - 9 downloads)
|
|
|
|
Owner/Admin
Posts: 3925
Location: USA: GA, Lawrenceville | Hi, Ash:
Hello from "Sir Tanstaafl", ten-time veteran of the Worden reports ;-). Been awhile since I I thought about good ole PCF's, but I'll give it a crack …
50sma IHF
L <= AVGC50 AND AVGC50 <= H AND O - L <= (H - L) / 3 AND C - L <= (H - L) / 3 AND H > L
… becomes:
L <= sma(50) and sma(50) <= H and O-L <= (H-L)/3 and C-L <= (H-L)/3 and H>L
… note: PCF's and OSans are very similar except for the function call syntax
… also: the final H>L rule is sort of odd - it is essentially asking "was there more than one print on the bar" … if you're using symbols that are so thinly traded that H might be equal to L, I suggest you add a volume condition to the rule.
50sma IHB
L <= AVGC50 AND AVGC50 <= H AND H - O <= (H - L) / 2 AND H - C <= (H - L) / 3 AND H > L
… becomes:
L <= Sma(50) AND sma(50) <= H AND H - O <= (H - L) / 2 AND H - C <= (H - L) / 3 AND H > L |
|
|
|
Spectator
Posts: 5
Location: : , | Jim,
Gotta ask ...
Where the heck did you get Tanstfaafl from
Ash
Edited by AshWebb 6/11/2015 5:42 AM
|
|
|
|
Owner/Admin
Posts: 3925
Location: USA: GA, Lawrenceville | Hah! A long story, that …
Popularized by Robert Heinlien in the SF classic "The Moon is a Harsh Mistress". Great book, btw.
But the phrase/term was originally coined during the end of the Prohibition years (1919-1933 in the US) when the sale of hard liquor was banned. Near the end, in Chicago, the law was tempered by a rule that said liquor could be sold in a place that also sold meals.
The story goes that speakeasy's immediately went "legit" by offering food - a mouldy sandwich at the end of the counter with a sign "Free Lunch".
Thus was borne the saying:
"There Ain't No Such Thing As A Free Lunch"
Tanstaafl ! |
|
|