The Most Comprehensive Trading Platform with Commercial Open Source

Introducing M4 WPF Edition... Our completely new, 100% managed .NET trading application framework.

M4 WPF is a brand new financial application, built from the ground up with C# and WPF for high-performance trading applications.

With M4 WPF and our MyExchange framework, you can start your own forex, equities, or futures brokerage, offer your own educational software, create a stock market game, and much more.

The M4 trading platform is a professional trading application, featuring real-time quote screens, charting, portfolio tracking, auto-trading, scripting, expert advisors, stock scanning, alerts, and other advanced features.

What you should know:

1. Buying a readymade, custom-built trading platform is expensive.

2. Building a trading platform from scratch can be even more expensive.

3. Leasing a trading platform creates high, and often inescapable, switching costs, not to mention, never-ending royalty payments.

4. It is limiting and dangerous to be denied access to your trading platform source code.

5. However, using free, open-source code is even more dangerous (see our document).

Brokerages, perhaps you are paying for a platform that you don't own. Or, are you concerned your competitors are releasing new versions of their platform so rapidly you can't keep up?

Traders, perhaps you are frustrated with the lack of flexibility and support with your existing, off-the-shelf trading software. Are its limited features inadequate for your trading style? Are they holding you back?

M4 Screenshots

Buy vs. Build

Are you paying for a subscription to a platform you don't own? Are you worried there are critical software problems you can't solve because you don't have the source code?

Are you worried about the associated risk, time, and money it takes to build a trading platform from scratch?

M4 WPF is a white-label trading application which comes with programming examples. The end product is malleable and can be rebranded as your own application.

What's New in M4 WPF?

M4 WPF now supports language globalization and localization, and it uses standard localization techniques for WPF applications.

M4 WPF uses our all-new SuperWebSocket Data Server to retrieve historical and real-time market data from a centralized location on your server. Our data server uses hot-swappable data provider plugins to propagate data for your clients. It allows adding new data providers easily without the hassle of changing the platform's source code.

Adding broker APIs is now simplified. Our new IBroker interface provides plug-in trading functionality for brokerage APIs. It provides all the necessary methods to support advanced trading: various order types, stop loss orders, take profit support, time in force support, etc.

IBroker was designed to support multiple brokers. To add a new broker, simply implement IBroker and write code from your broker's internal types to the IBroker types (e.g. the Order class).

All GUI controls support the new broker without changing the code.

M4 WPF is highly optimized to only repaint graphical objects in StockChartX when needed, and it uses double buffering for super high performance.

All compute-bound work is executed in non-UI threads (e.g. calculating indicators).

The platform uses the MVVM design pattern to separate business objects from views.

M4 WPF now supports C# scripting

Build custom scripts, indicators, and expert advisors, using C# programming language with MQL-like functionality. Advantages of using C#:

  • Script Performance (Native Language Execution Performance)
  • Use Functionality of .NET Framework 4.0 (Base Class Library and Framework Class Library)
  • One of the Most Powerful and Convenient Programming Languages in the World.

M4 WPF includes a new, built-in code editor with syntax highlight and IntelliSense support.

End users can now write their own technical indicators and expert advisors using the MQL friendly, C# based scripting language.

M4 WPF uses an extremely well written, compact code design, which provides for a minimal learning curve and simple maintenance.

M4 is also extremely secure with built-in encryption functions.

MVVM Design Pattern

Advantages of MVVM:

  • Change Business Models Without Changing Views
  • Use Microsoft Blend Design Tool for Themes
  • No Duplicated Code to Interact with Views
  • Testability

MVVM is native technology for WPF and it is therefore fully supported (e.g. binding, styles, and templates).

M4 WPF uses WPF as the core GUI technology. WPF is more customizable than Windows Forms. Themes and custom controls are much easier to implement with WPF through XAML.

WPF C# Programming Language

The M4 Trading Platform


The front-end user interface is available in C#, which offers a familiar setting for experienced .NET programmers. The CPU-intensive back-end, however, is written in C++ for the best possible performance. Back-end code includes charting features, technical analysis, and a scripting language.


