PureBytes Links
Trading Reference Links
|
On Fri, 31 Oct 2003 13:21:26 -0500, in Amibroker you wrote:
> Thomas,
>
> Here is another version...
>
> Start_lookback=7;
>
> th=Ref(HHV(C,18)==C,-Start_lookback);
>
> tl=Ref(LLV(C,18)==C,-Start_lookback);
>
> barhigh=BarsSince(th)+Start_lookback;
>
> barlow=BarsSince(tl)+Start_lookback;
Thank's a lot, Anthony! Maybe you have an answer for another problem.
When I extend the above formulas in the following way ...
Var=log(C/Ref(C,-1));
Volahigh=StDev(Var,barhigh);
Volalow=StDev(var,barlow);
... I get this error message: Error 2. Bad arguments.
ROChigh=ROC(C,barhigh);
ROClow=ROC(C,barlow);
... and here: Bad args. 1-th argument of function call has invalid (or
unsupported) type.
I wonder why this happens. barhigh and barlow are round figures, so it
*should* work ...
Regards, Thomas
--
Thomas Ludwig
PGP key (RSA) available on request.
Fingerprint: 4356 55FF 3412 277A 9741 1CFA B9A6 7B90
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/I3w.vC/hP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|