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 |

Symbol specific indicators Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
trader777
Posted : Thursday, December 16, 2010 12:54:16 AM
Registered User
Joined: 12/9/2010
Posts: 3

Is it possible to have a the value of an indicator based on a specific symbol?
For example, I want to set up a different MA for each symbol in a watch list
and have that information saved permanently.

Thanks

Bruce_L
Posted : Thursday, December 16, 2010 8:22:39 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
It is possible. For example, the following RealCode Indicator would Plot a 5-Period Simple Moving Average for IBM, a 10-Period Simple Moving Average for AA and would not Plot anything for any other symbols:

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Symbol Demo
'|******************************************************************
If CurrentSymbol = "IBM" Then
    Plot = Price.AVGC(5)
Else If CurrentSymbol = "AA" Then
    Plot = Price.AVGC(10)
Else
    Plot = Single.NaN
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
trader777
Posted : Thursday, December 16, 2010 2:45:06 PM
Registered User
Joined: 12/9/2010
Posts: 3
Thankyou
Bruce_L
Posted : Thursday, December 16, 2010 3:23:59 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-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.