hi quants.
is there a way to trade exactly when the price reaches a certain price, no matter the resolution?

I'm in a situation where my algorithm indicators ofthen buys a little to late. my resolution is set to daily for my indicators and my price bar. and I would like to keep that.  is there something like :

# buy 100% tesla at 200 usd

OrderByPrice("TSLA", 1 , 200)

#or in the onData.

onData()

   if myBuyPrice > exactPrice: 

       # buy

thanks a lot :)