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

[amibroker] Re: Adding N-Bars Conditionals



PureBytes Links

Trading Reference Links

Graham,
  I will try working that logic into my buy/sell conditions.  Thank 
you very much.  
Sincerely,
Carey

--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Do you mean something like this?
> BuyCond = your original
> SellCond = your original
> Buy = ref(buycond,-2) and c<ref(c,-1) and ref(c,-1)<ref(c,-2);
> Sell = ref(sellcond,-2) and c>ref(c,-1) and ref(c,-1)>ref(c,-2);
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> -----Original Message-----
> From: cdickerm [mailto:cdickerm@x...] 
> Sent: Friday, 2 May 2003 1:16 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Adding N-Bars Conditionals
> 
> Could anyone explain how in Amibroker language I would add to my 
Buy 
> and Sell statements, using an AND or otherwise that would have the 
> effect of delaying the Buy signal by two more bars, closing 
> successively lower, and to my sell signal for two bars closing 
> successively higher? 
> 
> Thank you,
> Carey
> 
> 
> 
> 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 
http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/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/