Sounds like you want something along these lines: barssince(rsi < 30) > 1 and 
(moving average condition). 

Bill


  ----- Original Message ----- 
  From: tridean34 
  To: [email protected] 
  Sent: Tuesday, July 08, 2008 8:26 AM
  Subject: [amibroker] Re: Not sure how to create a trigger


  Hi Guys,
  sorry for not being more specific.

  Let's say it is RSI I am using.

  If RSI < 30 then look for trigger 2. Let's say trigger 2 is mav 
  crossover. Say 5 and 10

  If mav 5 crosses above mav 10 then buy.

  As this stands I can have

  Buy = RSI < 30 
  AND 
  MAV 5 > MAV 10; (or something like that)

  The problem is, I don't care if the RSI is < 30 when the 5 mav 
  actually crosses above the 10 mav, only that it occurred before hand. 
  The RSI MUST hit or go below 30 before the system looks for the mav 
  crossover, but once the crossover takes place, the RSI does NOT have 
  to be at any specific level

  And it is this I don't know how to code.

  cheers
  Dean


  ------------------------------------

  Please note that this group is for discussion between users only.

  To get support from AmiBroker please send an e-mail directly to 
  SUPPORT {at} amibroker.com

  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/

  For other support material please check also:
  http://www.amibroker.com/support.html
  Yahoo! Groups Links




  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.138 / Virus Database: 270.4.6/1539 - Release Date: 7/7/2008 6:35 
PM


Reply via email to