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

[amibroker] Re: Find 8 consecutive Twiggs bars



PureBytes Links

Trading Reference Links

Assuming that you know how to write the AFL to determine a Twiggs 
positive or negative, I would think that SUM would do it for you. Try 
something like the following:

TwiggsPositive = ...;
TwiggsNegative = ...;

EightConsecutivePos = (SUM(TwiggsPositive, 8) == 8);
EightConsecutiveNeg = (SUM(TwiggsNegative, 8) == 8);

Filter = EightConsecutivePos OR EightConsecutiveNeg;

AddColumn(EightConsecutivePos, "8 Positives");
AddColumn(EightConsecutiveNeg, "8 Negatives");

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "donpickdonpick" <donpick1@xxx> 
wrote:
>
> Twiggs is something like Chaikin.  I want to write an Exploration
> which finds each instance where there are 8 consecutive positive or
> negative Twiggs Money Flow bars .  
> 
> My guess is may be I use SUM???  I'm not sure how to write the afl
> logic.  Or may be I use something else?
> 
> Thank you for your help.
>



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

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