Can the same routine [a generic drawing shapes function] be called more than one time on the same bar to draw more than one shape [not even on the same bar]?
Example: On GapUp, I detect a Pivot Low, so I call the routine to draw the PivotLow [usually, 1-2 bar before the event]. Tthen same bar turns to be a Pivot High as well, so I call the same function again, [diferent parameters values] to draw the PivotHigh [on this bar].
It plots only one of them, whichever occurs last.
Is this a programming error on my part, or a limitation I need to know about?
Note: I even created a duplicate function, with diferent names for parameters, same result: only last DrawShape function ordered plot.
Thank you.
Example: On GapUp, I detect a Pivot Low, so I call the routine to draw the PivotLow [usually, 1-2 bar before the event]. Tthen same bar turns to be a Pivot High as well, so I call the same function again, [diferent parameters values] to draw the PivotHigh [on this bar].
It plots only one of them, whichever occurs last.
Is this a programming error on my part, or a limitation I need to know about?
Note: I even created a duplicate function, with diferent names for parameters, same result: only last DrawShape function ordered plot.
Thank you.
Comment