I understand how to add a new period to the script and have that compiling:
Add (PeriodType.Ticks,Ticks);
I am trying to add a comparison of CCI on that second period to a prior period (ie, if CCI is higher this bar vs. previous bar then do something).
How do i reference say a 14 period CCI on that second period?
I believe CCI(14)[1] refers to the 14 period cci of the second period type i added to the script....but then how to i compare that to a prior bar?
CCI(14)[1][1]?
thanks
Comment