Registered User Joined: 1/31/2010 Posts: 22
|
Hi,
Is it possible to output (Plot) multiple value in an indicator? Sometime when building an indicator, it is helpful to see some of the other variables.
Is it possible to specify the chart type (say line or bar) directly within RealCode ? (or assinging the RealCode Painting Scheme within RealCode).
If any of these are possible, please provide some examples.
Thanks,
zwd
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (zawadee152) Is it possible to output (Plot) multiple value in an indicator? Sometime when building an indicator, it is helpful to see some of the other variables.
Yes and no. If you are outputting a Line, you can output one Value per DateValue. If you are outputting a Bar, you can output four Values per DateValue. I guess the simplest example would be to output Price:
OpenValue = Price.Open
HighValue = Price.High
LowValue = Price.Low
Plot = Price.Last
QUOTE (zawadee152) Is it possible to specify the chart type (say line or bar) directly within RealCode ? (or assinging the RealCode Painting Scheme within RealCode).
It is not possible to assign the Plot Style or Color within the RealCode of a RealCode Indicator or RealCode Rule (Condition).
It is possible to use RealCode to color an Indicator by using a RealCode Paint Brush (or Sheme). In StockFinder 4, you would right-click on the Indicator and select Edit Colors | Paint Indicator with RealCode. In StockFindr 5, you would right-click on the Indicator and select Edit | Paint Scheme | Edit | Apply RealCode.
An example that would Paint the Indicator Green when it is up, Red when it is Down and Yellow otherwise would be:
If Line.Value > Line.Value(1) Then
PlotColor = Color.Lime
Else If Line.Value < Line.Value(1) Then
PlotColor = Color.Red
Else
PlotColor = Color.Yellow
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|