SwingTimer_FIB_TS2k

This application uses an average of swings (both price and time) in a given direction and then uses that information along with Fibonacci ratios to calculate a "box" of potential price occurrences.

 

After several pictures which illustrate most aspects of the indicator, you will find the frontend documentation for the application and that is in the OPEN source code which is shipped with the indicator.

 

CLICK   THE    Add to Cart   Button TO ORDER the
SwingTimer_FIB_TS2k@$ 125.00

Return to Home Page

 

 

 

 

 

 

 

After looking at the 30 minute bars we will now look at daily data:

 

 

 

CLICK   THE    Add to Cart   Button TO ORDER the
SwingTimer_FIB_TS2k@$ 125.00

Return to:  HOME

 

 

And now examine the frontend documentation for the indicator:

 

{**********************************************************************
   
  Study       : SwingTimer_FIB_TS2k
  
  Last Edit   : 01/08/01  --  Mod2:  Fix trendline start/end the same
                                     Omega says this is a no-no !
                06/20/01             Add do not plot lines if wanted.
                03/01/02      FibMod:  Remove the history accumulation
                              and replace with the ability to specify
                              Fibonacci ratios and a percent parameter
                              to project a box indicating a time and price
                              zone where a pivot is likely to occur.
  Provided By : Clyde Lee (c) 2000, 2001
  Restrictions:  This is a licensed product.  The product:
          (SwingTimer_FIB_TS2k),
          is licensed only to those persons and/or organization that have 
          paid a proper license fee to Sytech Corporation and has had 
          this code delivered to them from Sytech Corporation.
          This license restricts the use of this product to a single
          person or firm on one machine for each license fee paid to
          Sytech Corporation.  If desired additional licenses can
          be obtained at a lower price than the original license by
          contacting Sytech Corporation (www.sytechcorporation.com) 
          and obtaining such license(s).
          Any other use of or distribution of this product is prohibited
          and is subject to applicable penalties appropriate to the
          laws of the State of Texas, USA.
  Notes:  Uses the Swing_Lee_Simple routine to determine 
          TurningPoints/Pivots for Fib projections.
          You can use the beginning date to inhibit projections in
          the early part of a chart.
          The Andrews aspect of this indicator uses an input 
          parameter  NumForks  which (when set to a value 
          between 1 and 3) will causes the system to perform 
          normally and also to add the last 1, 2, or 3 "pitchforks" 
          which can be drawn with the swings picked by Swing_Lee.
          A Fib lines on price capability is also included -- see below.
          
          The "FibBoxes" are derived by use of the square root of various 
          ratios of Phi (Phi=1.61812).
          Those included are:
          
          1/(phi^8)^0.5 = 0.145
          1/(phi^7)^0.5 = 0.185
          1/(phi^6)^0.5 = 0.236
          1/(phi^5)^0.5 = 0.300
          1/(phi^4)^0.5 = 0.382
          1/(phi^3)^0.5 = 0.486
          1/(phi^2)^0.5 = 0.618
          1/(phi^1)^0.5 = 0.786
            (phi^0)^0.5 = 1.000
            (phi^1)^0.5 = 1.272
            (phi^2)^0.5 = 1.618
            (phi^3)^0.5 = 2.058
            
          and are the basis of the "Spiral Calendar" proposed by 
          Christopher Carolan
          The SwingTimer_FIB_TS2k(STF) indicator is DRASTICALLY DIFFERENT
          from the plain old SwingTimerTS2k(ST).
          ST records the history of every swing that occurs on whatever
          chart you are displaying for the entire history that has been
          loaded into Tradestation.  Once this information is collected
          then an analysis of the distribution of time periods and price
          lengths of each leg in the to be projected leg direction (and
          if selected, matching from 1 to 3 pattern ID numbers) and then
          calculates a range of times and prices in which the next turn
          is likely to occur.  These ranges are shown by plotting a BOX
          that has vertical lines which begin at the earliest anticipated 
          time and ends with the latest anticipated time.  The line for 
          the top of the box is drawn at the highest anticipated price 
          and the line for the bottom of the box is drawn at the lowest
          price that would be anticipated from the statistics.
          STF allows you to enter (or use a set of default) multipliers
          which are derived by some combination of Fibonacci numbers or
          reciprocals of some such numbers.  These multipliers are used
          to calculate anticipated time and price points based on the
          LAST LEG ONLY that has been completed -- no history except for
          the very last leg -- using the time interval of that leg and
          the price difference from the beginning to the end of the leg.
          The width and height of each box is a function of a percentage
          parameter which is used to calculate the price and time points
          at which to plot the top and sides of A SERIES OF BOXES.  STF
          plots up to 11 potential price/time zones based on the Fib
          ratios you input -- ST only plots one box (for each application 
          of the indicator) -- VERY MAJOR DIFFERENCES.
          
          ® Tradestation - Omega/Tradestation Corporation
          © 1997-2001 SYTECH Corporation/Clyde Lee, All rights reserved.
**********************************************************************}
Input:    NBars(34.0),        {Number bars in HH/LL computations for  }
                              {xxx.y  y=plot direction.  0=up & down  }
                              {1=Plot only Upgoing Projections.       }
                              {2=Plot only Downgoing Projections.     }
                                
          ForcePvt(True),     {Force a pivot point at last bar/date   }
          LastOnly(true),     {If set false display Miners secondary  }
                              {Fibs using time & price lengths from   }
                              {leg just prior to last leg defined.    }
                                
          UpColor(Blue),      {Color for upgoing boxes/lines          }
          DnColor(Red),       {Color for downgoing boxes/lines        }
                                    
          AnotBars(True),     {Annotate the NBar parameter at box     }
                              {This must be false for All to work!!!! }
                                
          BeginDat(1011201);  {date at which to start drawing boxes   }
