/******************************************************************** Title: Polynomial Band Scripts for eSignal 10.x By: Chris D. Kryza (Divergence Software, Inc.) Email: ckryza@verizon.net, ckryza@sr-analyst.com Web: http://www.sr-analyst.com Version: 1.3.0 ===================================================================== Installation: ------------ Unzip the PolyBands file. 1. The included dsMath01.DLL file must be copied into the eSignal Program Directory, which is generally found at c:\Program Files\eSignal 2. The 3 PolyBand scripts should be copied into any eSignal Formula Directory. Once all of the files are installed into the correct location, the PolyBand scripts can be loaded into any eSignal Advanced Chart by right-clicking in the chart and selecting the Formulas menu option. Description: ----------- PolyBandsStatic.efs - Plots a fixed polynomial regression over the number of bars specified in the "Period" menu parameter. Up to 4 channels are also displayed spaced at a user-defined standard deviation interval. PolyBands.efs - Plots a continuous endpoint polynomial regression, using the number of bars specified in the "Period" menu parameter to calculate each endpoint. Up to 4 channels are also displayed spaced at a user-defined standard deviation interval. PolyBands-Alerts.efs - Same as the PolyBands.efs script but with an alert feature added. Using the 'Alert Channel' menu parameter, you can specify one channel on which you wish to place an alert (e.g., pick from channels 1 through 4) and when price closes beyond the specified channel, an alert will be generated. Parameters: ---------- Script parameters can be accessed by right-clicking in your Advanced Chart and then selecting the "Edit Studies" option. Select the specific study from the "Study" drop down list in the "Study Properties" dialog. All of the available parameters are discussed below. Please note that each individual script does not necessarily contain every parameter. Period - This value represents the number of bars over which to perform the polynomial regression calculation. The default value is 150 bars with a valid range from 20 bars to 350 bars. PolyOrder - This value represents the number of terms (e.g., Nth Order) to apply to the polynomial regression. The default is 3 with a valid range from 1 to 4. A 2nd order polynomial is known as a quadratic, a 3rd order polynomial is known as a cubic, and a 4th order polynomial is known as a quartic. Note that a 1st order polynomial regression is the equivalent of a linear regression. Std Dev Interval - This value represents the standard deviation increment to use for each of the displayed channels. The default value is 0.5 (e.g., 1/2 of one standard deviation) so each channel will be displayed at increments of 1/2 of a standard deviation from the centerline. The valid range is from 0 to 10. Percentage Interval - This value represents the percentage increment to use for each of the displayed channels. The default value is 0.05 (e.g., 5%) so each channel will be displayed at increments of 5% from the centerline. The valid range is from 0 to 1 (1.0 being 100%). Interval Type - This is where you select between using Std Dev intervals or Percentage intervals for the creation of the bands. # Channels - This value represents the number of channels that should be displayed. The default value is 3 with a valid range from 1 to 4. Color (Band X) - Select the color to be used for displaying the specified channel. Color (Centerline) - Select the color to be used for displaying the centerline of the regression. Show Cursor Labels - Set to true to display the centerline and channel values in the eSignal Cursor Window, set to false to disable the display. The default value is true. Centerline Thickness - This value represents the line thickness to use when plotting the regression centerline. The default value is 2 with a valid range from 1 to 10. Band Thickness - This value represents the line thickness to use when plotting the regression channels. The default value is 1 with a valid range from 1 to 10. Alert Channel - This value represents the channel on which you wish to place an alert. The default value is 2 with a valid range from 1 to 4. Alert Use Sound? - Set to true if you want audio alerts to be generated on alert conditions. Set to false to disable audio alerts. Default is false. Alert Use Popup? - Set to true if you want pop-up alerts to be generated on alert conditions. Set to false to disable pop-up alerts. Default is false. Alert Use Email? - Set to true if you want email alerts to be generated on alert conditions. Set to false to disable email alerts. Default is false. Note, email alerts will be sent to the email address specified in the eSignal Alerts Edit/Status dialog. Alert WAV File - Specify the WAV file to be used when generating audio alerts. The default is WARNING.WAV. You can type in the name of any WAV file as long as it exists in the eSignal Sounds directory. Dislaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. **********************************************************************/