So the second of your three guesses is what I meant by vice versa
|
By vice versa, I meant -
Non-Downtrend is true and Uptrend more recent than Downtrend?
|
Bruce L,
Many thanks for the response.
Here is the trend definition.
Non-Uptrend
xavgc13 < xavgc13.1 OR (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) < (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
Non-Downtrend
xavgc13 > xavgc13.1 OR (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) > (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
Downtrend:
xavgc13 < xavgc13.1 AND (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) < (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
Uptrend
xavgc13 > xavgc13.1 AND (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) > (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
So, I'd want to know that if the following is true:
xavgc13 < xavgc13.1 OR (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) < (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
Then,
a) xavgc13 < xavgc13.1 AND (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) < (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1)) was true more recently then
b) xavgc13 > xavgc13.1 AND (XAVGC12-XAVGC26)-(XAVG(XAVGC9,12)-XAVG(XAVGC26,9)) > (XAVGC12.1-XAVGC26.1)-(XAVG(XAVGC9,12.1)-XAVG(XAVGC26,9.1))
and vice versa
Can you help here?
|
How can I write a condition formula whereby if I have 3 trend definitions (let's say Trend Down, Trend Neutral and Trend Up) I want to scan for securities in Trend Neutral whose last non-Trend Neutral score was Trend Down? I have my own definition of Trend already, but don't know how to write the formula to condition based on the last non-neutral Trend score. Thanks in advance for any insights
|
and if I want Price greater than or equal to the 20D EMA of price, is it P>=XAVGP20?
|
thank you and sorry to bother. may have a few more as I am quite rusty
|
Need help with creating the above formula
|
Could it be that there's a blackout window x minutes or hours prior to the new day open?
|
I have written this Condition to search for stocks closing in the upper quartile of the 2d range:
C >= ((MAXH2-MINL2)*0.75) + MINL2
I have gotten results which look wrong (e.g. ADM is showing up as TRUE). When I go to the formula for ADM, it shows that my script has been changed to H > ((MAXH2-MINL2)*0.75 + MINL2. Why did TC2000 convert my formula from C to H?
|
Perfect, thank you. Sorry, I'm a new user so racing to get up to speed.
|