PureBytes Links
Trading Reference Links
|
--- In equismetastock@xxxxxxxxxxxxxxx, Gelo Gelo <gelobr@xxx> wrote:
>
> Good night for everyone,
>
> I need some help with directional movement (DI+ e DI-) formula. I'm trying
> to code a trading system and I don't know how to code DI+ e DI- with 13
> periods.
> I'm trying to do a system that have the following parameters to show me the
> trend:
>
> Up Trend: DI+(13) above DI-(13)
> Down Trend; DI-(13) above DI+(13)
>
> If someone could help me, I'll be very grateful.
>
> Regards
> Gelo
>
up:=PDI(13)>MDI(13);
down:=MDI(13)>PDI(13);
if you want something like the early trend alert cross(up,down)
if you want to use them as signal IMO you can check one of example coding
if( barssince(up)><barssince(down),1,0)----just play with this arrangement;
state>ref(state,-1)
------------------------------------
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/
|