Based on the request.
viewtopic.php?f=27&t=65725Long:MVA1<=MVA2<=MVA3<=MVA4<=MVA5<=MVA6 and all slopes are flat or positive,
Close Long: close price of the last bar is lower than MVA
Vice versa for Short
Close all positions before 17:00 EST on Friday.