This script can be used for starting a position entry either it is long or short at any time by using alerts. You need to setup your long and short alerts than pause them. When you decide to enter a position, simply run the alert you are willing to open a trade either long or short from the alarms control panel. The script immediately send the alert message to bot via webhook. The close price must be greather than 0.0000000000001 to open a position. Dont forget to turn off the alarm after entering the position. Or it will keep sending the alert message each candle.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.