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 |

“Worden Best of 2009 Training Class Video Series Step by Step” instructions on how to generate RealC Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
GJU
Posted : Friday, October 29, 2010 8:02:52 PM
Registered User
Joined: 2/25/2005
Posts: 7

I am reviewing the “Worden Best of 2009 Training Class Video Series Step by Step” instructions on how to generate RealCode for Support & Resistance 

The following is a copy of the instructions in the video followed by a copy of my attempt to make this RealCode and save it. I added the final statement “End if” in line 12, but as you can see in the error message lines at the bottom of this box, there seem to be additional errors I need to correct. How can I correct these errors and thereby allow myself to compile this piece of RealCode?

 LOOKS LIKE MY SCREEN PRINT NOTES are not being embedded in this request. How can I email them to you?
--Gary

 

 

 

Bruce_L
Posted : Saturday, October 30, 2010 6:55:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The best topic of which I'm aware on how to post images in the forums is Inserting A Chart into A Worden post.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
GJU
Posted : Saturday, October 30, 2010 10:32:56 AM
Registered User
Joined: 2/25/2005
Posts: 7
Thank you Bruce:
I was able to upload the first screen shot (below), but not the second
The code as exampled below does not compile into real-code for me
Can you give me any hints as to what is missing?



Following is the second segment:


shamilton
Posted : Saturday, October 30, 2010 11:15:18 AM
Registered User
Joined: 1/25/2005
Posts: 13
It looks like this code is for a 'Realcode Condition'.  Your screenshot shows you are creating a 'Realcode Indicator'.  Try selection 'New Realcode Condition' instead

Shawn
shamilton
Posted : Saturday, October 30, 2010 11:26:25 AM
Registered User
Joined: 1/25/2005
Posts: 13
Whoops.... sorry GJU, I didn't look closely enough at your screenshot.  I see now that you are creating a realcode condition.  I typed in your code and it worked on my system.

I see there are no compile errors in the screenshot so I think the code is correct.  The condition was added to my Price History chart but I had to 'Show True Markers' for it to display the results.  Symbol AAPL shows a pass condition on 08/23/10.

Shawn
pthegreat
Posted : Monday, November 1, 2010 9:43:09 PM

Registered User
Joined: 6/15/2008
Posts: 1,356
Hi GJU,
would you be so kind to share the link to that video?

I can't seem to find it.
thx,
P.
Bruce_L
Posted : Tuesday, November 2, 2010 9:26:49 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
GJU,
Is this what isn't working?



If so, I think the error message is because of the End If line. If you are going to have Pass be part of the the same logical line as the If Then statement, try:

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Support
'|******************************************************************
'# Period = UserInput.Integer = 20
If Price.Low = Price.MinLow(Period) AndAlso _
    Price.Low >= Price.MinLow(Period, Period) * .98 AndAlso _
    Price.Low <= Price.MinLow(Period, Period) * 1.05 Then Pass

If you want it to be on a different logical line, then it should look like:

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Support
'|******************************************************************
'# Period = UserInput.Integer = 20
If Price.Low = Price.MinLow(Period) AndAlso _
    Price.Low >= Price.MinLow(Period, Period) * .98 AndAlso _
    Price.Low <= Price.MinLow(Period, Period) * 1.05 Then
    Pass
End If

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