InvestorsHub Logo

alamanjani

05/24/12 10:53 PM

#6972 RE: Quasi #6971

Quasi, I have another, general question about the scan writing.

Say I'm looking for some bullish and bearish pattern and for the sake of this example, say I have 3 line code for each pattern. Can I use 'OR' on the way, to look for all bullish and bearish hammers within one scan only? (being lazy) :-)

Example

[[condition 1 bullish pattern] and
[condition 2 bullish pattern] and
[condition 3 bullish pattern]]

or

[[condition 1 bearish pattern] and
[condition 2 bearish pattern] and
[condition 3 bearish pattern]]

Of course, bullish and bearish conditions are completely opposite.
Will this work? Will scan return both patterns?