🌸 SPRING SALE 🌸 Get 35% OFF with code: SPRINGSALE – Valid until April 22, 2025

Precision Trading Insights with Smart Institutional Order Flow

Need for Speed – Optimize Like a Pro

Performance Settings

This indicator allows you to balance its computational load against the depth of your analysis. The number of analyzed candles is the main factor: the more candles you analyze, the heavier the workload.

Important:

  • TradingView imposes a limit on the number of lines that can be drawn per script (per timeframe). If you enable multiple timeframes (MTF), all of them share this same pool of lines.
  • Beyond a certain number of candles, going further back in time is often not that useful. For example, 1000 daily candles already cover almost three years.

When nothing is drawn, it usually means you’ve hit TradingView’s limits. In that case, either drop down a performance level or disable some indicator features.

Note on max_lines

You can set the max_lines variable in the indicator’s settings. The default value of 22 might be too high if you, for example, enable 38 timeframes—this can push you past 500 lines. In practice, higher timeframes often yield fewer order blocks, so exceeding 500 lines in total usually isn’t an issue. If you do want more lines for a single timeframe, switch to single-timeframe mode or turn off some timeframes, then increase max_lines. Disabling “Mitigated OBs” also frees up extra lines for active Order and Breaker Blocks.

Optimize your performance settings

Performance Levels vs. Number of Candles

Hint: In multi-timeframe mode, num_lines is spread across all chosen timeframes.
 

Tips for Choosing the Right Setting

  • Lower timeframes usually work better at moderate levels, so the indicator remains responsive.
  • Long-term analysis on higher timeframes can use higher settings, but you might want to disable unneeded features to avoid hitting line limits.
  • Experimentation is key—if your chart remains empty, take a step down.

An example of performance setting “low”

An example of performance setting “high”

Why is there a “will never work” performance option?

TradingView’s computational limits may improve in future updates, allowing more robust processing capabilities. Until then, the indicator is optimized to extract the maximum available performance. So if one day there is a performance upgrade in Tradingview, the option could be useful for testing. 🙂

Pro Tip:

Ultimately, trial and error is your best approach to determine the optimal settings for your specific trading style and needs.

What to do if the IOF Pro suddenly stops working and displays nothing?

Since programs written in Pine Script are executed in the TradingView cloud, it can happen that during peak times, the available computing power is exhausted, and the indicator suddenly stops displaying data. If this occurs, you should reduce the performance level.

Pro Tip:

It might also help to restart TradingView, as you may be assigned a different session and potentially end up on a less overloaded server in the cloud.