Job finished
Specification
SELL - when new arrow is SELL signal, and previous arrow(s) was BUY signal.
If the previous arrow does not have an arrow for comparison, then we move back to the arrow before, until we find a valid previous arrow. (i.e the previous arrow for comparison must be either buy or sell, it cannot be null)
The indicator arrows repaint, so in order to decide whether we accept an arrow as valid we need to time how long it has been painted for, and if it exceeds a variable value ( e.g. 30 seconds) then we accept this as a valid arrow, even if it subsequently disappears.
During the period when we are checking how long the arrow has been painted for, if the arrow disappears then the counter is reset. The counter is also reset if the arrow changes from buy to sell and vice versa.
10. Draw arrows when trades placed.11. Display on screen the following values:
a) The current arrow status.
b) The previous arrow status.
c) The timer current value ( i.e. how long the current arrow has been painted for )