Many of my sell signals in pinescript study appears at the last green candle and when placed the sell with limit order then sometime its partially filled before the price fall down.
I am trying to do is
check if the the limit order is filled or not?
create a backup market order(buy and sell) in pinescript, if the limit order is not filled fully or partially.
is it possible to create the condition in pinescript study, if not strategy?
to give the idea this is what i am looking for
if LIMIT ORDER is not filled/partial filled then sell the asset immediately with MARKET ORDER.
and if THE LIMIT ORDER is filled 100% then do not execute the MARKET ORDER
thanks