Pine script for custom buy sell Correct script to run the code to give buy sell signals. Below is the script: