Positional and algo trading by using the webhook and Tradingview

I would like your guidance on the following points related to positional and algo trading by using the webhook and Tradingview

  1. How to retrieve the previous-day position or data for positional orders.
  2. How the algo handles re-entry.
  3. If a buy/sell signal is generated on the last candle of the day but the market is closed, what is the solution? Should any automation be triggered in the next trading session?
  4. How to develop a bidirectional and positional strategy for futures and options.
  5. How to use the Expression Builder and declare variables.
  6. How to create a short-only or long-only strategy.
  7. TradingView sends the number of lots as an integer, but Fyers expects a string. How can this issue be resolved?