How to access different DataSets based on criteria?
Author: tedclimo
Creation Date: 7/7/2010 4:07 PM
profile picture

tedclimo

#1
I have created 10 different Watchlists based on biggest B&H gainers in 2000, 2001, 2002, etc.

I want to add algorithm code that: if trading in the year 2000.... accesses the watchlist from 1999(call it WL1999) &
if trading in the year 2001 (accesses watchlist from 2000(call it WL2000).

Theory being that Big funds chase momentum & I want to create a rolling Watchlist for purposes of Simulating various models .

I assume this has been asked about / studied before, but cannot find a reference to it in the community postings.

Can someone point me in the right direction on how to code:
if GetYear(bar) = 1999 then use WatchList1998, & so on?

Need code for both WLD 4.5 & WLD 5.6(.Net).

Thanks in advance,
Ted
profile picture

Eugene

#2
profile picture

tedclimo

#3
Thanks Eugene!
Does WLP4.5 demise have a final date yet? I still have numerous scripts to convert & knowing the drop dead date will help in my planning purposes.
All the best to you & yours.
profile picture

Eugene

#4
profile picture

Cone

#5
Decommissioning is fast approaching - we're talking weeks, not months here. You should be switching everything that you use right now over to Version 5, ASAP.
profile picture

tedclimo

#6
Robert & Eugene,
thanks for your tremendous patience with us USERs of WLP4.5 who have been dragging our feet.

Guess it's like wanting to stick with the dance partner who brought us to the party.

It seems cruel to kiss her(4.5) goodbye & then start dancing with another(5.6).

Nevertheless, I am converting my best 4.5 algorithms as fast as I can now.

Just giving you a heads up.... don't be surprised if you get an onslaught of "HELP!!!" outcrys, in the days that follow 4.5's demise.

Guaran-damn-tee you, there will be a memorial service here in Atlanta for the fantastic babe(Pascal version currently known as 4.5) that enticed me away from TradeStation nearly 10 yrs ago now!

You guys rock & thank you again for your incredible support!!!

Not asking for advice,,,,, just thanking you.

Ted
profile picture

Cone

#7
Thanks Ted. You make us smile. :)
profile picture

Eugene

#8
Thanks Ted.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).