Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

export watchlist from realcode Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pthegreat
Posted : Friday, December 13, 2013 4:49:16 PM

Registered User
Joined: 6/15/2008
Posts: 1,356

Bruce, do you know a way to address the watchlist in realcode?

 

I want to export my watchlist to an external database.

I know how to export data in realcode to an external database, using a .Net namespace.

However I'd like to export the watchlist once a day.

If I can't address the watchlist, then I'd have to come up with a workaround, a "bogus" code that runs, let's say at 4pm, and that will be passing all tickers in the watchlist.

jas0501
Posted : Sunday, December 15, 2013 10:19:43 PM
Registered User
Joined: 12/31/2005
Posts: 2,499

Export a plot that just prints close on lastbar should give you something to work with

 

if lastbar then
    plot close
endif

 

pthegreat
Posted : Monday, December 16, 2013 12:32:59 AM

Registered User
Joined: 6/15/2008
Posts: 1,356

Yea I know I can do something like that.

but Ideally I'd like something that would sense a change in the watchlist (ticker added/deleted), and only on that event export the list.

with a "if lastbar"  condition I can loop al the tickers into an array, make the connection to the external database with System.data.oledb namespace , check if they're the same and if not, update the external database.

However this will be a condition that'll run all day long on my chart, and is unnecessary use of resources.

 

 

Bruce_L
Posted : Monday, December 16, 2013 10:23:59 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The only way I know of to 'touch" all of the symbols in a WatchList is to sort that WatchList or create a Custom Market Indicator. The suggestion by jas0501 to create a RealCode Indicator and just export it once a day seems like the best option.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.