You seem to be dealing with an invariant that is similar to but not quite the stick number. If I understand your invariant, you are taking all knot diagrams made of only straight lines and finding the minimum number of straight lines in any such diagram. Your example shows that for the trefoil this invariant is at most $5$.
The stick number, on the other hand, has to do with piecewise linear embeddings of the circle into 3D space, and it is the minimum number of line segments in any such parameterization. Your example does not correspond to a piecewise linear embedding in 3D. It has a sort of Penrose triangle paradox if you try to lift it to 3D.