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

Re: [EquisMetaStock Group] GannAngle indicator for All Charts Modified-28/12/2005-Ver 1.0.5



PureBytes Links

Trading Reference Links

Hi Ray,

I have assume that you are asking for the current month's low. I have modified the indicator as per current month's  low.

With regards,

Rakesh

{-------------Code Starts Here-------------}

{Up Angle For 4x1,3x1,2x1,1x1,1x2,1x3,1x4 -}
{This is a GannAngle indicator for All Charts.}
{Last Modified-28/12/2005-Ver 1.0.5}

Dm:=If(DayOfMonth()<=Ref(DayOfMonth(),-1),1,0);

{Monthly Low}
Ml1:=LowestSince(1,Dm=1,L);
Dm2:=valuewhen(1,L=ML1,cum(1));

SDay:=valuewhen(1,cum(1)=Dm2,dayofmonth());
SMonth:=Valuewhen(1,cum(1)=Dm2,month());
Syear:=Valuewhen(1,cum(1)=Dm2,year());

{Start day}
{SDay:= Input("Enter Date",1,31,29);}
{Start Month}
{SMonth := Input("Enter Month",1,12,4);}
{Start Year}
{SYear := Input("Enter Year",1900,2099,2005);}

WYorN:=Input("Daily=0 Weekly=1 Monthly=2",0,2,0);
DL:=Input("Enter Start Price",0,10000,1);

Curday := DayOfMonth();
CurMonth := Month();
CurYear := Year();
{Curday -1 is the full day}
TodayInt:=CurYear + (((Curday-1)/30.44)+CurMonth-1)/12;


SDayInt := ((((Sday-1)/30.44)+(Smonth-1))/12)+SYear;
{SdayInt;}
Cdays:=((((TODAYINT - SdayInt)*30.44)*12));

{Filter the Date}

start:=Year()>SYear OR (Year()=SYear AND (Month()>SMonth OR Month()=SMonth
AND DayOfMonth()>=SDay));
end:=Year()<SYear
OR (Year()=SYear AND (Month()<SMonth
OR Month()=SMonth AND DayOfMonth()<=SDay));
Date:=start AND (end OR (start AND Alert(start=0,2))); { Use the Start and
end to filter specific date}

{Get Weekly High or Low for that week}

{DL := If(DL<>1,DL,ValueWhen(1,Date=1,L));}
DL :=ML1;


{DL;}

{Convert the Calendar Days into Day,Week or Month}

CDays:=If(WYorN=0,Round(CDays),
If(WYorN=1,Round(CDays/7),Round(CDays/30.44)));

{Calculate the Gann Angles}

4x1Up :=DL+(Cdays*4);
3x1Up :=DL+(Cdays*3);

{Plot the Gann Angles}

4x1Up;
3x1Up;

{-------------Code Ends Here-------------}


At 01:15 PM 31-12-05, you wrote:
Can you re-coding the above formular based on the latest lowest low of the month, plse?
 
 
Best regards,
Ray Ho
 



SPONSORED LINKS
Business finance course Business finance online course Business finance class
Small business finance Business finance schools Business finance small software


YAHOO! GROUPS LINKS





SPONSORED LINKS
Business finance course Business finance online course Business finance class
Small business finance Business finance schools Business finance small software


YAHOO! GROUPS LINKS