Helo jcl, how do I code Heiken-Ashi Indicator in zorro s?

http://www.dailyfx.com/forex/education/t..._Indicator.html

how would I convert something like this pseudo code into zorro lite-c code?

===================
== Entry conditions
===================
LongEntryCondition = ((Open(9) > HeikenAshiLow(17)) Or (ATR(76) Crosses Below ATR(67)))
ShortEntryCondition = ((Open(9) < HeikenAshiHigh(17)) Or (ATR(76) Crosses Above ATR(67)))


===================
== Entry orders
===================
-- Long entry
if LongEntryCondition is true {
Reverse existing order (if any) and Buy on open at Market;
Stop Loss = 98 pips;
}

-- Short entry
if ShortEntryCondition is true {
Reverse existing order (if any) and Sell on open at Market;
Stop Loss = 98 pips;
}