Here's what I have inside OnBarUpdate():
............
prevLow = ll;
CrsAbv20 = CrossAbove(Stochastics(PeriodD, PeriodK, Smooth), 21, 1); // 22
if (CrsAbv20)
{
ll = MIN(Low, 20)[0]; // lowest low
prevLow = ll;
DrawArrowUp("UpArrow" + CurrentBar, true, 1, (ll-arrowPos), Color.Lime);
Print("Above LL = "+ll+ "... prevLow = " +prevLow+ " --- Time:......"+DateTime.Now);
}
...........
It prints number of lines, maybe 50 or so... I do not understand why? How to limit the output to a single line as expected please? I'm getting a single arrow at cross above and expected to see only one line of output instead of many.
I also try to remember prev. arrow low into prevLow variable. In the output the first line seems gets me correct values-prevlow is the low of my prev arrow, current low is printing correctly... etc... But the rest of lines in output has diff/incorrect values for prevLow. Did I misunderstand smth about cross above and print? Why I see many lines in output instead of a single line please and how to fix it?
Thank you very much.
Regards, Art.
Comment