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

Re: [amibroker] initialise variable



PureBytes Links

Trading Reference Links

No it is not correct. Original formula is self-referencing.
One would need either to write for loop or use Cum function.

Correct is:

Alpha = Cum( (open + close)/(open - close));

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: <dennisconn@xxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, October 25, 2004 4:19 PM
Subject: Re: [amibroker] initialise variable


> 
> This should work:
> 
> Beta = ((open + close)/(open - close));
> Alpha = Beta + ref(Beta,-1);
>  ----- Original Message ----- 
>  From: mythicalmonkey_mmm 
>  To: amibroker@xxxxxxxxxxxxxxx 
>  Sent: Saturday, October 23, 2004 5:35 AM
>  Subject: [amibroker] initialise variable
> 
> 
> 
> 
>  Dear sir ,
>          I would like some help regarding initialising a variable.
>  Example:
>           Alpha = ((open + close)/(open - close))+ref(alpha,-1);
>  I get error "var use without initialising".
> 
>  My problem is i am using a var alpha and need alpha of yesterday so 
>  how do i initialise it .
>      Thanks for the help;
> 
>  My-monkey.
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  Check AmiBroker web page at:
>  http://www.amibroker.com/
> 
>  Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
>        Yahoo! Groups Sponsor 
>              ADVERTISEMENT
>             
>       
>       
> 
> 
> ------------------------------------------------------------------------------
>  Yahoo! Groups Links
> 
>    a.. To visit your group on the web, go to:
>    http://groups.yahoo.com/group/amibroker/
>      
>    b.. To unsubscribe from this group, send an email to:
>    amibroker-unsubscribe@xxxxxxxxxxxxxxx
>      
>    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 
>  Message transport security by GatewayDefender
>  10:09:47 AM ET - 10/25/2004
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/