! Open/Close Oscillator - from
"The Complete Day Trader" by Jake Bernstein. Copyright Mcgraw-Hill
Publishing.
! Use 5-, 10-, 15-, 20- minute intervals. Use 6 to 10 period
MA's for the Open, and 12 to 24 period MA's for the Close.
Open is [open].
Close is [close].
SMAOpen is SimpleAvg(open, 6).
SMAClose is SimpleAvg(close, 12).
OCOscBuy if valresult(smaclose, 1) < Valresult(smaopen, 1)
and smaclose > smaopen.
OCOscSell if valresult(smaclose, 1) > valresult(smaopen, 1)
and smaclose < smaopen.