{ Downloaded From https://www.WiseStockTrader.com } DaysM:=Input("Enter periods:",2,100,14); BA:=Mov( (C-Ref(C,-1) ) / Ref(C,-1), DaysM ,E); If( Mov( ((BA - Ref( BA ,-1) ) ) ,20 ,E) > 0.0001 ,1, If( Mov( ((BA - Ref( BA ,-1) ) ) ,20 ,E) < -0.0001 ,-1 ,0))