Amibroker - Afl Code

// Calculate Moving Averages ShortMA = MA(Close, ShortPeriod); LongMA = MA(Close, LongPeriod);