PROTECTED SOURCE SCRIPT

ADIL_TREND

93
// ===== 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.

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.