/*********************************************************************************************** Title: Forex Pivot Script for eSignal By: Divergence Software, Inc. Web: http://www.sr-analyst.com ================================================================================================ Project Description: This is a floor-trader pivots script that is based on the bar interval that you are viewing (rather than using daily bars to gather the OHLC numbers). The script allows you to specify a session start time and all pivot calculations will be based on your custom session. In addition, you can specify a period of time where the market is officially closed and the script will ignore this period for purposes of pivot calculations. The floor trader pivots calculated by the script are R3, R2, R1, PP, S1, S2 and S3. In addition, the script will also display the high and low of the prior session. Note that the script should operate correctly on all intraday bar intervals. The script will also work correctly with Tick charts but it will not operate on Daily, Monthly or Weekly charts. IMPORTANT!! If you do use this script with Tick charts, please note that you must have at least 4 complete days of data (not including any days that fall within the Market Closed period) for the script to initialize. Parameters: Session Start: This is the time of day (in your specific time zone) that the trading session begins for the security you are viewing. Time MUST be entered in HH:MM format using a 24-hour clock. The default time is 23:00. Use Mkt Open/Close Feature? If you do not wish to specify a period of time during which the market you are viewing should be considered as closed, then set this parameter to "F" (False). If you want to specify a 'market closed' period, then leave this parameter at its default value of "T" (True). Market Close Day: This is the day of the week on which the market close (for the week) occurs. You can select from Sunday through Saturday. The default value is Friday. Market Close Time: This is the specific time on the Market Close Day (see above) that the market closes for the week. Time MUST be entered in HH:MM format using a 24-hour clock. The default time is 17:00 (e.g., 5:00pm). All bars that are printed between Market Close Day/Time and Market Open Day/Time will be ignored for purposes of the pivot calculations. This will ensure that the pivot calculations for the session following the break will be correct. Market Open Day: This is the day of the week on which the market open (for the week) occurs. You can select from Sunday through Saturday. The default value is Sunday. Market Open Time: This is the specific time on the Market Open Day (see above) that the market opens for the week. Time MUST be entered in HH:MM format using a 24-hour clock. The default time is 19:00 (e.g., 7:00pm). All bars that are printed between Market Close Day/Time and Market Open Day/Time will be ignored for purposes of the pivot calculations. This will ensure that the pivot calculations for the session following the break will be correct. Show Chart Labels? "T" (True) or "F" (False). When set to "T" (True), identifying pivot labels will be printed directly to the right of the current bar on the chart. Default value is "T" (True). Show Cursor Labels? "T" (True) or "F" (False). When set to "T" (True), the current pivot levels will appear in the chart cusor window. Default value is "T" (True). Highlight Mkt Close Period? "T" (True) or "F" (False). When set to "T" (True), the period where the market is closed (see Market Close Day, Market Open Day above) will be highlighted with a yellow background. Default value is "F" (False). Highlight Color: The background color to use when highlighting the "market closed" period. The default color is yellow. Display Type: Select from "Pivots" (default value) or "High-Low". When "Pivots" is selected, the standard floor trader pivots will be calculated (based upon the prior session) and displayed on the chart. When "High-Low" is selected, the high and low values from the prior session will be displayed instead. XX Color: Several fields are provided where you can specify a particular color to be used for each floor trader pivot level. Usage Notes =========== The only requirement is that the Session Start Time that you specify MUST be a valid bar starting-time in the bar interval that you are viewing. For example, if you are viewing a 60-min chart (where each bar starts on the hour), then a Session Start Time of 03:30 (e.g., 3:30am) would not be valid because no bar displayed on your chart would have a bar-time of 3:30am. The nearest bars would be either 3:00am or 4:00am so you would need to select either 03:00 or 04:00 as your Session Start Time. When in doubt, scan through the bar times (in the chart cursor window) on your chart. Any bar time that appears in the cursor window would be a valid Session Start Time for purposes of the script. Remember that if you have specified a "market closed" period, the script will ignore any bars that appear during that specific period of time for purposes of calculating the pivot values, as well as the high/low range of the prior session. Sessions ======== The Asian Forex Session starts at 8:00pm EST The London Forex Session starts at 2:00am EST The US Forex Session starts at 8:00am EST Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. **********************************************************************/