@processingclouds thank you, it solved my issue. I have another question, let say the script is for Long position only. 1st signal triggered for entry, then 2nd signal is come but higher than the entry price, then 3rd signal that lower than entry price is triggered. How can we prevent the 2nd signal...