Please include the plotshape function to have a visual on when alerts fire.
Please add either of the 5 options in your script and change the license ID to your preassigned ID.
Option 1: Basic (only risk paramter, static)
Option 2: Basic (only SL and risk paramters, static)
Option 3: Basic (SL, TP and risk paramters, static)
Option 4: Intermediate (dynamic SL and static risk)
Option 5: Intermediate (dynamic SL and TP, static risk)
2) Added Option 9: Sending multiple alerts when conditons are met
Added Option 0 – hardcoded symbol
Start your 7-day free trial now @ https://www.pineconnector.com/ Credit card not required.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.