[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3rd Friday



PureBytes Links

Trading Reference Links

> >
> >At 6:31 PM -0500 11/27/99, Bert wrote:
> >
> >>  >>Could someone please tell me how to plot a Show Me for the 3rd
> >>  >>Friday of each month. (Obviously I'm trying to see option
> >>  >>expirations on the chart.) I know it must be something easy but I
> >>  >>can't find the right formula.
> >
> >
> >In the QuickEditor insert the following after the "If":
> >
> >      DayToExpiration(Month(Date), Year(Date)) = 0
> >
> >This seems to work.
> >
> >Bob Fulks
> 
> 
> 
> That must Ts2K - I don't find it in Ts4.
> 

Silly me - there it is: DayStoExpiration. (thanks to Gary Fritz)

Also implemented as Next3rdFriday.  (thanks to OM)

However, this produces a sawtooth wave, not what the customer
wanted.  I have arranged it for a Showme:


{ *******************************************************************

	Study		: Next3rdFriday
	
	Last Edit	: (Modified for ShowMe by DonC 991128)

	Provided By	: Omega Research, Inc. (c) Copyright 1995

********************************************************************}
inputs: Series(1);   

IF  Next3rdFriday(Series)[1] = 1 Then
Plot1 (c +2 , "Fri3" );


{  Could use

   IF  DaystoExpiration(month(date),year(date))[1] = 1 
   Then Plot1 (c +2 , "Fri3" );

However, this does not work as an indicator.  DaysTo... goes negative 
after the 3rd Friday til the start of the next month.  
But it works as a ShowMe.
}


donc