Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Painting Active Symbol Bars using SP-500 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tjent
Posted : Tuesday, November 30, 2010 10:40:35 PM
Registered User
Joined: 1/16/2005
Posts: 5
Not sure this can be done, but what I'm trying to do is paint the active symbols bars to white if the SP-500 is below it's 10 Day simple moving average.  Can this be done?
Bruce_L
Posted : Wednesday, December 1, 2010 8:13:06 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You could try something similar to the following RealCode Paint Brush:

PlotColor = Color.Lime
Static cS As PriceScripting
If isFirstBar Then
    cS = PriceData("SP-500")
End If
If cS.Last < cS.AVGC(10) Then
    PlotColor = Color.White
End If

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