PROTECTED SOURCE SCRIPT
ADIL_TREND

// ===== NOTES =====
// - I interpreted the cover confirmation rule as symmetric to buy (confirm by HIGH > critical high within next N bars). If you intended a different rule (your message had an ambiguous line), tell me and I'll adjust.
// - Exits/covers are only confirmed when the corresponding position is open (inLong/inShort).
// - A pending critical will not be recreated while it's active; also you won't generate new buy/short pending when already in that position.
// - I interpreted the cover confirmation rule as symmetric to buy (confirm by HIGH > critical high within next N bars). If you intended a different rule (your message had an ambiguous line), tell me and I'll adjust.
// - Exits/covers are only confirmed when the corresponding position is open (inLong/inShort).
// - A pending critical will not be recreated while it's active; also you won't generate new buy/short pending when already in that position.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
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.