Phone: 1-800-776-4940

 
Home Software & Pricing Books & Videos Support Discussion
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

S&C Magazine-350 Swing Indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tspara
Posted : Thursday, February 04, 2010 1:02:00 PM
Registered User
Joined: 12/15/2004
Posts: 11
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.
tspara
Posted : Thursday, February 04, 2010 1:03:55 PM
Registered User
Joined: 12/15/2004
Posts: 11
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.
Bruce_L
Posted : Thursday, February 04, 2010 1:26:23 PM


Worden Trainer

Joined: 10/7/2004
Posts: 31,259
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
crowleykirk
Posted : Sunday, February 07, 2010 12:43:49 AM
Platinum Customer Platinum Customer

Joined: 7/2/2009
Posts: 7
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
Bruce_L
Posted : Monday, February 08, 2010 2:14:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 31,259
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
crowleykirk
Posted : Monday, February 08, 2010 10:01:20 PM
Platinum Customer Platinum Customer

Joined: 7/2/2009
Posts: 7
Thank you Bruce,
That works great.

Looking forward to the final release version 5.0. Looks like it's going to be great.

Kirk
Bruce_L
Posted : Tuesday, February 09, 2010 10:22:38 AM


Worden Trainer

Joined: 10/7/2004
Posts: 31,259
crowleykirk,
You're welcome.

-Bruce
ctfrombt
Posted : Tuesday, June 15, 2010 9:03:32 AM
Gold Customer Gold Customer

Joined: 12/7/2004
Posts: 46
Bruce,
I just tried this in SF5 and the paint scheme is being ignored. Any thoughts?
Bruce_L
Posted : Tuesday, June 15, 2010 10:19:15 AM


Worden Trainer

Joined: 10/7/2004
Posts: 31,259
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
ctfrombt
Posted : Tuesday, June 15, 2010 8:01:44 PM
Gold Customer Gold Customer

Joined: 12/7/2004
Posts: 46
Thanks Bruce. That did it. Why?
Bruce_L
Posted : Wednesday, June 16, 2010 7:09:37 AM


Worden Trainer

Joined: 10/7/2004
Posts: 31,259
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
Users browsing this topic
Guest

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.

To place an order by phone please call 1-800-776-4940... Int'l orders, 1-919-294-1111

Home | Software & Pricing | Books & Videos | Support | Training | Discussion | Become an Affiliate
Terms of use, trademarks, contact info and refund policy | Privacy Policy

Copyright © 1997-2007 Worden Brothers, Inc. All rights reserved.