Hello: I need to program a simple average of 50 periods that when has greater or smaller an angle of 20 in relation to the horizontal it is of a color and if it does not have another color. Somebody can help me. Thank you very much. Greetings,