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

[amibroker] Re: Need Simple Script



PureBytes Links

Trading Reference Links

you might try this
bsd = BarsSince(DateNum() == 1081231); // 108 = 2008, 12=dec and 31=day
highVal = HHV(H, bsd);
lowVal = LLV(L, bsd);

To get a table you can use scan, put the tickers in a watch list and 
scan from 12/31 to date. Or use foreign in an indicator and put the 
results in the interpretation window.

Barry

--- In amibroker@xxxxxxxxxxxxxxx, "ldriker" <ldriker@xxx> wrote:
>
> For a particular date and a given set of symbols I'd like to create a 
> list of high and low trades for each symbol.
> 
> For example, let's say I'm interested in the following three symbols: 
> BAC, ERH & SNA. What code would generate for 12/31/2008 a table that 
> might look something like:
> 
>  Date = December 31, 2008
>   Symbol  High    Low
>    BAC    14.12  13.00
>    ERH    11.53  10.68
>    SNA    39.67  38.65
> 
> Thanks in advance to all who consider the above request!!!
>



------------------------------------

**** 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

*********************************
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/