This function returns the correlation value of two IPV series. The series are date synched, to remove holidays or other missing data, so each record compared between the series have the same date. The CorrelationLogSynch function uses the log of the (rate of) change between the elements in the series, whereas the CorrelationLog function uses just the rate of change between the elements in the series. To avoid computing the Log of a negative number, us the "uc" parameter if the back adjusted futures data might go negative.
Because these are date synched, these Synch functions only work with auto indexed IPV series.
Syntax: |
---|
CorrelationLogSynch( series1, series2, sampleSize, offset1, offset2, "uc" ) |
Parameter: |
Description: |
---|---|
series1 |
The Series 1 name. |
series2 |
The Series 2 name. |
sampleSize |
Number of bars over which to measure the correlation |
offset1 |
Offset value for the first series. |
offset2 |
Offset value for the second series. |
"uc" |
Use the unadjusted close as the rate of change divisor, in case the adjusted price goes negative. |
Example: |
---|
' Run the correlation process once a month |
Returns: |
|
Links: |
---|
MaxSynchBarsCorrelation Properties, CorrelationLog, CorrelationSynch, CorrelationLogSynch, MaxSynchBars |
See Also: |
Edit Time: 9/18/2020 11:23:59 AM |
Topic ID#: 230 |