Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/26/2018 Posts: 84
|
hi bruce how do i write this in pCF
1. hitting new high or new low
2. 5 or 10 consecutive candle of the same color and on last color is opposite color with a wick at the bottom. ( hammer or hangin man for exmaple for downtrend)
3. RSI is below 10 or 90 above
4. price is between 1 to 100
thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Based on a literal interpretation of the requirements, I would write this as follows.
1 <= C AND C <= 100 AND SGN(O - C) = SGN(C1 - O1) AND O1 <> C1 AND TrueInRow(SGN(O1 - C1) = SGN(O2 - C2), 4) = 4 AND ABS(WRSI14 - 50) > 40 AND ((H = MAXH6 AND 2 * GREATEST(O, C) <= H + L) OR (L = MINL6) AND 2 * LEAST(O, C) >= H + L)
But it seems like it might be relatively rare as it doesn't actually currently return true for anything in a daily time frame.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/26/2018 Posts: 84
|
bruce,
what do you mean by that??
i would like to use it on a 5 min candle.
thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I just mean that it is an incredibly restrictive scan. It doesn't currently return true for anything on a 5-minute time frame etiher.
I would seriously consider eliminating or relaxing some of the requirements.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/26/2018 Posts: 84
|
oh ok,
thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |