PureBytes Links
Trading Reference Links
|
Hi, tkx for quick answer.
ok, I meant that if I want a 10 periods EMA of a 30min chart, but I
want it shown on a 5min chart without the need too have two
charts..,. I would I proceed?
Maxwells
--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx>
wrote:
> Hi Maxwells
>
> > Is there anyway to recreate a longer timreframe from a shorter
> > timeframe with formula? (like to have a 5min chart and too plot
an
> > indicator from the 30min chart).
>
> Do you mean something like this?
>
> {30 Minute EMA - Close}
> {2005 Roy Larsen, www.metstocktips.co.nz}
> {for use on 1-30 minute charts}
> N:=Input("30 Minute EMA - Periods",1,99,10);
> Q:=Input("Display Mode, 0=Static 1=Dynamic 2=Test",0,2,1);
> {0=Update on last bar of 30-minute frame if possible}
> {1=Update on each new bar}
> {2=Update on first bar of 30-minute frame}
> A:=Minute(); B:=ValueWhen(2,1,A);
> X:=Hour(); Y:=ValueWhen(2,1,X);
> G:=LastValue(Highest(Sum(A=0 OR A=30,5))=5);
> F:=G OR A=0 OR A=30;
> M:=G OR X<Y OR (X=Y)*(B=0) OR (X=Y)*(B=30) OR
> (X>Y)*(A<>0) OR (A>30)*(B<=30) OR
> (A<=30)*(A<>0)*(B>30) OR ValueWhen(2,1,F);
> A:=LastValue(Cum(1)-1)=Cum(1);
> B:=ValueWhen(2,1,A);
> J:=If(F,1,If(Alert(F,2)=0 AND M,2,0));
> J:=If(A+LastValue(J)>2 OR B+(Q=1)=2,1,J);
> J:=If(G,1,If(Q=2 OR Cum(J)<=1,M*2,J));
> K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
> X:=Cum((J>0)*K);
> (X-ValueWhen(N+1,J,X))/N;
>
> > Would be usefull to put trend of 30m into the 5min chart in the
> > advisor without having 2 separate chart.
>
> How do you define a trend on a 30 minute chart? That code would
need to
> be expanded in the same way this simple moving average has been.
Virtually
> all the code in this indicator up to the third "J" is devoted to
defining 30-minute
> frames for shorter periodity data. This section of the indicator
is still being
> developed and may not function perfectly under all data
conditions.
>
> Once the frame borders have been defined and the CLOSE for each
frame
> retrieved, the moving average only takes two lines of code. More
lines are
> required if this method is not accurate enough, however, I think
you'll find it's
> accurate to about 4 decimal places.
>
> If this is helpful, I'd appreciate some help in the form of
feedback on any
> problems you identify. Thank you in davance.
>
> > Tkx in advance.
> >
> > Maxwells
>
> Kind regards
>
> Roy Larsen
> www.metastocktips.co.nz
> Free formulas and MS links
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|