Everything about M4 is completely customizable. All windows, menus, toolbars, charts, and features can be modified, enhanced, or removed with ease. Because you are provided with several programming examples and developer documentation, you can make your own modifications, or you can hire developers to code to your specifications.

M4 features multi-timeframe charts, separate windows for charts (to support multiple monitors), auto-trading capabilities, a trend cycle identifier, and more.

Modulus M4 Case Study - WhenToTrade Cycles and Genetic Algorithm (GA) Platform (PDF)

Any Brokerage - Any Data Feed

M4 can be customized to work with any brokerage or data feed. You can connect the software to eSignal, Interactive Brokers, MB Trading, TD Ameritrade, FXCM, GAIN Capital, Oanda, or any other API. Each API integration requires only 20 to 40 hours of customization work.

High Performance

All CPU-intensive processes in M4 are asynchronous, taking full advantage of multi-core processors. Data loading, neural network training, expert advisor processing, and other features make full use of asynchronous programming design.

We also make it easy to add custom asynchronous features through our AsyncProcess template class.

Why M4?

  • Most companies should prefer buying to building: if you build your own product, there's an unacceptable risk. What if the end result is a failure?
  • M4 saves thousands of hours in development time. This translates to faster time to market, lower costs, and a higher ROI.
  • M4 offers full support. Your software developers will receive technical support, setup and training, source code updates, and helpful advice throughout the duration of your source code subscription.
  • Perhaps most importantly, you can earn substantial revenue with M4 by enrolling in our Value Added Reseller program.

Modulus Source Code License

The Modulus Source Code License includes approximately three million lines of source code, documentation, and example projects, with a perpetual license, including source code updates, for the following products: TA-SDK C++, C#, Java, JS, VB, TradeScript C++ and C#, StockChartX C++, C#, JS, Java, Obj C, Neural Trader C++, Evo2 C#, PatternLogic C#, MyExchange C#, SuperWebSocket Data Server C#, RMD Server C++, M4 WinForm C#, M4 WPF C#, M4 Forex HTML5, M4 Standard HTML5, M4 iOS Obj C, M4 Mac Obj C, M4 Android Java and more. Most products are provided with complete source code. Support and consulting services available separately.

Schedule Demo

StockChartX Charting Engine

We asked more than 1,200 traders which charting features and technical indicators they wanted in StockChartX. There were lots of valuable feature requests, and we added them all.

StockChartX features real-time, tick-by-tick charting with High-Low-Close bars, Open-High-Low-Close bars, 2D & 3D Candlestick charts, Renko, Kagi, Three Line Break, Point & Figure, Candle-Volume, Equi-Volume, Shaded Equi-Volume, Heikin Ashi Candlesticks, Darvas Boxes and other price styles.

You can chart real-time market data; insert buy, sell, or exit symbols; insert text, trend lines, custom images, multiple indicators, and overlay indicators (share scales); display charts with semi-log or linear scaling; print charts; save charts as images; save/load charts as binary files and more.

StockChartX is the original C++ charting library, used by over 3,000,000 traders.

Technical Analysis Indicators

M4 features over 80 popular technical indicators which can be customized with user-defined parameters. Our technical indicators have been validated by their authors whenever possible, so you can be sure the calculations are correct. That's why our technical indicator library has won numerous awards by Futures magazine and Stocks & Commodities magazine. View a complete list of indicators here.


  • Source Code to the Entire Trading Platform
  • Source Code to other Components, Including Charting, Technical Indicators and more.
  • Our SuperWebSocket Data Server
  • Our MyExchange Exchange Engine
  • An Administrator for Trial Keys
  • Account Reporting
  • Instant Messaging
  • Mobile Charting Interface
  • And much, much more!
WPF C# Trading Application Source Code

Developer Support

We provide developer setup and training via desktop sharing, so you can run the M4 platform immediately after your license is purchased. Technical support and source code updates are provided for one year and may be renewed. Contact us to get started today.