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

Re: [amibroker] BarsSince question



PureBytes Links

Trading Reference Links

On Mon, 3 Nov 2003 21:41:56 +0100, in Amibroker you wrote:

> On Monday 03 of November 2003 21:15, Thomas Ludwig wrote:
>
>> 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'm not sure if period arguments in stdev and roc could be variable or
> constant values.
> works with constants?

Yes, it does using lastvalue(barhigh).

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/