[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] IS and OS Equity in single line



PureBytes Links

Trading Reference Links



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 <WhitneyBroach@xxxxxxxxx> 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 );
///////////////////////




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___