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

[amibroker] Re: Trailing Time Period


  • Date: Mon, 15 Mar 2010 04:16:56 -0000
  • From: "Mike" <sfclimbers@xxxxxxxxx>
  • Subject: [amibroker] Re: Trailing Time Period

PureBytes Links

Trading Reference Links

Have a look at the Sum function.

e.g.
Count = Sum(Price > 10, 20);
Plot(Count, ...);

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "rise_t575" <tareiss@xxx> wrote:
>
> Hallo,
> 
> I'm brandnew to Amibroker and AFL (and the last time I've been coding was in my childhood) and trying my first steps here.
> 
> Could someone give me at least a pointer how I could code the following scenario:
> 
> A graph that counts the number of times a condition is met in a trailing "time window".
> 
> Example:
> For every bar, the following is calculated:
> How many times within the last 20 bars has the condition (like price > 10) been met?
> 
> Any help is appreciated!
> 
> Thanks in advance.
>




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

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