Somehow I've missed code that combines IS and OS equity into a single line. I'm sure correct code is available somewhere, right?
The following code does not do the job. It roughly rescales the start of OS to the last value of IS, but it does not show IS values prior to OS. Can this be done without a loop?
////////////////////////
eq_is = Foreign( "~~~ISEQUITY", "Close", Fixup = True );
eq_os = Foreign( "~~~OSEQUITY", "Close", Fixup = True );
lvis = LastValue( eq_is );
eq_diff = lvis - eq_os;
eq_combined = eq_is + eq_os - eq_diff;
Plot( eq_is, "IS", colorBlack, styleLine );
Plot( eq_os, "OS", colorGreen, styleLine );
Plot( eq_combined, "IS+OS", colorBlue, styleLine );
///////////////////////