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

[EquisMetaStock Group] Re: Ref the future



PureBytes Links

Trading Reference Links

Hi Roy,
thank you for you great suggestions.
Now it works...

Referencing data in the future in this case is not a big deal because
is done in the past, to get min and max of a indicator to build
fibonacci lines

Ciao,
Stefano

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxx> wrote:
>
> Stefano
> 
> 
> You'll have less trouble making the formula work if you stop trying
to look into the future. F1 requires data from two bars into the
future and so it's not surprising that MS stops delivering a result
two bars short. Changing the code to look only at the present and the
past gives a signal that is more credible in the real world (though
obviously two bars later).
> 
> f1:= Ref(C,-4)+Ref(C,-3)-Ref(C,0)-Ref(C,-1);
> minmax := If(Cross(f1,0),1,If(Cross(0,f1),-1,0));
> minmax;
> 
> If this is unacceptable then try formula below. It's still
referencing two bars into the future but should at least fool the
Explorer and your charts into plotting up to the last available bar
(meaningless though the last two bars might be).
> 
> f1 := Ref(C,-2)+Ref(C,-1)-Ref(C,2)-Ref(C,1);
> minmax := If(Cross(f1,0),1,If(Cross(0,f1),-1,0));
> ExtFml("Forum.Sum",minmax,1);
> 
> The Forum dll is available from Equis Forum website.
> 
> 
> Roy
> www.metastocktips.co.nz
> 
>  
> ----- Original Message ----- 
> From: gramaglia2000 
> To: equismetastock@xxxxxxxxxxxxxxx 
> Sent: Monday, March 20, 2006 10:08 AM
> Subject: [EquisMetaStock Group] Ref the future
> 
> 
> Hi,
> I am doing a derivative of the price to get max and min: a simple
> formula is:
> f1 := Ref(C,-2)+Ref(C,-1)-Ref(C,2)-Ref(C,1);
> minmax := If(Cross(f1,0),1,If(Cross(0,f1),-1,0));
> minmax;
> 
> The problem is that using a function like that, every indicator that
> reference this formula stops 2 days before the last bar. I can see
> adding the chart and look minmax; the major problem is that the
> Explorer does not work too.
> This is not the same in Tradestation or Amibroker. How can I get the
> Explorer working till the last day?
> 
> Any help woulld be appreciated.
> 
> Ciao,
> Stefano
> 
> 
> 
> 
> 
> 
> 
> SPONSORED LINKS Business finance course  Business to business
finance  Small business finance  
>       Business finance consultant  Business finance magazine 
Business finance schools  
> 
> 
>
--------------------------------------------------------------------------------
> YAHOO! GROUPS LINKS 
> 
>   a..  Visit your group "equismetastock" on the web.
>     
>   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. 
> 
> 
>
--------------------------------------------------------------------------------
> 
> 
> 
> [Non-text portions of this message have been removed]
>








 
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/