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

[EquisMetaStock Group] Re: Need Help with Exploration Code



PureBytes Links

Trading Reference Links

Hi Phil,

Try this:

A:=CMF(21);
Bplus:=BarsSince(a<0);
Bminus:=BarsSince(a>0)*-1;
Bplus=1 AND Ref(Bminus,-1)< -10;


In an exploration remember to load more than minimum records.

This is an interesting indicator and one that you can have some fun 
with. The Bplus and Bminus seems counterintuitive but once you 
realize that you are looking at the bars since the event it makes 
sense.

You may want to verify this as an indicator with:

A:=CMF(21);
Bplus:=BarsSince(a<0);
Bminus:=BarsSince(a>0)*-1;
Bplus;Bminus;

Hope this helps,

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, sky1a2000 <no_reply@xxx> wrote:
>
> Hi all,
> 
> I just want to do something quite simple but am having 
> trouble.
> 
> I want the "Chaikin Money Flow" to be above 0 today
> but to have been below 0 for tha last 10 trading days.
> 
> Any help will be appreciated.
> 
> Phil
>



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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

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

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/