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

ChartInputSlider([description],[default value],[start range],[end range])

Usable in an seer chart object

The ChartInputSlider function allows the input of a variable from a standard windows slider control. The control is displayed when the mouse is moved to the top right of the chart. When the slider control is moved by the mouse, a value is returned and the chart is updated dynamically (the chart logic is rerun). If the chart has not been updated by the slider, the default parameter is returned. Four parameters must be passed to the slider control:

  • A string description which is displayed next to the slider
  • The default value
  • The smallest value that the slider will use
  • The largest value that the slider will use

For example, the following:

ChartInputSlider('Short EMA',5,5,100);

Will display a slider, with the description "Short EMA" whose default value is 5, with the sliders range from 5 to 100. Multiple sliders and combobox's can be combined within a single chart.

Example:

#Create a slider with a default value of 14, with a range of 5-20
#We then use the value in a moving average of the close price
my $bars=ChartInputSlider('EMA Bar',14,5,20);
#Plot a basic Bar chart
PlotPrice('Bar');
#Plot the moving average, using the value from the slider
PlotColumn(EMA(Close,$bars),Blue);
PlotTellTale(Close,Red);

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 , ChartInputCombobox

© 2008 seer trading systems ltd
feedback FAQ legal privacy