Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Conditions Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ansinzhou
Posted : Thursday, December 4, 2014 1:39:39 PM
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.

 

Bruce_L
Posted : Thursday, December 4, 2014 4:32:09 PM


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