Hi Whitney -- The in-sample results and out-of-sample results are generally not comparable.
What problem are you trying to solve? Thanks, Howard On Tue, Apr 7, 2009 at 8:59 AM, whitneybroach <[email protected]>wrote: > 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 ); > /////////////////////// > > >
