Hi Kumar,
Yes I will be glad to help, but first I would like to see what you
have been trying and perhaps you will learn more from a critique of any mistakes
along with a solution rather than just being handed a solution. Please
post your code attempts, and comment what is not working.
As a hint to get you started again, what I provided before would identify
when PDI crossed above MDI, and vice versa. Now you have added a different
condition and you want to start from an adx of less than
25. Consider adding Cross(ADX(14), 25) to the conditions for a PDI
crossover. If all you want is the ADX going above 25, then that would
be the basic code.
If you want ADX to have attained a certain low value before any cross
over consider using Flip() to set a state that will continue until some other
condition has been met or IIF() to require a condition to be satisfied before or
with signaling a cross of PDI. Read the manual for functions such as LLV(),
FLIP(), EXREM(), IIF(). Look in the Library for examples of how to combine
conditions or read the tutorial on using AFL.
I do not mean to frustrate you, but if you can not start learning this very
basic sort of code, you will not be able to advance and will always be asking
for someone else to do it for you. At some point no one will answer and you will
be truly stuck.
Peace and Justice --- Patrick
----- Original Message -----
Sent: Tuesday, March 02, 2010 2:03
AM
Subject: [amibroker] Re: ADX DMI
CROSSOVER
hi rakesh, i tried hard, but didn't succeed. will you
please help me if you have afl code? with regards Kumar
--- In amibroker@xxxxxxxxxxxxxxx, Rakesh
Sahgal <rakeshsahgal@xxx> wrote: > > Writng an afl for that
purpose is not difficult . > > Patrick has been kind enough to
point you in the right direction. Read up on > "CROSS". If you do not
mind making the effort that is. > > If your effort does not
succeed, I shall be more than glad to help you with > this, even though
I am not an afl guru. > > Regards > > Rakesh
Sahgal > > > On Tue, Mar 2, 2010 at 2:20 PM, indiainfo2008
<indiainfo2008@xxx>wrote: >
> > > > hi patrick, > > first thanks for the
reply. > > is it possible to write afl code for ADX and + DMI rising
from low (ie, > > less than 25)?. If yes, will you help me to write a
afl code for this > > purpose? i am a beginner in afl. > >
with regards > > Kumar > > > > --- In amibroker@xxxxxxxxxxxxxxx, "NW
Trader" <ta4charts@> wrote: > > > > > > Hi
Kumar, > > > > > > See Cross in the AFL glossary.
Basically you want: > > > > > > CondUP = Cross(
PDI(14), MDI(14) ); > > > CondDn = Cross( MDI(14), PDI(14)
); > > > > > > Filter = CondUP or CondDn ; >
> > Addcolumn( C, "Close", 3.2, coloryellow, colorblue); > >
> Addtextcolumn( writeif( CondUP, "Cross UP", "Cross Down"), "DI STATUS"
, > > 10.0, colorwhite, iif(CondUP, colordarkgreen, colordarkred)
); > > > > > > Peace and Justice
--- Patrick > > > ----- Original Message
----- > > > From: indiainfo2008 > >
> To: amibroker@xxxxxxxxxxxxxxx >
> > Sent: Wednesday, February 24, 2010 8:41 PM > >
> Subject: [amibroker] ADX DMI CROSSOVER > >
> > > > > > > how to write a afl code
to search for a +DMI crossover to -DMI in my > > watchlist ? >
> > > > > with regards > >
> kumar > > > > > > > >
> > > >
------------------------------------ > > > > >
> **** 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 > >
> > > > > > > > > > >
------------------------------------ > > > > **** 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 > > > > >
> >
> >
------------------------------------
****
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/
__._,_.___
**** 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/
__,_._,___
|