![]() ![]() The blue line is calculated using PSP data. In the image on the right the cyan line is the CCI calculated using the chart bar data. This, in turn, affects the CCI calculation. This can result in certain price ticks occurring in the following or preceding bar. ![]() PSPs and price data are not totally synchronized. The program has been tested with minute bars. Both the chart data and PSP data CCIs are plotted. The CCI calculation is then ‘converted’ for use with the price series provider. Further setup for the PSP is done in a once statement: this includes code to load PSP data from the start of the chart, and to set the PSP time zone to be the same as the chart. Some initial configuration is done in the properties tab. A price series provider (PSP) is added to the program using the toolbox. Tutorial 158 calculates the Commodity Channel Index (CCI) within an indicator, using the same calculation as the CCI function, but used inline in the program for the bars on the chart. A Markplex subscriber asked for a tutorial about calculating the Commodity Channel Index (CCI) using a TradeStation Price series Provider (PSP). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |