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 |

Color code price bars Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gojotoby
Posted : Tuesday, May 19, 2009 8:38:25 AM
Registered User
Joined: 5/15/2009
Posts: 11

How do I set up price (candles) as color coded.  Green fro close higher than previous bar; red for close lower than previous bar.  Can the same method be applied to both real time intaday and daily data.  Thanks in advance for your assistance.
Stan

Bruce_L
Posted : Tuesday, May 19, 2009 9:25:56 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
- Right-click on the Price History and select Edit Colors.
- Check Paint Indicator with RealCode and select Edit.
- Replace everything in the RealCode Editor with the following and select Apply | OK.

If Line.Last > Line.Last(1) Then
    PlotColor = Color.Lime
Else If Line.Last < Line.Last(1) Then
    PlotColor = Color.Red
Else
    PlotColor = Color.Yellow
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
edrichmond
Posted : Wednesday, May 20, 2009 1:10:28 PM
Registered User
Joined: 7/26/2006
Posts: 23
QUOTE (Bruce_L)
- Right-click on the Price History and select Edit Colors.
- Check Paint Indicator with RealCode and select Edit.
- Replace everything in the RealCode Editor with the following and select Apply | OK.

If Line.Last > Line.Last(1) Then
    PlotColor = Color.Lime
Else If Line.Last < Line.Last(1) Then
    PlotColor = Color.Red
Else
    PlotColor = Color.Yellow
End If


'I tried this program in realcode and it didn't color the price history.  Also when I used the program on page 47 of the Realcode Reference Manual I got an error "plotcolor not declared".
Bruce_L
Posted : Wednesday, May 20, 2009 1:14:05 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
edrichmond,
The "plotcolor not declared" error message is generally an indication that you are attempting to use the RealCode of a RealCode Paint Brush in the RealCode Editor of either a RealCode Indicator or RealCode Rule.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
edrichmond
Posted : Wednesday, May 20, 2009 2:04:43 PM
Registered User
Joined: 7/26/2006
Posts: 23
I am trying to learn Realcode.  Iread the reference manual, but it is inadequate.  I have to read it again.  In the meantime I am learning C# because someone told me that RealCode is based on C#.  Is this true, and is there any references that you would recommend?
Eliezer
Bruce_L
Posted : Wednesday, May 20, 2009 2:22:50 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
edrichmond,
RealCode is based on Visual Basic. The RealCode Programmers Reference is primarily intended to document the additions to VB that constitute RealCode and is not designed to teach or completely document VB itself. There are numerous books and free internet tutorials on VB. I don't have any specific recommendations.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
edrichmond
Posted : Friday, May 22, 2009 12:07:03 PM
Registered User
Joined: 7/26/2006
Posts: 23
Bruce,
I tried the code that you posted here in the Edit color , edit realcode window and it didn't work.  I also tried the code on p. 47 of the Realcode Reference Manual and that didn't work.  ALso I checked the box to use the realcode program.  Nothing seems to work.  I know it must be me because I have a friend who has painted the price history the way the code is written.  Also I did not get any error messages.
Eliezer
edrichmond
Posted : Friday, May 22, 2009 12:17:48 PM
Registered User
Joined: 7/26/2006
Posts: 23
Bruce,
I re-started Stockfinder and the color coding was working.  Thanks!  Also thanks for the comment about realcode.
Eliezer
Bruce_L
Posted : Friday, May 22, 2009 12:19:19 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
edrichmond,
The only other thing I can think of to check is to make sure Paint Indicator with RealCode is checked when you select Edit Colors. If that isn't the issue, you may wish to contact technical support.

All e-mail communication sent to support@worden.com during business hours (Monday through Friday 9AM-11PM and Saturday and Sunday 9AM-3PM ET) should be answered within 20 minutes of arrival.

For an even quicker response to tech support questions, we recommend calling our voice line at (919) 408-0542 (there is no phone support on Sundays, some Market Holidays or after 9PM ET on weekdays).

You can also contact us using Live Chat Support during business hours.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Bruce_L
Posted : Friday, May 22, 2009 12:20:58 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
edrichmond,
You're welcome. I'm happy to read the issue was resolved by something so simple.

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