Comment on Trading Systems

Hanan commented on 30 Dec 2013, 01:34 PM

Hi Kasi,
We’ve got the idea behind the code below for you. We’ve set it up for 10 candles. If you’d like to make it for 20 candles, you just have to continue the sequence. 🙂

BUY:

(CLOSE > (MINOF(REF(LOW, 1), REF(LOW, 2), REF(LOW, 3), REF(LOW, 4), REF(LOW, 5), REF(LOW, 6), REF(LOW, 7), REF(LOW, 8), REF(LOW, 9), REF(LOW, 10)) > CLOSE))

SELL:

(CLOSE < (MAXOF(REF (HIGH, 1), REF (HIGH, 2), REF (HIGH,3), REF(HIGH, 4), REF(HIGH, 5), REF(HIGH, 6), REF(HIGH, 7), REF(HIGH, 8), REF(HIGH, 9), REF(HIGH, 10)) < CLOSE))

View the full comment thread »