| Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/15/2004 Posts: 34
|
Tried to encode the Realcode given in Feb S&C Magazine for 350 Swing Indicator but it would not compile. Here is the code that I typed in and the errors I received. Can you help?
CODE
'# WR-Indicator.Library.Wilder RSI
PlotColor=Color.gray
If WR.value>50 then
plotcolor=color.blue
Else If WR.value<50 then
plotcolor=color.red
End If
ERROR Messages
Name 'WR' is not declared Line 5
Name 'WR' is not declared Line 8
I tried using the DIM statement to declare the WR variable as both integer and single. That just resulted in more errors.
|
|
Registered User Joined: 12/15/2004 Posts: 34
|
Correction to earlier post. The first line of the code was '#WR=Indicator.Library.Wilder RSI. The line of code in the original post was incorrectly typed.
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The RealCode as given is for StockFinder 5 only. To use it, right-click on Price History and select Edit | Paint Scheme | New Paint Scheme | Apply RealCode.
'# WR = indicator.Library.Wilders RSI
PlotColor = Color.Gray
If WR.Value > 50 Then
PlotColor = Color.Lime
Else If WR.Value < 50 Then
PlotColor = Color.Red
End If
You could create something similar in StockFinder 4, but would need to add a Wilder's RSI to the Chart as an Indicator and Drag and Drop it into the Code tab of the RealCode Editor to create something similar to the first line of the following RealCode Paint Brush:
'# WR = indicator.WildersRSI
PlotColor = Color.Gray
If WR.Value > 50 Then
PlotColor = Color.Lime
Else If WR.Value < 50 Then
PlotColor = Color.Red
End If
You can access the RealCode Paint Brush of Price History by right-clicking on Price History and selecting Edit Colors | Paint Indicator with RealCode.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/2/2009 Posts: 19
|
Don't mean to hyjack this post but I'm having the same problem. I'm a Platnium TC user so not sure why I still have version 4 of SF. Anyway, as stated in your response Bruce this does work for version 4 although I got it to work a little differently than you... but it worked.
Please look up the 350 Swing Indicator in Stocks & Commodities and see the next step for this set-up.
How do we add the true markers to our price history via RSI?
Maybe this is something we cannot do in version 4?
You'll have to read the next steps to understand what we are talking about.
www.traders.com/Documentation/FEEDbk_docs/2010/02/TradersTips.html#TT5
Thank you,
Kirk
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (crowleykirk) I'm a Platnium TC user so not sure why I still have version 4 of SF.
It's simply a matter of if you decided to try out the beta or not:
StockFinder 5.0 READ THIS FIRST
How to Download the BETA!
StockFinder 5.0 Changes from 4.0 - UPDATED
QUOTE (crowleykirk) Maybe this is something we cannot do in version 4?
You can do it using essentially the same steps described except that your only option is to create the Hash Marks. Right-click on the RSI and select Create Rule | Greater Than Value (or Less Than Value) | check Show on Chart | OK.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/2/2009 Posts: 19
|
Thank you Bruce,
That works great.
Looking forward to the final release version 5.0. Looks like it's going to be great.
Kirk
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
crowleykirk,
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/7/2004 Posts: 54
|
Bruce,
I just tried this in SF5 and the paint scheme is being ignored. Any thoughts?
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
ctfrombt,
Instead of copying and pasting the entire RealCode Paint Scheme, try creating the '# WR = indicator.Library.Wilders RSI line using the Import Indicator button in the RealCode Editor.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/7/2004 Posts: 54
|
Thanks Bruce. That did it. Why?
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
ctfrombt,I'm not quite sure why it currently requires re-creating the line within the RealCode Editor. This did not used to be the case.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
|
Guest-1 |