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 |

Paint scheme vs timefram Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gasminder
Posted : Saturday, November 27, 2010 10:46:50 PM
Registered User
Joined: 10/17/2004
Posts: 43
Could someone help me with a Paint scheme issue?

I want to have a shorter timeframe (daily in this case) be painted with a scheme that references a higher timeframe (weekly).  I have created a paint scheme using conditions that reference indicators that I have created and made "weekly not streaming" as their price source and this works nicely in the weekly timeframe.  However when I load that paint scheme to the daily chart it references all the indicators etc to the daily chart.

All I want is for the paint scheme to show me exactly what the higher time frame signal is - any thoughts?

Thanks for your help.
Bruce_L
Posted : Tuesday, November 30, 2010 12:33:02 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I don't know the particulars of what you are trying, but the following RealCode Paint Scheme seems to work (keeping in mind that the color of the 1-Day Bars are based on the 1-Week Bar of which they are apart and may reflect a Price that was not True for their actual Day):

New PriceData method. Get Pricing data for any symbol/timeframe
Paint Schemes

PlotColor = Color.Red
Static cS As PriceScripting
If isFirstBar Then
    Dim tf As New WeeklyTimeFrameProvider
    tf.NumWeeks = 1
    cS = PriceData(CurrentSymbol, tf)
End If
If cS.Last > cS.Last(1) Then
    PlotColor = Color.Lime
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
gasminder
Posted : Wednesday, December 1, 2010 7:39:28 AM
Registered User
Joined: 10/17/2004
Posts: 43
Bruce;

Thanks for the reply.  What I am trying to accomplish is this:

I have a weekly chart with a paint scheme created from a combo of indicators on that chart and saved.  I have a separate daily chart that I wish to have painted identically to that scheme based on the weekly timeframe.  It would in fact be my preference that the colors on the daily not change until the weekly status has changed.  Any help would be appreciated.

I have however studiously avoided spending the time to learn RealCode (as time is the thing I have the least of and as a longtime TC user I had become accustomed to using a roundabout approach to problem solving ).  I can certainly cut and paste into the paint scheme but I suspect I need to change something to point to the chart in question?

Thanks again for your time & effort.

gasminder
Bruce_L
Posted : Wednesday, December 1, 2010 8:03:54 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The example given for using a Weekly Bar Interval to Paint a Daily Indicator was just that. I don't know what Conditions you are using and had no way to incorporate them into the RealCode.

Based on my understanding of the timing of how you want the Indicators to be Painted, you may be able to just create a new Paint Scheme for the Indicator on the Daily Chart and then Drag and Drop the Conditions from the Weekly Chart to the Indicator on the Daily Chart you wish to Paint and select Add to Paint Scheme.

This seems to maintain the link to the Bar Interval selection on the Weekly Chart while Saving the Paint Scheme and then loading it into another Chart does not (probably because it is Saved instead of Linked).

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
gasminder
Posted : Thursday, December 2, 2010 8:09:17 AM
Registered User
Joined: 10/17/2004
Posts: 43
Ahhhh - the drag 'n drop works perfectly. I had no idea you could do that.......at some point I will learn to ask BEFORE spending hours trying to figure it out................Thanks for the help and a great product!-gasminder
Bruce_L
Posted : Thursday, December 2, 2010 8:15:13 AM


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.