NexusFi: Find Your Edge


Home Menu

 





CCI Price Value Calculation


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mk77ch with 4 posts (2 thanks)
    2. looks_two bobwest with 3 posts (3 thanks)
    3. looks_3 cory with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,846 views
    2. thumb_up 5 thanks given
    3. group 1 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 141 since Oct 2010
Thanks Given: 29
Thanks Received: 366

hi guys,

i am trying to calculate a price level based on current cci values.

lets say we use a 5 period cci on a daily timeframe.
the last closed bar does have a cci value of 120.0 and a price value of 1920.0.
now i want to know at which price level the current (not closed) cci value would reach a value of 100.0

does anybody have an idea how to calculate this?

thank you and cheers,
mike

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Historical data for Kospi and Nikkei Index
NinjaTrader
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
MC Advanced Simulated Trading.
MultiCharts
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


look into the code you should be able to find its calculation.

Reply With Quote
  #4 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 141 since Oct 2010
Thanks Given: 29
Thanks Received: 366


cory View Post
look into the code you should be able to find its calculation.

hey cory,

i already starred at the code of the cci for quite some time and didnt had the enlightenment

cheers,
mike

Started this thread Reply With Quote
  #5 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

you can can wiki it or read this note Incredible Charts: Commodity Channel Index

Reply With Quote
  #6 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,168 since Jan 2013
Thanks Given: 57,785
Thanks Received: 26,365


mk77ch View Post
hi guys,

i am trying to calculate a price level based on current cci values.

lets say we use a 5 period cci on a daily timeframe.
the last closed bar does have a cci value of 120.0 and a price value of 1920.0.
now i want to know at which price level the current (not closed) cci value would reach a value of 100.0

does anybody have an idea how to calculate this?

thank you and cheers,
mike

I think this is what you want:



It draws bands on the price chart where CCI would have a value of 100 (or 200 or whatever -- I think I remember that you can set the values you want.) There's also an explanation of how it's calculated, as I recall.

Hope that does it for you.

Bob.

Reply With Quote
Thanked by:
  #7 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 141 since Oct 2010
Thanks Given: 29
Thanks Received: 366

well, to calculate the cci we could use the following informations:

There are several steps involved in calculating the Commodity Channel Index.
The following example is for a typical 20 Period CCI:

CCI = (Typical Price - 20 Period SMA of TP) / (.015 x Mean Deviation)

Typical Price (TP) = (High + Low + Close)/3

Constant = .015
The Constant is set at .015 for scaling purposes.
By including the constant, the majority of CCI values will fall within the 100 to -100 range.

There are three steps to calculating the Mean Deviation.
1. Subtract the most recent 20 Period Simple Moving from each typical price (TP) for the Period.
2. Sum these numbers strictly using absolute values.
3. Divide the value generated in step 3 by the total number of Periods (20 in this case).

if we do this with numbers, it looks like this:

Typical Price of day 20 : 25.06
20 Day SMA of Typical Price : 24.21
20 Day Mean Deviation : 0.55

(25.06 - 24.21) / (0.015 * 0.55)
0.85 / 0.00825 = 103.03

the question now is how i have to change the calculation in order to get a price by providing the cci value of 100.
seems to be not that easy because price will change the mean deviation, the typical price of today and the 20 day sma of tp.

Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 141 since Oct 2010
Thanks Given: 29
Thanks Received: 366


bobwest View Post
I think this is what you want:



It draws bands on the price chart where CCI would have a value of 100 (or 200 or whatever -- I think I remember that you can set the values you want.) There's also an explanation of how it's calculated, as I recall.

Hope that does it for you.

Bob.

you are the man!
thank you
mike

Started this thread Reply With Quote
Thanked by:
  #9 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,168 since Jan 2013
Thanks Given: 57,785
Thanks Received: 26,365


mk77ch View Post
you are the man!
thank you
mike

Glad it works for you.

Bob.

Reply With Quote




Last Updated on August 26, 2014


© 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 - Sitemap - Downloads - Top
no new posts