I would like to test for Pearson Correlation between any open position I have and the next instrument added to my multi-instrument strategy. And so allow the next trade only if the Correlation between open position and the next strategy suggested instrument is below 0.2.
I've found this Correlation indicator and wonder how to add to my conditions (attached code below) so that I could test for the above?
Comment