Data Type Comparison
Author: gpetrie
Creation Date: 3/7/2009 12:11 AM
profile picture

gpetrie

#1
Stuck on why the compiler doesn't like this:

CODE:
Please log in to see this code.


Message is: Operator ">" can't be applied to these to types. Do I need to convert one of them? If so, to what?

Thanks in advance.

Gene
profile picture

Eugene

#2
See DataSeries > Accessing a Single Value from a DataSeries in the WealthScript Language Guide.

Short answer: you need to specify the bar number to access a value of a data series (see below).

CODE:
Please log in to see this code.
profile picture

gpetrie

#3
Got it. Thanks!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).