I am new to thinkscript I was wondering if someone could help
once one green arrow is printed how do I stop printing another green arrow until after a
red arrow is printed here is that part of the script if you need the rest let me know
input show_output_dot = yes;
def outup = (s1ok and s1up) + (s2ok and s2up) + (s3ok and s3up) + (s4ok and s4up) + (s5ok and s5up);
def outdwn = (s1ok and s1dwn) + (s2ok and s2dwn) + (s3ok and s3dwn) + (s4ok and s4dwn) + (s5ok and s5dwn);
plot zz1 = if show_output_dot and ((outup == cntok) or (outdwn == cntok)) then high * (1 + (1 * vert)) else na;
zz1.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
zz1.SetLineWeight(3);
zz1.AssignValueColor(if (outup == cntok) then Color.GREEN else if (outdwn == cntok) then Color.RED else Color.GRAY);
zz1.HideBubble();
once one green arrow is printed how do I stop printing another green arrow until after a
red arrow is printed here is that part of the script if you need the rest let me know
input show_output_dot = yes;
def outup = (s1ok and s1up) + (s2ok and s2up) + (s3ok and s3up) + (s4ok and s4up) + (s5ok and s5up);
def outdwn = (s1ok and s1dwn) + (s2ok and s2dwn) + (s3ok and s3dwn) + (s4ok and s4dwn) + (s5ok and s5dwn);
plot zz1 = if show_output_dot and ((outup == cntok) or (outdwn == cntok)) then high * (1 + (1 * vert)) else na;
zz1.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
zz1.SetLineWeight(3);
zz1.AssignValueColor(if (outup == cntok) then Color.GREEN else if (outdwn == cntok) then Color.RED else Color.GRAY);
zz1.HideBubble();