Stock screener using Trend Intensity Scan


1
0

Hi Pete, came across this site that utilise Trend Intensity as a means to find stocks that met the defined criteria. May i request you to convert  following 5 TC codes to thinkscript. Trend intensity (TI) is a momentum indicator which tells you direction and strength of a trend.

1. Bullish Trend Intensity 65 days (TI65 bullish)

( Not too sure if my interpretation of the code is correct, 7-Day moving average was 5% above all 65-Day moving average)

avgc7/avgc65>=1.05

2. Bearish Trend Intensity 65 days (TI65 bearish)

avgc7/avgc65<=.95

3. Bullish Trend Intensity 65 days Young (Young TI65 bullish)

avgc7/avgc65>=1.05and AVGC7.25 / AVGC65.25 <= 1.05

4. Trend Intensity 65 days (TI65) as column

avgc7/avgc65

5. Low Threshold Breakout

minv3.1>=100000 and c>3 and avgc7/avgc65>=1.05

and c>0 and c>c1 and c/c1>c1/c2 and c1/c2<1.02

thanks

Marked as spam
Posted by (Questions: 8, Answers: 15)
Asked on August 20, 2019 8:42 am
1415 views
0
Private answer

I'll do a couple of them and you can do the rest. First I'll list the TC code and then the equivalent code for Thinkorswim.

#avgc7/avgc65>=1.05
def conditionOne = Average(close, 7) / Average(close, 65) >= 1.05;

This next one contains the first condition so rather than re-write condition one I will reference the variable name to which it was assigned.

#avgc7/avgc65>=1.05and AVGC7.25 / AVGC65.25 <= 1.05
def conditionTwo = conditionOne and Average(close, 7)[25] / Average(close, 6)[25] <- 1.05;

This one also contains a portion from condition one. So I will insert that to replace avgc7/avgc65>=1.05.

#minv3.1>=100000 and c>3 and avgc7/avgc65>=1.05 and c>0 and c>c1 and c/c1>c1/c2 and c1/c2<1.02
def ConditionThree = Lowest(volume[1], 3) >= 10000 and close > 3 and conditionOne and close > 0 and close > close[1] and close / close[1] > close[1] / close[2] and close[1] / close[2] < 1.02;

I have selected the ones that have unique translations. So by studying these translations you should be able to see how to complete the others.

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on August 20, 2019 10:23 am
0
Hi Pete, thank you so much for your prompt respond. Yes,will learn how to duplicate and complete the others. I copied the individual code and paste in thinkscript Editor to scan out the list of stock that matches the criteria, but it still requires a command to plot a scan. May i know what command and how should write in order to scan out the list of stock ? I tried to use this "Plot scan = conditionone", but it was unsuccessful. Thanks
( at August 21, 2019 6:00 am)
0

You need to place a semicolon at the end if every line of code. So if you use only conditionOne then it would be:

plot scan = conditionOne;

However you have several conditions so you would actually do this:

plot scan = conditionOne and conditionTwo and conditionThree;

Adding all your condition variables in series like the example above. Just placed the word 'and' between each condition.

( at August 21, 2019 6:38 am)
0
Thanks Pete. This is definitely helpful. I really appreciate what you have done and i have replied you personally on your email. Let me tidy these few scans codes and may request for some assistance when required. thanks
( at August 23, 2019 12:29 am)