Inputs:   FibMul_0(0.145),    {Set to any value desired or set to zero}
          FibMul_1(0.185),    {Set to any value desired or set to zero}
          FibMul_2(0.236),    {Set to any value desired or set to zero}
          FibMul_3(0.300),    {to inhibit plotting that particular    }
          FibMul_4(0.382),    {multiple.  These multiplier(s) are     }
          FibMul_5(0.486),    {applied to the number of bars in the   }
          FibMul_6(0.618),    {last swing and the price difference in }
          FibMul_7(0.786),    {the pivots of the last swing to setup  }
          FibMul_8(1.000),    {poiints at which to plot "boxes" based }
          FibMul_9(1.272),    {on these multiples and the Percent     }
          FibMul_10(1.618),   {value in next parameter.               }
          FibMul_11(2.058),
          Percent(12.1);      {Percent of calculated price and time   }
                              {differences to use +/- in drawing boxes}
                              {decimal portion times 10 is line size  }
                                
Inputs:   FibBars( 0.603);    {Use to setup fib computation & label   }
                              {0.cwt=NO fib calculation. yy.cwt = set }
                              {fib line lengths to be yy past last bar}
                              {w=line width 0-6                       }
                              {c=line color                           }
                              {Black=1,    Blue=2,  Cyan=3,   Green=4,}
                              {Magenta=5,  Red=6,   Yellow=7, White=8,}
                              {DarkBlue=9                             }
                              {t=line type 1=solid, 3=dotted, ....    }
Inputs:   NumFork(0),         {Number of Pitchforks to generate 3=max }
                              {Line width and color are defined by the}
                              {value of the fractional portion of this}
                              {parameter.  X.wc  where w=line width   }
                              {and c=line color as previously defined.}
          MLOnly(false),      {Plot only median line if true          }
          Plot034(False);     {Plot a 0/3-4 fork plus 0/1-2 fork(s)   }
Input:    NoLines(False);     {Set true to stop lines & only use boxes}
{*********************************************************************}
{The following  Vars  can be converted to  Inputs  by substituting the
label  Inputs  for the word  Vars  and recompiling.  These features 
are not warranted to execute properly.}
Inputs:   EndDate(1031231),   {Ending date for computation--use to    }
                              {study prior behavior of function       }
          EndTime(1500);      {Ending time for End date               }
                              {This has no effect for daily,wkly,.....}
Vars:     TrueSymb("" ),      {Set to a value of null  ""  if no plot }
                              {of the exact points where TP was picked}
                              {Enter any character to plot True points}
                              {NOTE:  This is a 'character' value and }
                              {values MUST be put inside double quotes}
          FileDir("");        {Directory for file end with \          }
                              {Make null -- "" -- for no file out     }
                              {File is a file of each TP and prices   }
                              {and type of pattern coming into TP     }
                                
Vars:     VertLine(true),     {Set true to draw vertical lines at the }
                              {beginning and ending of predicted time }
                              {zones.  Colors Top=Blue, Bottom=Red    }
          LongVert(False),    {If VertLine is true then making this   }
                              {true will cause lines to extend from   }
                              {bottom to top of chart.                }
          UseForcd(true);     {Set true to have Fib lines drawn from  }
                              {last or forced pivot if such exists.   }
                                
{*********************************************************************}
{*********************************************************************}

 

CLICK   THE    Add to Cart   Button TO ORDER the
SwingTimer_FIB_TS2k@$ 125.00

Return to Home Page