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

ChartInputCombobox([description],[default value],[value1],...[valueX])

Usable in an seer chart object

The ChartInputCombobox function allows the input of a variable from a standard windows Combobox (drop down)control. The control is displayed when the mouse is moved to the top right of the chart. When the selection of the combobox is changed, the value in the combobox is returned and the chart is updated dynamically (the chart logic is rerun). If the chart has not been updated by the combobox, the default parameter is returned. As a base, the ChartInputCombobox function requires 3 parameters, but more parameters can be passed which populate the dropdown:

  • A string description which is displayed next to the combobox
  • The default value
  • The first value displayed in the combobox
  • ...
  • The last value displayed in the combobox

For example, the following:

ChartInputCombobox('Color','red','red','blue','green');

Will display a combobox with the description "Color" whose default value is "red", with the dropdown containing the values, "red", "blue" and "green". Multiple sliders and combobox's can be combined within a single chart.

Example:

#The Stochastics Oscillator can be passed a moving average that
#is used within the calculation of the indicator. We create a combobox
#which displays all the moving averages that can be used, with the
#default being SMA
my $smoothing=ChartInputCombobox('Smoothing','SMA','SMA','EMA','WWS');
#Get the %K and %D columns from the Stochastics Oscillator,
#passing the value from the Combobox
my ($k,$d)=SS(5,3,3,$smoothing);

Related functions:

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

© 2008 seer trading systems ltd
feedback FAQ legal privacy