Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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".
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Guest-1 |