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

RealCode Indicator Output (version 4 or 5) Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
zawadee152
Posted : Wednesday, February 3, 2010 4:16:11 PM
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
Bruce_L
Posted : Wednesday, February 3, 2010 5:05:04 PM


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