Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

Color ([red value],[green value],[blue value])

Usable in an seer chart object

This function returns a color code from RGB values that can be used in various plotting and drawing functions.

Example:

  PlotColumn(Close,Color(255,255,255)); #Plot the close as a white line

  #This example plots various EMA's with each EMA plotted
  #as a shade of red and blue

  #Set the scale to the smallest and largest EMA
  PlotSetScale(EMA(Close,5),EMA(Close,45)); 
  foreach my $count (5..25) { #loop from 5 to 25
    #plot the EMA as an RGB color
    PlotColumn(EMA(Close,$count),Color(255,$count*10,16)); 
  }
  foreach my $count (25..45) {
    #plot the EMA as an RGB color
    PlotColumn(EMA(Close,$count),Color(16,$count*5,255));
  }

Related functions:

PlotPrice , PlotColumn , PlotFixedLine , PlotSetScale , PlotLine , PlotText , PlotFixedLine , PlotCandlestick , PlotTellTale , PlotPAC , PlotBand , PlotGrid , DrawLine , DrawText , DrawRectangle , DrawFilledRectangle , SetChartOption , Dashes , Dots , Vline , SetBarBackground , SetBarColor , ChartInputSlider , ChartInputCombobox

© 2008 seer trading systems ltd
feedback FAQ legal privacy