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

[amibroker] Running Median Calculation Starting at Bar 0



PureBytes Links

Trading Reference Links

I am trying to calculate a running median that starts at bar 0.

Code:
RM = Median(Close, BarIndex() + 1);

Then I get the following error message:
Error 5. Argument #2 has incorrect type (the function expects different argument type here)

I am using "Barindex() + 1" to get a running count at each bar to be used in the median's lookback period. Is there a way to implement this?

Thanks.
__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___