CCI Divergence Scan in TOS


Category:
0
0

Hi Hahn,

I would love to have you looked at my script that I want to scan stocks or ETFs to find the ones that have the price (going higher than previous close) while the Woodies CCI(14) (going down from higher than 100 to lower).  

Here it is: input length =14;

def PriceHigher= close[60]<close[14],

def LinLower = LinLower(price, lenght);

def cciLower= if LinLower[60]>LinLower[14] then 1 else 0;

def Divergence = PriceHigher and cciLower=1;

plot scan=Divergence;

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on May 31, 2020 9:42 pm
654 views
0
Private answer

Well that may give the general appearance of being a script but there is nothing there that actually works.

This can be very simply created in the Condition Wizard without having to write any code whatsoever. Which is a perfect fit for you since you do not know how to write code for Thinkorswim. Full details here.

https://www.hahn-tech.com/thinkorswim-condition-wizard/

Screenshots below show each step in the process of creating your scan.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on June 1, 2020 8:09 am
0
Thanks for your prompt answer, Pete Hahn.
( at June 1, 2020 8:16 am)