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

Re: [amibroker] Weekly and monthly values of an indicator in daily explore


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: Re: [amibroker] Weekly and monthly values of an indicator in daily explore
  • From: Anthony Faragasso <ajf1111@xxxx>
  • Date: 26 Jul 2002 12:19:36 -0000
  • In-reply-to: <20020726115845.MIAB25537.hickory@xxxx>

PureBytes Links

Trading Reference Links

Thomas,

Try this: load into indicator builder, Daily view selected, Show dates,
This formula uses up to the current partial month or last bar, all
values converge on this last bar.

//Plot Monthly, Weekly and Daily indicator on Daily Price Chart

MaxGraph=7;

/***********************************/

//Insert indicator here time period

period=9;
/************************************/

//Insert indicator here

A1=RSI(period);
B1=CCI(period);

/************************************/

Var=b1;//insert indicator identifier

MonthlyPrice=Var;
WeeklyPrice=Var;
DailyPrice=Var;
/**********************************/

/***Colors***/
//Set to your Preference
Color=6;//Price chart
MthAvgColor=3;//Monthly Line
WklyAvgColor=5;//weekly Line
DlyAvgColor=4;//Daily Line

/**********************************/

LastBar = Cum(1)==LastValue(Cum(1));
Weekly=ValueWhen(DayOfWeek() > Ref( DayOfWeek(),1)OR Lastbar
,WeeklyPrice);
Monthly=ValueWhen(Day() > Ref( Day(), 1 ) OR LastBar,MonthlyPrice);

Monthly=monthly;
Weekly=weekly;
Daily=Dailyprice;

Graph1=Weekly;
Graph1Style=1+4;//Thick line
Graph1Color=WklyAvgColor;

Graph2=Daily;
Graph2Style=1;
Graph2Color=DlyAvgColor;

Graph3=Monthly;
Graph3Style=1;
Graph3Color=MthAvgColor;


Title=Name()+" "+"("+WriteVal(period,1)+")"+" "+"period "+
WriteIf(Var==A1,"RSI","")+WriteIf(Var==b1,"CCI","")+"..."+" Monthly
Value ="+ "("+WriteVal(Monthly,1.2)+")"+" "+ " Weekly Value
="+"("+WriteVal(weekly,1.2)+")"+" "+"Daily Value
="+"("+WriteVal(daily,1.2)+")";
/**********************************************************/

Watch out for word wrap

Anthony

"Thomas Z." wrote:

> Hi Anthony,
>
> I want test with different indicators, firstly RSI, CCI and
> gauss2ord(c,10)
>
> Thomas
>
>
>
> On Fri, 26 Jul 2002 07:52:11 -0400, Anthony Faragasso wrote:
> >Thomas,
> >
> >What indicator would you like ?
> >
> >Anthony
> >
> >"Thomas Z." wrote:
> >
> >>Hello group,
> >>
> >>I want explore with daily setting and want to see the daily, weekly
> >>and monthly value of an indicator.
> >>
> >>Can anyone sent the formula please.
> >>
> >>Thanks
> >>
> >>Thomas
> >>
> >>
> >>Yahoo! Groups Sponsor
> >ADVERTISEMENT
> >
> >>
> >>Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >>Service.
> >
> >
> >
> >
> >Yahoo! Groups Sponsor
> >Click here to find your contact lenses!
> >Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
>
>
>
>
> Yahoo! Groups Sponsor
[Image]
Click here to find your contact lenses!
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.