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

[amibroker] Re: Last Bar Traded


  • Date: Fri, 08 Jan 2010 01:05:11 -0000
  • From: "Mike" <sfclimbers@xxxxxxxxx>
  • Subject: [amibroker] Re: Last Bar Traded

PureBytes Links

Trading Reference Links

What about running an exploration on something like the following?

Buy = ...;
Sell = ...;

// Remove redundant signals
InitialBuy = ExRem( Buy, Sell );
InitialSell = ExRem( Sell, Buy );

// Calculate bar indices
Indices = BarIndex();
BuyBar = ValueWhen( InitialBuy, Indices );
SellBar = ValueWhen( InitialSell, Indices );

// Only show rows when Buy more recent than Sell
Filter = BuyBar > SellBar;
AddColumn( BuyBar, "Buy Bar" );
AddColumn( BarsSince( InitialBuy ), "Bars Ago" );

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "Randy" <BlakeRandy@xxx> wrote:
>
> I have some stocks that I find haven't traded for a few days that I would like to identify. I've run the database cleanup script but it doesn't always find them all.
> 
> Are there any AFL statements to find the last bar traded (date)?
> 
> I've looked but can't find any.
> 
> Thanks, Randy
>




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

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

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

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

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

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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/