| Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/14/2008 Posts: 23
|
Thanks, Stockguy, You were right - I was trying to compile an indicator with the Rule compiler. Another problem:I'm trying to debug using the LABEL keyword to print out intermediate calculations (for a RealCode indicator). Compiles with no errors, but no labels are printing. Below is a copy of my code. (First stage of Elder's SafeZone indicator):
'# Lookback = UserInput.integer = 10
'# Factor = UserInput.single =2.0
Dim SumPenLow As Single = 0
Dim NumPenLow As Integer = 0
Dim AvgPenLow As Single = 0
SumPenLow = 0
NumPenLow = 0
For i As Integer = 1 To Lookback
If Price.Low(i - 1) < Price.Low(i) Then
SumPenLow = SumPenLow + Price.Low(i) - Price.Low(i - 1)
NumPenLow = NumPenLow + 1
End If
Next i
AvgPenLow = Factor*SumPenLow / NumPenLow
Plot = Price.Low - AvgPenLow
Label = NumPenLow
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Edit your RealCode Indicator and make sure Show Custom Labels is checked (it is unchecked by default).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/14/2008 Posts: 23
|
Thanks, Bruce. Show Custom Labels was the answer. Another problem:Getting an error message when trying to save chart.First line of error message is "System.NullReferenceException: Object reference not set to an instance of an object." (I'm trying to save a realcode indicator that uses another indicator on the chart.)Can you help me?
|
|
Registered User Joined: 10/14/2008 Posts: 23
|
Sorry, Guys, should have posted above as new topic. I did that, but created a duplication in your post list
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please 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
|
|
|
Guest-1 |