Minimum In Period (Min): Complete Guide for Algorithmic Trading

Minimum In Period — known as Min in Arrow Algo — is the companion block to Max. Where Max finds the highest value in a rolling window, Min finds the lowest. On every new candle, it scans the most recent N periods and returns the single smallest value it encounters, making it the foundation of Donchian Channel lower bands, dynamic support levels, and breakdown detection strategies.

What Is the Minimum In Period Block?

Min is a lookback block that outputs the lowest value of any input series over a defined rolling window. You set the period length, connect any numeric series — price, ATR, RSI, volume — and on each candle the block returns the smallest value seen across those N periods.

Like Max, Min produces a reference level rather than a buy or sell signal. Your strategy compares current values against that level to determine whether conditions are met. The most common use: when current price drops below the Min output, price is printing a new N-period low — a standard entry signal for breakdown and short strategies, and a common exit trigger for long positions.

Min and Max are typically used together. Set both to the same period and you have a Donchian Channel: Max defines the upper band, Min defines the lower band. Long entries fire when price breaks above Max. Long exits — or short entries — fire when price breaks below Min.

What Does Min Actually Calculate?

On each candle, Min takes the N most recent values of the input series and returns the smallest. The window rolls forward with every new candle, always covering the most recent N periods. There is no smoothing, no weighting, and no lag introduced by the calculation itself.

Two properties are worth understanding before building with Min:

  • Immediate response to new lows: When the input sets a new low within the window, the Min output updates on that candle with no delay.
  • Step-up effect: When the lowest value in the window ages out — when it drops off the back of the lookback period — the Min output rises to reflect the next lowest value remaining. This is the inverse of Max’s step-down effect, and it can create sudden moves in the output level that are not driven by current price action.

The step-up effect is the main source of confusion with Min. If a significant low occurred 50 candles ago and you are using a 50-period Min, the output will step up on the candle when that low rolls out of the window. Design your strategy to handle this, particularly if Min is used as a stop level or exit trigger.

How to Read the Minimum In Period Output

Min produces a level — the N-period low of whatever series you connected. The two most common ways to use it:

Breakdown detection: When current price crosses below the Min output, price has set a new N-period low. This is a standard entry signal for short strategies and breakdown systems. Connect the Min output and the current price to a Crossover block (with inputs reversed — price to Input B, Min to Input A) to detect when price falls through the rolling low.

Dynamic stop placement: Place a stop loss at the N-period low rather than a fixed distance from entry. This anchors your risk to actual recent price structure rather than an arbitrary number. If the market has been quiet and the recent low is close, your stop is tight. If the market has been volatile, the recent low is further away — automatically giving the trade more room.

Support identification: When price repeatedly approaches the Min level without crossing it, that level is acting as support. Systematic strategies can use Min as a dynamic floor — only entering long positions when price is comfortably above it.

What Are the Best Minimum In Period Trading Strategies?

1. Donchian Channel Breakout System

Pair Min with Max, both set to the same period (20 or 55 candles are standard). Long entries fire when price breaks above Max. Exits fire when price breaks below Min. This is the complete Turtle Trading logic in two blocks. The Min block handles both the exit from longs and the entry for short positions. It is one of the most thoroughly backtested systematic strategies in existence.

2. Dynamic ATR Stop Loss

Feed the ATR output into a Min block set to 10 or 14 periods. The result is the lowest ATR reading over recent candles — a measure of the quietest volatility the market has seen lately. Use this as a minimum stop distance: your stop must always be at least this far from entry, ensuring you never place a stop so tight it gets clipped by normal market noise.

3. N-Period Low Exit for Long Strategies

Add a Min block to any existing long strategy as an exit trigger. When price closes below the N-period low, the position exits. This acts as a trailing stop anchored to market structure rather than a fixed percentage. It keeps you in trending moves longer while exiting cleanly when the trend breaks down.

Common Min Block Mistakes and How to Avoid Them

Using too short a period: A 5-period Min creates a level that updates constantly. Nearly every minor pullback breaches it, generating frequent exit signals that cut profitable trades short. Use 20 periods or more on most timeframes to give trades room to breathe.

Ignoring the step-up effect: When a significant low rolls out of the window, the Min output rises sharply. If your strategy uses Min as a stop level, this step-up can trigger an exit on a candle where nothing has changed in the current market. Consider routing the Min output through a smoothing block or using a Lag block to reduce sensitivity.

Using Min of close price for a stop on a high-low range: If you are building a stop loss using Min, consider feeding the low price series rather than the close price. Stops that reference candle lows account for intrabar wicks — a closer representation of where genuine support has held.

Running Min and Max with different periods in a Donchian setup: A common mistake is setting Max to 20 periods for entry and Min to 10 periods for exit. The asymmetry creates a faster exit than entry, which can reduce the size of winning trades. Keep periods consistent unless you have a specific reason for the asymmetry and have tested it thoroughly.

Building Min-Based Strategies in Arrow Algo

Arrow Algo’s visual builder makes Min straightforward to connect into any strategy. No code is needed — drag, connect, configure, and backtest.

A complete Donchian Channel setup:

  1. Add a Max block set to your chosen period (e.g. 20). Connect the High price series to the Max input.
  2. Add a Min block set to the same period. Connect the Low price series to the Min input.
  3. Add a Crossover block for the long entry. Connect the current Close to Input A and the Max output to Input B. This fires when price breaks the upper band.
  4. Add a second Crossover block for the exit. Connect the Min output to Input A and the current Close to Input B. This fires when price breaks below the lower band.
  5. Connect the entry Crossover to your long position block and the exit Crossover to your close position block.
  6. Run a backtest across multiple pairs and timeframes. Donchian systems tend to perform differently across trending and ranging environments — test both.

For ATR-based dynamic stops, replace the Low price input on the Min block with the ATR output. Use the resulting level as the minimum distance for your stop loss block.

For the companion block, read our guide on Maximum In Period (Max). Explore all available blocks in the Arrow Algo indicator documentation.

What Are the Key Takeaways?

  • Minimum In Period returns the lowest value of any input series over a rolling N-period window
  • It is a reference level, not a signal — strategies compare current values against it to detect new period lows
  • Most commonly used for breakdown entries, Donchian Channel lower bands, and dynamic stop placement
  • The step-up effect occurs when a significant low rolls out of the window — plan for it in stop-based strategies
  • Use Min of the Low price series (not Close) when building structural stop levels
  • Pair with Max at the same period for a complete Donchian Channel breakout system
  • In Arrow Algo, Min connects to any numeric output and requires no code to build into a full strategy

Disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.

Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who’ve made the switch to systematic trading.

About the Author

Author Bio