Comment on Trading Systems

Hanan commented on 07 Oct 2013, 12:02 PM

Hi Nehal… Here’s the strategy in code. Try it and let us know.

Buy: MACD (26, 13, 9, EXPONENTIAL) > MACDSIGNAL (26, 13, 9, EXPONENTIAL) AND REF (MACD (26, 13, 9, EXPONENTIAL), 1) > 0 AND REF (MACDSIGNAL (26, 13, 9, EXPONENTIAL), 1) > 0

Sell: MACD (26, 13, 9, EXPONENTIAL) < MACDSIGNAL (26, 13, 9, EXPONENTIAL) AND REF (MACD (26, 13, 9, EXPONENTIAL), 1) < 0 AND REF (MACDSIGNAL (26, 13, 9, EXPONENTIAL), 1) < 0

View the full comment thread »