The strategy is based on LazyBear's Elder Impulse System
Strategy(in layman terms):
Long: When the green bar in the Elder Impulse System's indicator shows up Short: When the red bar in the Elder Impulse System's indicator shows up Close trade/Profit booking: When the blue bar in the Elder Impulse System's indicator shows up
@syracusepro, emaSeries is a function variable of the function get_color which is being called in line 24.
It is being called once only so for that particular call the value of emaSeries is ema(source, lengthEMA).
Thanks.