Platinum Customer
Joined: 1/30/2005 Posts: 135
|
How do I get RealCode to loop through a WatchList? I set up test WatchList with three symbols and the following code only displays the message for current hilited symbol.
Static sym As String
If Me.isLastBar And sym <> CurrentSymbol Then
showmessage(currentsymbol & " " & price.STOC(21, 8))
sym = CurrentSymbol
End If
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There is no way to create RealCode which in and of itself loops through a WatchList.
You would need to use the RealCode indicator or Condition as a WatchList Column or in a Custom Market Indicator to create the loop through the WatchList. The RealCode itself will still only calculate for a single symbol at a time (although the value of a Static variable can survive between symbols if it is not reset).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Platinum Customer
Joined: 1/30/2005 Posts: 135
|
Made condition a scan. It looped through WatchList calling code to write data to Access database. Worked great. Thanks for you help.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|