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

Re: [amibroker] developing system



PureBytes Links

Trading Reference Links

thanks!!
can you help me to code this:

Buy (pdi>mdi) or Short (mdi>pdi) when ADX was under 20 and crosses this
line.

The sell trigger would be if: a) The adx line is under 30 and the adx(14)
ref(-1) is higher than actual value (downward trend). b) The SMA(20) is
higher than close or open. c) two consecutive low values are equal or below
SMA(20).

The cover trigger would be if: a) The adx line is under 30 and the adx(14)
ref(-1) is higher than actual value (downward trend). b) The SMA(20) is
lower than close or open. c) two consecutive high values are equal or below
SMA(20).


Once a trade is closed the system has to wait to the Adx to go below 20 and
then a cross above will trigger another trade.


Special case: There was a sell or buy trigger and the adx goes beyond 30. A
sell or cover signal is executed, and the adx line stays above 30 and
ref(-1) is lower than actual adx value, giving a sell (if mdi>pdi) or long
(if pdi>mdi) signal.

Thanks

juan


 Original Message ----- 
From: "Graham" <gkavanagh@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, June 11, 2003 12:35 AM
Subject: RE: [amibroker] developing system


> Not certain what your conditions are, but if you have a less than (<) as a
> condition then it will give signals for every occurrence of that. If you
> want only the occurrence to happen once then you need to use the
> Cross(conda,condb) as the signal.
>
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
>
> -----Original Message-----
> From: emarco [mailto:emarco@xxxxxxxxxxxxxxx]
> Sent: Wednesday, 11 June 2003 11:04 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] developing system
>
> my problem is that my sell condition keeps giving me sell signals after
the
> long position is closed.
> See picture attached.
> How can I restrict this. (after close position, stop giving sell signals).
> Thanks
>
> Juan
>
>
>
>
>
> ----- Original Message ----- 
> From: "Owen Davies" <owen5819@xxxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, June 10, 2003 10:34 PM
> Subject: Re: [amibroker] developing system
>
>
> > emarco asked for help with:
> >
> > > Buy = IIf(Cross(ADX(14),20) AND PDI(14)>MDI(14),1,0); (etc.)
> >
> > Get rid of the IIf() functions.  "Buy=Cross(...".  And so on.
> >
> > Owen Davies
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> > Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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