Registered User Joined: 10/6/2014 Posts: 34
|
Hi, I'm trying to create a condition off a an indicator I built.
Here is the indicator :
'# Var1 = chart.Var1
Dim kongpan As Single
kongpan = (Var1.Value - Var1.Value(1)) / (Var1.Value(1) * 1000)
Plot = kongpan
And here is the condition:
'# kong = chart.kongpan
If kong.value < 0 Then
Pass
End If
But on the chart the T/F markers aren't showing. I've realized that it maybe because the T/F markers correlate with the price? I'm wondering how I get the T/F markers to show for all the days that
kong.value<0 is true.
Thank You.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I don't know what Var1 is in your setup, but I created my own Var1 for testing.
It is probably best not to chain to many RealCode references in your code. The RealCode Condition might be timing out before the RealCode Indicator calculates (just speculation on my part).
I also did not get true makrers on the chart when feeding the RealCode Indicator into the RealCode Condition. But if I just referenced Var1 in the RealCode Condition, the true markers plotted on the chart.
'# Var1 = chart.Var1
If Var1.value < Var1.Value(1) Then
Pass
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|