I want to plot the percentual difference between two instruments. I was going to use ROC indicator as a "template".
My pseudo code something like this
Value[0] = (EURUSD[0] - inputPeriod) / inputPeriod) * 100;
Value[1] = ((EURCAD[1] - inputPeriod) / inputPeriod) * 100;
Diff[0] = Value[0] - Value[1]
Plot = Diff[0]
My first question is; how and where do I declare the instruments? Is there an indicator already that could accomplish above (I'm obviously not good at coding indicators)?
Many thanks in advance!
br,
Chris
Comment