Hi Tomasz, Thank you for your input .
just want to update, in mycase I succeed with this additional code
if( LastValue(Ref(Buy,-1))
which I modified from this thread Send orders to IB on next bar (Intraday)
Hopefully it helps other readers, thanks also for the thread maker.