Skip to content
All library documents

Configurable Signal Strategy with Trading Windows and Renko-Based Exits

Article TradingView scripts

Summary

This strategy provides configurable long and short entries driven by user-selected signal sources. In single mode, one source must be positive; dual mode requires two sources in the same direction. Entries can be limited to enabled evening, overnight, or New York trading windows, and an optional daily trade counter restricts how many entries are placed. Custom signal exits or session-end exits are supported, with optional alerts and flattening at each window boundary.

Position management uses a configured Renko brick size to set initial or static stop distances, begin trailing after favorable movement, and set a static profit target. Static stop loss overrides the trailing logic. The document is implementation code rather than an evaluated trading method: it reports no backtest results or performance evidence, and the entry sources are user supplied. The brick-size logic depends on matching the chart’s Renko configuration, while session handling and daily counting depend on the script’s chosen time conventions.

Key ideas

  • Long and short entries depend on one or two user-selected sources being positive.
  • Optional New York time windows restrict entries and can trigger position closure at their ends.
  • A daily counter can cap entries, and custom exit sources are also available.
  • Stops and targets are expressed in configured Renko brick units, with static stop loss overriding trailing stops.
  • The document supplies no performance evidence, and its signals must come from elsewhere.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.