NexusFi: Find Your Edge


Home Menu

 





cci


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,752 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 2 attachments




 
Search this Thread

cci

  #1 (permalink)
jacks555
Chicago IL
 
Posts: 7 since May 2016
Thanks Given: 0
Thanks Received: 1

ed:
Jan 12, 2011

Messages:
8

Likes Received:
0

Can any one write a CCI indicator thinkscript code for TOS stock hacker scan?
I would like an alert when the CCI crosses above and below the +100 and -100.

# TD Ameritrade IP Company, Inc. (c) 2008-2016

#



declare lower;



input length = 14;

input over_sold = -100;

input over_bought = 100;



def price = close + low + high;

def linDev = lindev(price, length);

plot CCI = if linDev == 0 then 0 else (price - Average(price, length)) / linDev / 0.015;

plot OverBought = over_bought;

plot ZeroLine = 0;

plot OverSold = over_sold;



CCI.setDefaultColor(GetColor(9));

OverBought.setDefaultColor(GetColor(5));

ZeroLine.setDefaultColor(GetColor(5));

OverSold.setDefaultColor(GetColor(5));


Attached Files:

Screenshot 2016-05-29 23.39.14.png
Screenshot 2016-05-29 23.39.14.png

File size:
172.8 KB

Views:
0

Attached Thumbnails
Click image for larger version Name: Screenshot 2016-06-02 15.23.26.png Views: 1 Size: 164.6 KB ID: 209608 Click image for larger version Name: Screenshot 2016-06-02 15.22.34.png Views: 0 Size: 164.8 KB ID: 209609

Attached Thumbnails
Click image for larger version

Name:	Screenshot 2016-06-02 15.23.26.png
Views:	111
Size:	164.6 KB
ID:	209614   Click image for larger version

Name:	Screenshot 2016-06-02 15.22.34.png
Views:	92
Size:	164.8 KB
ID:	209615  
Reply With Quote




Last Updated on June 2, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts