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

Re: [EquisMetaStock Group] Re: Scaling of Chart



PureBytes Links

Trading Reference Links

Hi  Preston, Dusant,

you are right, the indicator is spiky and also the maximum and minimum value doesn't matter. It is a Gann Angle indicator. Below is the code. Please go through it and give me suggestion.

{--------------------------Code Starts-----------------------------}
{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}
{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;}

{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-------------------------}




At 08:47 AM 30-12-05, you wrote:
If the indicator is spiky, and the maximum and minimum values do not matter, then Rakesh could define extremes in the indicator itself, which could keep the axis in "control"
 
Dusant
http://www.geocities.com/cooldush
----- Original Message -----
From: pumrysh
To: equismetastock@xxxxxxxxxxxxxxxx
Sent: Thursday, December 29, 2005 10:20 PM
Subject: [EquisMetaStock Group] Re: Scaling of Chart

Rakesh,

I'm sure there is but I don't know what the formula is:-)

Preston


--- In equismetastock@xxxxxxxxxxxxxxxx, Rakesh Patel <patel.rak@x...>
wrote:
>
> Hi Preston,
>
> Thank you for your reply.
>
> Your suggestion works fine, but it doesn't fulfill the purpose of
> indicator if  I plot it as an Overlay or using the left side of the
scale.
>
> is there any other way like Setting the X -Y property through
indicator.
>
> Thank you once again.
>
> With regards,
>
> Rakesh
>
>
> At 02:20 AM 29-12-05, you wrote:
> >Rakesh,
> >
> >Several options that you could use.
> >
> >Overlay without scale is one. Another would be to use left side for
> >the indicator and the right for the price. One final option is to
> >open the indicator and divide it by 100 or another number in order
to
> >bring it within scale.
> >
> >Preston
> >
> >
> >
> >--- In equismetastock@xxxxxxxxxxxxxxx, Rakesh Patel
<patel.rak@xxxx>
> >wrote:
> > >
> > >
> > > Hello All,
> > >
> > > While I plot my custom indicator, due to high value of plotted
> > > indicator chart scale adjusted accroding to that value. So I
have
> >to
> > > manually set the scale of the chart. Is there any method to
control
> > > it through indicator ?
> > >
> > > With regards,
> > >
> > > Rakesh Patel
> > >
> >
> >
> >
> >
> >
> >
> >----------
> >YAHOO! GROUPS LINKS
> >
> >    *  Visit your group
> > "< http://groups.yahoo..com/group/equismetastock>equismetastock" on
the web.
> >    *
> >    *  To unsubscribe from this group, send an email to:
> >    *
> > <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe>equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> >
> >    *
> >    *  Your use of Yahoo! Groups is subject to the
> > < http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
> >
> >
> >----------
>






YAHOO! GROUPS LINKS

 Visit your group " equismetastock" on the web.
 
 To unsubscribe from this group, send an email to:
  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Send instant messages to your online friends http://in.messenger.yahoo.com



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