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

[amibroker] Re: Coding problem



PureBytes Links

Trading Reference Links

Bill,
give a description of more complicated conditions and we will try to 
code it.
It is interesting to code whipsaws in detail.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <wd78@xxxx> wrote:
> Thanks Jayson and Dimitri.  I think things are a little more 
complicated,
> but its a good starting point.  Bill
>   ----- Original Message ----- 
>   From: Jayson
>   To: amibroker@xxxxxxxxxxxxxxx
>   Sent: Wednesday, September 10, 2003 4:50 PM
>   Subject: RE: [amibroker] Re: Coding problem
> 
> 
>   Dimitris,
>   Right you are. Perhaps....
> 
>   range= rsi(14)>50 and rsi(14)<60;
>    kiss=ref(range,-1)==1 and rsi(14)<50;
> 
> 
>   Regards,
>   Jayson
>   -----Original Message-----
>   From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@x...]
>   Sent: Wednesday, September 10, 2003 4:14 PM
>   To: amibroker@xxxxxxxxxxxxxxx
>   Subject: [amibroker] Re: Coding problem
> 
> 
>   Jayson,
>   range is a Boolean condition, equal to 1 or 0
>   ref(rsi(14),-1) is the previous rsi value
>   Dimitris Tsokakis
> 
>   --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
>   > Bill I think you could specify the range with greater than/less
>   than and
>   > look for the reversal with the ref function. something like
>   >
>   > range= rsi(14)>50 and rsi(14)<60;
>   > kiss=ref(rsi(14),-1)==range and rsi(14)<50;
>   >
>   > (not tested, just a random thought that might get you started..)
>   >
>   > Regards,
>   > Jayson
>   > -----Original Message-----
>   > From: wavemechanic [mailto:wd78@x...]
>   > Sent: Wednesday, September 10, 2003 10:15 AM
>   > To: AmiBroker, Yahoo
>   > Subject: [amibroker] Coding problem
>   >
>   >
>   > Hi:
>   >
>   > Would appreciate it if someone could put me on the right 
track.  I
>   am trying
>   > to code the condition where an indicator "kisses" a specific
>   level.  By
>   > "kisses" I mean touches and then reverses.  Of course, one would
>   have to
>   > specify a range, as opposed to a specific level, in which the 
kiss
>   is in
>   > play.  Ideally, a "Kiss" function similar to Cross would be 
great.
>   >
>   > Thanks.
>   >
>   > Bill
>   >
>   >       Yahoo! Groups Sponsor
>   >             ADVERTISEMENT
>   >
>   >
>   >
>   >
>   > Send BUG REPORTS to bugs@xxxx
>   > Send SUGGESTIONS to suggest@xxxx
>   > -----------------------------------------
>   > 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 the Yahoo! Terms of 
Service.
> 
> 
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   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 the Yahoo! Terms of 
Service.
> 
>         Yahoo! Groups Sponsor
>               ADVERTISEMENT
> 
> 
> 
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   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 the Yahoo! Terms of 
Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/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/