Is there a way to create an indicator which reflects the current price of a stock in Pine Script? I need this indicator because I need to enter an order before the candle closes (when there is a specific crossover) and the data for back testing is provided bar by bar. I think an indicator can allow me to do this and if not is there another way to tackle this.
I am not an experienced pine scripter and any help will be greatly appreciated:) Thanks,