Given a number of moving averages with different periods, I would like to code the first moment when they are arranged by order, for example: ma1=Average[1] ma2=Average[2] ma3=Average[3] ma4=Average[4] ma1>ma2>ma3>ma4 and that only candle to use as an entry signal. Hope I have been clear. Thanks anybody Alex