MouseFlex is a NinjaTrader 8 Desktop addon that makes the mouse work like it does on TradingView: the wheel zooms, the price axis zooms around price, and you can drag the chart freely in both directions.
It draws nothing on the chart and has no settings. All values are fixed to feel like TradingView. It works in every panel of the chart, each panel on its own scale.
Bar spacing and fixed/auto scale are not part of the official NinjaScript API. MouseFlex reaches them through reflection, so it always compiles, but a future NinjaTrader update may switch some features off. Messages appear in the NinjaScript Output window.
Instructions for use & setup notes
Step 1 — Put the file in the Indicators folder
1. Save MouseFlex.cs somewhere you can find it, for example your Downloads folder.
2. Open File Explorer and go to DocumentsNinjaTrader 8inCustomIndicators.
3. Copy MouseFlex.cs into that folder itself, not into a subfolder.
Step 2 — Compile
1. In the NinjaTrader Control Center, open New → NinjaScript Editor.
2. Press F5. NinjaTrader compiles all scripts; this takes a few seconds.
3. Check the bottom of the editor: no red lines means it compiled. Red lines? Copy them before you go on.
Step 3 — Restart NinjaTrader
1. Close NinjaTrader completely (File → Exit).
2. Start it again.
This restart matters on Windows with Smart App Control on: it blocks a freshly compiled script until NinjaTrader restarts. The Log tab then shows "Unable to load custom assembly … blocked by an application control policy".
Step 4 — Add MouseFlex to a chart
1. Open a chart and press Ctrl+I (or right-click the chart → Indicators…).
2. Find MouseFlex in the list on the left and double-click it, so it appears under the active indicators on the right.
3. Click OK. There are no settings to fill in.
4. Optional: in the same window, use Template → Save as default, so every new chart gets MouseFlex automatically.
Step 5 — Check that it runs
1. Open New → NinjaScript Output. It should say MouseFlex v1.4.1 loaded.
2. Scroll the mouse wheel over the chart: the candles should get wider or narrower.
3. Set NinjaTrader's own crosshair to Pointer (the middle mouse button cycles the modes), so it does not get in the way of dragging.
| Created By | VinzZ |
| NinjaTrader Version | 8 |
| File Size | 5.0 KB |
| Create Date | 11/23/2026 |
| # of Downloads |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.