Post your complete OR code and someone will probably unscramble it for you.
  ----- Original Message ----- 
  From: livinloud_1104 
  To: [email protected] 
  Sent: July 09, 2009 3:34 AM
  Subject: [amibroker] Re: Bar by bar multiple criteria buy/sell signals.



  anybody have any idea on this?




  --- In [email protected], "livinloud_1104" <kapishmoh...@...>
  wrote:
  >
  >
  > Hi,
  >
  > How to generate buy/sell signals using multiple criteria, I need 4
  > different criteria for both buy and sell signals.
  >
  > Buy signal can be based on MACD, ADX, RSI or MA etc. And the sell
  > signal after this buy signal can be of any of these indicators,
  >
  > For example, If buy was from MACD then sell is from ADX, if buy from
  RSI
  > then sell from MACD indicator.
  >
  > For each buy or sell, at every bar the system should check for all
  four
  > criteria and select only one specific to that bar number. For bars
  > ahead, it might find other suitable criteria.
  >
  > I have been trying it with "logical OR", by looping "(i=0;
  > i<barcount; i++)", by "switch" loop, by "while,
  > break" loop, using array element [].
  >
  > It doesn't seem to work. What it dose is, whenever it meets first
  > criteria, its using just that criteria through out, till BarCount. If
  > first buy was found by RSI then all next buy signals are from RSI, it
  > won't consider MACD or DAX or anything else to find next buy signal.
  >
  >
  >
  > Anyone tried doing this?
  >
  >
  >
  >
  >
  > Thanks
  >





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

  **** 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



Reply via email to