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








Reply via email to