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

Re: [EquisMetaStock Group] recreating timeframe



PureBytes Links

Trading Reference Links

Hi Maxwells

The indicator I posted is a 10-period, 30-minute Simple Moving Average,
and it can be used on 1 minute, 5 minute, 10 minute, 15 minute or 30 minute
charts.

Am I right in thinking that you didn't bother to try the SMA indicator? Is a
10-period 30-minute rising EMA the way you define a rising trend for a
5 minute chart?

Am I missing something?


Kind regards

Roy Larsen
www.metastocktips.co.nz
Free formulas and MS links





----- Original Message ----- 
From: "maxime_chartrand" <maxime_chartrand@xxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Thursday, April 28, 2005 11:13 AM
Subject: Re: [EquisMetaStock Group] recreating timeframe


> 
> 
> 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 Links
> 
>  a.. To visit your group on the web, go to:
>  http://groups.yahoo.com/group/equismetastock/
>    
>  b.. To unsubscribe from this group, send an email to:
>  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>    
>  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>


------------------------ 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/