Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.
Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.

Automated Strategies User Manuels & Setup

Please read user manual for our products before utalizing them

Setup
The Monarch
Eval Edge
P3
P4
New to Algorithims?

‍

Step 1 – Download Your Strategy

After completing your purchase, download the strategy .zip file from your Market Monarch account or the download link provided in your purchase email.

Save the file somewhere easy to find, such as your Downloads folder.

Do not unzip or extract the file. NinjaTrader imports the ZIP file directly.

Step 2 – Open NinjaTrader 8

Launch NinjaTrader 8 and allow the platform to fully load until the Control Center appears.

Step 3 – Import the Strategy

  1. Click Tools on the Control Center.
  2. Select Import → NinjaScript Add-On...
  3. Browse to the downloaded .zip file.
  4. Select the file and click Open.
  5. Click Yes if NinjaTrader asks for confirmation.

The platform will now compile the strategy. This process may take several seconds depending on your computer.

If the import is successful, NinjaTrader will display an Import Successful message.

Step 4 – Connect to Your Brokerage or Simulation Account

Before running an automated strategy, you must connect to an account.

From the Control Center, click Connections and choose the account you wish to use.

Examples include:

  • Sim101 (Simulation)
  • NinjaTrader Brokerage
  • Tradovate
  • Rithmic
  • Interactive Brokers
  • Other supported broker connections

Wait until the connection indicator turns green, confirming you are connected to the market.

Step 5 – Open a Chart

From the Control Center:

New → Chart

Select:

  • Your trading instrument (Example: NQ, MNQ, ES, MES)
  • Contract month
  • Timeframe required by the strategy

Click OK to open the chart.

Important: Always use the chart timeframe specified in the product documentation. Running the strategy on an unsupported timeframe may produce unexpected results.

Step 6 – Verify Historical Data

Allow the chart to load enough historical data before enabling the strategy.

Many automated strategies require historical bars to calculate indicators before they begin trading.

Wait until the chart has completely finished loading.

Step 7 – Apply the Strategy

Right-click anywhere on the chart.

Select:

Strategies...

Locate your Market Monarch strategy from the list.

Select it and click Add (or double-click the strategy name).

The strategy settings window will appear.

Step 8 – Configure Your Settings

Before enabling the strategy, review every setting carefully.

Common settings include:

  • Position Size (Quantity)
  • Stop Loss
  • Profit Target
  • Trading Session
  • Maximum Daily Loss
  • Maximum Trades Per Day
  • Entry Filters
  • Indicator Parameters
  • Trading Hours
  • News Filters (if applicable)

Adjust these settings according to your trading plan.

Step 9 – Select Your Trading Account

Within the strategy settings, locate the Account dropdown.

Choose the account you want the strategy to trade on.

Examples:

  • Sim101 (Recommended)
  • Your Live Brokerage Account

Always double-check that the correct account is selected before enabling the strategy.

Step 10 – Enable the Strategy

After reviewing all settings:

  • Check the Enabled box.
  • Click Apply.
  • Click OK.

Your strategy is now active.

The strategy will continuously monitor the market and automatically submit orders whenever its programmed conditions are met.

Step 11 – Monitor the Strategy

Even though the strategy is automated, you should continue monitoring it throughout the trading session.

Regularly check:

  • Strategy performance
  • Open positions
  • Working orders
  • Connection status
  • Platform messages
  • Account balance

Never leave an automated strategy unattended for extended periods without understanding its behavior.

Step 12 – Stopping the Strategy

To disable the strategy:

  1. Right-click the chart.
  2. Select Strategies...
  3. Uncheck Enabled.
  4. Click Apply.
  5. Click OK.

The strategy will stop submitting new trades.

Depending on your strategy settings, any open positions may remain open or may be closed automatically. Refer to the product documentation for your specific strategy's behavior.

Updating Your Strategy

When a new version is released:

  1. Disable the strategy.
  2. Remove it from any active charts.
  3. Navigate to Tools → Import → NinjaScript Add-On...
  4. Import the updated .zip file.
  5. Reapply the strategy to your chart.
  6. Verify all settings before enabling it again.

Troubleshooting

The strategy does not appear in the list.

  • Confirm the import completed successfully.
  • Restart NinjaTrader.
  • Verify you imported the original ZIP file.

The strategy won't enable.

Make sure:

  • You are connected to a brokerage or simulation account.
  • The chart has finished loading.
  • The correct instrument and timeframe are being used.
  • There are no compilation errors shown in the NinjaScript Editor.

The strategy isn't taking any trades.

Possible reasons include:

  • Entry conditions have not been met.
  • Market is outside the configured trading hours.
  • Position limits have been reached.
  • Daily risk limits have been triggered.
  • Required market conditions are not currently present.

The strategy disables itself.

Review the Log tab in the Control Center for any error messages. Common causes include connection interruptions, invalid order parameters, insufficient account permissions, or rejected orders.

Best Practices

For the best experience using Market Monarch automated strategies:

  • Begin on a Sim101 account until you are comfortable with the strategy.
  • Review all settings before enabling automated trading.
  • Use the recommended instrument and chart timeframe.
  • Keep NinjaTrader updated to the latest stable version.
  • Ensure you have a reliable internet connection during trading hours.
  • Monitor the strategy throughout the trading session.
  • Read the product documentation to understand how the strategy enters, manages, and exits trades

‍

The Monarch: setup guide for NinjaTrader 8

The Monarch is a fully automated portfolio strategy for NinjaTrader 8. It trades the four US equity index futures (S&P 500, Nasdaq-100, Dow and Russell 2000) and manages every entry, exit and position size itself. This guide takes you from installation to a running strategy in about 20 minutes.

1. What you need

  • NinjaTrader 8 (current 8.1 release) on Windows.
  • A futures connection with real-time and historical 1-minute data for CME and CBOT futures, including Micro Bitcoin futures (MBT). The Monarch reads ES, NQ, YM, RTY, ZN and MBT data and places its orders in MES, MNQ, M2K and MYM.
  • A computer that stays on and connected. The Monarch can hold positions overnight and trades from Sunday evening to Friday afternoon, so a Windows VPS is strongly recommended for live trading.
  • Your licence file, TheMonarch.zip, from your purchase email.

The Monarch can hold positions overnight and over weekends. It is not designed for evaluation accounts that require you to be flat every day.

2. Install

  1. Open NinjaTrader 8.
  2. In the Control Center, select Tools > Import > NinjaScript Add-On.
  3. Choose TheMonarch.zip and click Open. Confirm the message that the import succeeded.
  4. Restart NinjaTrader.

3. Set NinjaTrader's market data option

  1. Select Tools > Options > Market data.
  2. Set Merge policy to Merge non back adjusted and click OK.
  3. Connect to your data and brokerage connection (Connections menu).

4. Open the chart

  1. Select New > Chart.
  2. Instrument: the ES front month, for example ES 12-26. Do not use the continuous contract (ES ##-##).
  3. Type Minute, value 1.
  4. Trading hours: CME US Index Futures ETH.
  5. Load data based on Days, days to load 730. The Monarch needs about one year of history before it can place its first trade; two years makes sure it is ready.
  6. Click OK and wait for the chart to finish loading.

5. Add The Monarch to the chart

  1. Right-click the chart and select Strategies.
  2. Under Available, select The Monarch and click Add.
  3. Choose your Account (start with Sim101).
  4. Set the options in step 6, tick Enabled and click OK.

6. Settings

Risk level ($) sets the position size of the whole portfolio. The minimum is 250. levels:

  • 250
  • 500
  • 1,000

Doubling the risk level doubles position sizes, and with them gains and losses. Start at the lower level for your account and increase it only once you are comfortable with how The Monarch behaves.

Contracts: The Monarch always trades micro contracts (MES, MNQ, M2K and MYM). For a larger account, raise the risk level; the strategy simply uses more micros.

Use fixed contracts and Fixed contracts per trade: if you prefer to choose your contract size yourself, turn on Use fixed contracts and enter the number of contracts each trade should use. Risk level is then ignored. The Monarch can hold several trades in the same instrument at once, so your position in one instrument can be a multiple of this number. Leave it off to let The Monarch size every trade from your risk level (recommended).

Max contracts per order: a safety cap per instrument. The default of 50 suits most accounts.

The Monarch selects every data series it needs automatically: the chart's contract month for the index and Treasury futures and the current front month for Micro Bitcoin. There is nothing to set.

7. Check the data

  1. Select New > NinjaScript Output.
  2. Once the chart has loaded, The Monarch prints a data check: every data series with its bar count, then all data series loaded.
  3. If any series shows 0 bars, see Troubleshooting below.

8. Run on simulation first

Run The Monarch on Sim101 for at least two weeks. Check that orders appear in MES, MNQ, M2K and MYM and that positions open and close without errors. To go live, open the Strategies window, set Account to your live account and enable the strategy.

9. Monthly and quarterly maintenance

Every month, in the last week of the month, restart The Monarch so it picks up the new Micro Bitcoin reference contract:

  1. Open the Positions tab. If The Monarch has an open position, wait until it is flat or close it manually.
  2. In the Strategies window, untick Enabled, click OK, then tick Enabled again.

Every quarter (March, June, September, December), on NinjaTrader's roll date for the index futures:

  1. After 4:00 PM ET, close any open position and disable The Monarch.
  2. Change the chart to the new contract month (for example from ES 12-26 to ES 03-27).
  3. Enable The Monarch again. It waits until it is flat before it trades.

NinjaTrader does not roll open positions to the new contract by itself, so always start a roll with the account flat.

10. Backtesting in the Strategy Analyzer

  • Instrument: the ES front month. Type Minute, value 1, trading hours CME US Index Futures ETH.
  • Start date: at least one year before the first date you want to evaluate. The Monarch places no trades until it has that history.
  • Order fill resolution Standard, slippage 1, and your broker's commission template.
  • Use the same risk level and micro setting you plan to trade.

Troubleshooting

  • A series shows 0 bars: check that your connection provides that market (CBOT for ZN, CME crypto for MBT), and download its history under Tools > Historical Data. Make sure the chart uses the current front-month contract. If the series still shows 0 bars, contact support with a copy of the data check.
  • No trades after loading: load more history (at least 400 trading days before the dates you are looking at).
  • "apply The Monarch to an ES 1 Minute chart": the chart is the wrong instrument or bar type. Use ES, 1 Minute.
  • Orders blocked: the order instrument (for example MES) has no data. Check your data subscription and connection, then contact support.
  • Strategy disabled itself: check the Log tab for a rejected order (often insufficient margin or a connection loss), fix the cause, then flatten and re-enable.

Important

Futures trading involves substantial risk of loss and is not suitable for every investor. Past and simulated performance do not guarantee future results. The Monarch places real orders in the account you select; you remain responsible for monitoring the strategy, your connection and your account.

The Monarch is licensed software. Copying, redistributing, decompiling or reverse engineering it is prohibited.

‍

‍

Eval Edge: setup guide for NinjaTrader 8

Eval Edge is a fully automated strategy for NinjaTrader 8 with one job: passing a prop firm evaluation. It was built and tested for the Lucid 50K Flex evaluation ($3,000 profit target, $2,000 max loss checked at the end of the day, 4 NQ). It trades E-mini Nasdaq-100 futures (NQ), at most one position a day, opened at the start of the US session and closed by 4:00 PM ET at the latest. When the evaluation's target is reached, it stops trading by itself. This guide takes you from installation to a running strategy in about 15 minutes.

Read this first

  • Eval Edge is not a profit strategy. It is built around how evaluation rules are measured, not to make money over time. Run continuously on an ordinary account, it loses money.
  • Use it only on an evaluation whose max loss is checked at the end of the day, ideally the Lucid 50K Flex it was built for, bought with the optional daily loss limit turned OFF. Never run it on a funded, live or personal account.
  • Expect some evaluations to fail, and to fail by a lot. Because the max loss is checked only at the day's close, a losing day can end far below the $2,000 line. On a simulated evaluation account that changes nothing you pay: a failed evaluation costs you its fee, and you can start a new one.

What to expect

Simulated on NQ 1-minute data, with every evaluation starting on a different trading day and costs included:

  • About 80% of evaluations passed: 79.7% of those started in 2020–2023 and 79.9% of those started in 2024–2026. In the 2022 bear market, 81.6% passed.
  • A typical pass takes 2 trading days.
  • About 1 in 5 evaluations failed. The average failed evaluation ended about $15,000 below its starting balance. The worst ended $40,000 below.

These are historical simulations, not a promise. Your results can differ, and a run of several failed evaluations in a row is possible.

1. What you need

  • NinjaTrader 8 (current 8.1 release) on Windows.
  • A Lucid Flex evaluation (50K recommended) connected to NinjaTrader 8, bought with the daily loss limit OFF, plus real-time CME data for NQ.
  • A computer that stays on and connected from 9:25 AM to 4:05 PM ET on trading days. A Windows VPS is recommended.
  • Your licence file, EvalEdge.zip, from your purchase email.

2. Install

  1. Open NinjaTrader 8.
  2. In the Control Center, select Tools > Import > NinjaScript Add-On.
  3. Choose EvalEdge.zip and click Open. Confirm the message that the import succeeded.
  4. Restart NinjaTrader.

3. Open the chart

  1. Connect to your evaluation account's connection (Connections menu).
  2. Select New > Chart.
  3. Instrument: the NQ front month, for example NQ 12-26. Use NQ, not MNQ, and not the continuous contract (NQ ##-##).
  4. Type Minute, value 1.
  5. Trading hours: CME US Index Futures ETH.
  6. Load data based on Days, days to load 5. Eval Edge needs no history.
  7. Click OK.

4. Add Eval Edge to the chart

  1. Right-click the chart and select Strategies.
  2. Under Available, select Eval Edge and click Add.
  3. Set Account to your Lucid evaluation account.
  4. Set the options in step 5, tick Enabled and click OK.

5. Settings

  • Evaluation starting balance ($): 50000 (your account size). Eval Edge reads your account balance every morning and measures your progress against this number.
  • Profit target ($), Max loss, end of day ($) and Contracts (NQ): 3000, 2000 and 4. Eval Edge was built and tested for these values, the Lucid 50K Flex. You can enter another account's numbers to see in the Strategy Analyzer how it would have done, but other values were not part of the original test. Never set more contracts than your account's maximum position size. The table below shows simulations with other Lucid Flex sizes, using each account's maximum position size:AccountProfit targetMax lossContracts (NQ)Evaluations passed (simulated, 2020–2026)25K$1,250$1,000282%50K (built for this)$3,000$2,000480%100K$6,000$3,000675%150K$9,000$4,5001077%On larger accounts, failed evaluations are larger too: with 10 NQ the average failed evaluation ended about $33,000 below its starting balance.
  • Largest winning day so far ($): 0 for a new evaluation. If you start part-way through an evaluation that you have traded yourself, enter your largest winning day, so that Eval Edge can respect the 50% consistency rule.
  • Daily loss cap ($, 0 = off): optional. If set, the day's position is closed when it has lost this amount. A cap makes failed evaluations smaller but also makes them more frequent:Daily loss capEvaluations passed (simulated, 2024–2026)Off (recommended)80%$16,00078%$12,00073%$8,00067%$5,00052%
  • I confirm this is an evaluation account: tick it. Eval Edge will not trade a live-connected account until this box is ticked.

6. Your daily routine

  1. Before 9:30 AM ET, make sure NinjaTrader is connected and Eval Edge is enabled on the NQ chart. If it is enabled after 9:35 AM ET, it waits until the next trading day.
  2. Leave it running until 4:05 PM ET. Eval Edge is always flat by 4:00 PM ET, well before Lucid's 4:45 PM ET close-out.
  3. Eval Edge converts every bar's time to New York time internally, so it trades at the same moment wherever you live. Keep your computer's clock correct and NinjaTrader's time zone (Tools > Options > General) set to the zone you are in.
  4. Do not trade the evaluation account yourself while Eval Edge is running, and do not move or cancel its orders.
  5. You can disable Eval Edge in the evening and enable it again the next morning. It picks up your progress from the account balance.

The top-left corner of the chart shows the current status: your evaluation profit, your largest winning day and how much is still needed. On early-close holiday sessions Eval Edge does not trade.

7. When the target is reached

Once your evaluation profit reaches the profit target (by default $3,000) within the consistency rule, Eval Edge shows TARGET REACHED on the chart and in the Output window and places no further trades, even if it stays enabled. Disable it and follow Lucid's steps for your funded account. Do not run Eval Edge on the funded account.

8. Practise on simulation first (optional)

To see Eval Edge work before using an evaluation, run it on Sim101 for a few days. Set Evaluation starting balance to Sim101's current cash value (for example 100000) and tick the confirmation box. Sim101 does not apply Lucid's rules, so treat this only as a check that orders appear and close as described.

9. Backtesting in the Strategy Analyzer

  • Instrument: NQ (the front month). Type Minute, value 1, trading hours CME US Index Futures ETH.
  • Order fill resolution Standard, and your broker's commission template.
  • In the Strategy Analyzer, Eval Edge runs back-to-back evaluations: after each pass or fail, a new one starts the next session. Open New > NinjaScript Output to see each evaluation's result and a summary of how many passed.
  • The Analyzer's own performance report shows the strategy's total profit and loss, which is negative over long periods. That is expected: Eval Edge is measured by evaluations passed, not by profit.

10. Quarterly contract roll

In March, June, September and December, on NinjaTrader's roll date for NQ, after 4:00 PM ET: disable Eval Edge, change the chart to the new contract month (for example from NQ 12-26 to NQ 03-27), and enable it again before the next session.

Troubleshooting

  • "not trading - tick 'I confirm this is an evaluation account'": open the strategy settings and tick the box.
  • "this strategy runs on NQ only" or "use a 1-minute NQ chart": the chart is the wrong instrument or bar type. Use NQ, 1 Minute.
  • "account balance not available": the connection did not report your account balance. Check the connection and that the correct account is selected, then re-enable before 9:30 AM ET the next day.
  • No trade today: Eval Edge was enabled after 9:35 AM ET, it was an early-close session, or the target has already been reached. Check the chart status and the Output window.
  • Strategy disabled itself: check the Log tab for a rejected order (often a position limit, margin or a connection loss), fix the cause, then flatten the account and re-enable.

Important

Futures trading involves substantial risk of loss. Past and simulated performance do not guarantee future results, and passing an evaluation is never guaranteed. Eval Edge is designed for Lucid 50K Flex evaluation rules as published in 2026, with the drawdown checked at the end of the day. If Lucid changes these rules, or measures the drawdown during the day, results will be much worse. Prop firms set their own terms and may restrict trading styles or decline funded accounts and payouts: read your firm's current rules before you buy an evaluation. Eval Edge places real orders in the account you select; you remain responsible for monitoring the strategy, your connection and your account.

Eval Edge is licensed software. Copying, redistributing, decompiling or reverse engineering it is prohibited.

‍

P3: setup guide for NinjaTrader 8

P3 is a fully automated strategy for NinjaTrader 8 that trades the S&P 500 through Micro E-mini S&P 500 futures (MES). It handles every entry and exit itself, trades only during CME futures hours, and is flat by 4:01 PM ET every day. This guide takes you from installation to a running strategy in about 15 minutes.

1. What you need

  • NinjaTrader 8 (current 8.1 release) on Windows.
  • A futures connection with real-time and historical 1-minute data for CME and CBOT futures. P3 reads ES, NQ, YM, RTY and ZN data and places its orders in MES only.
  • A computer that stays on and connected while P3 is enabled. A Windows VPS is recommended for live and evaluation accounts.
  • Your licence file, P3.zip, from your purchase email.

2. Install

  1. Open NinjaTrader 8.
  2. In the Control Center, select Tools > Import > NinjaScript Add-On.
  3. Choose P3.zip and click Open. Confirm the message that the import succeeded.
  4. Restart NinjaTrader.

3. Set NinjaTrader's market data option

  1. Select Tools > Options > Market data.
  2. Set Merge policy to Merge non back adjusted and click OK.
  3. Connect to your data and brokerage connection (Connections menu).

4. Open the chart

  1. Select New > Chart.
  2. Instrument: the ES front month, for example ES 12-26. Do not use the continuous contract (ES ##-##).
  3. Type Minute, value 1.
  4. Trading hours: CME US Index Futures ETH.
  5. Load data based on Days, days to load 730. P3 needs about one year of history before it can place its first trade.
  6. Click OK and wait for the chart to finish loading.

5. Add P3 to the chart

  1. Right-click the chart and select Strategies.
  2. Under Available, select P3 and click Add.
  3. Choose your Account (start with Sim101).
  4. Set the options in step 6, tick Enabled and click OK.

6. Settings

Size sets the position size. Size 1 is the base allocation, with at most 6 MES open at any time. Size 2 doubles every order, and so on.

Use fixed contracts and Fixed contracts per trade: if you prefer to choose your contract size yourself, turn on Use fixed contracts and enter the number of MES each trade should use. Size is then ignored. Up to three trades can be open at once, so your position can reach three times this number. Leave it off to use the base allocation times Size (recommended).

P3 selects every data series it needs automatically, using the chart's contract month. There is nothing to set.

7. Check the data

  1. Select New > NinjaScript Output.
  2. Once the chart has loaded, P3 prints a data check: every data series with its bar count, then all data series loaded.
  3. If any series shows 0 bars, see Troubleshooting below.

8. Run on simulation first

Run P3 on Sim101 for at least two weeks. Check that orders appear in MES and that every position is closed by about 4:01 PM ET. To go live, open the Strategies window, set Account to your live or evaluation account and enable the strategy.

9. Evaluation and funded accounts

  • P3 trades only during CME futures hours and closes every position by about 4:01 PM ET, so it holds nothing overnight or over the weekend.
  • All orders are market orders in a single instrument (MES).
  • Some firms restrict trading around scheduled economic releases. P3 may hold positions at those times, so check your firm's rules.
  • Your firm's daily loss limit and trailing drawdown still apply. P3 does not know your firm's limits, so choose Size accordingly.

10. Quarterly contract roll

In March, June, September and December, on NinjaTrader's roll date for ES:

  1. After 4:01 PM ET, when P3 is flat, disable it.
  2. Change the chart to the new contract month (for example from ES 12-26 to ES 03-27).
  3. Enable P3 again.

11. Backtesting in the Strategy Analyzer

  • Instrument: the ES front month. Type Minute, value 1, trading hours CME US Index Futures ETH.
  • Start date: at least one year before the first date you want to evaluate. P3 places no trades until it has that history.
  • Order fill resolution Standard, slippage 1, and your broker's commission template.

Troubleshooting

  • A series shows 0 bars: check that your connection provides that market (CBOT for ZN), and download its history under Tools > Historical Data. Make sure the chart uses the current front-month contract. If the series still shows 0 bars, contact support with a copy of the data check.
  • No trades after loading: load more history (at least 400 trading days before the dates you are looking at). P3 is selective and can go several days without a trade.
  • "apply P3 to an ES 1 Minute chart": the chart is the wrong instrument or bar type. Use ES, 1 Minute.
  • Orders blocked: MES has no data. Check your data subscription and connection, then contact support.
  • Strategy disabled itself: check the Log tab for a rejected order (often a loss limit, insufficient margin or a connection loss), fix the cause, then flatten and re-enable.

Important

Futures trading involves substantial risk of loss and is not suitable for every investor. Past and simulated performance do not guarantee future results, and passing an evaluation is never guaranteed. P3 places real orders in the account you select; you remain responsible for monitoring the strategy, your connection and your account.

P3 is licensed software. Copying, redistributing, decompiling or reverse engineering it is prohibited.

‍

‍

P4: setup guide for NinjaTrader 8

P4 is a fully automated strategy for NinjaTrader 8 that trades the Nasdaq-100 through Micro E-mini Nasdaq-100 futures (MNQ). It handles every entry and exit itself, trades only during CME futures hours, and is flat by 4:01 PM ET every day. This guide takes you from installation to a running strategy in about 15 minutes.

1. What you need

  • NinjaTrader 8 (current 8.1 release) on Windows.
  • A futures connection with real-time and historical 1-minute data for CME futures. P4 reads NQ and MNQ data and places its orders in MNQ only.
  • A computer that stays on and connected while P4 is enabled. A Windows VPS is recommended for live and evaluation accounts.
  • Your licence file, P4.zip, from your purchase email.

2. Install

  1. Open NinjaTrader 8.
  2. In the Control Center, select Tools > Import > NinjaScript Add-On.
  3. Choose P4.zip and click Open. Confirm the message that the import succeeded.
  4. Restart NinjaTrader.

3. Set NinjaTrader's market data option

  1. Select Tools > Options > Market data.
  2. Set Merge policy to Merge non back adjusted and click OK.
  3. Connect to your data and brokerage connection (Connections menu).

4. Open the chart

  1. Select New > Chart.
  2. Instrument: the NQ front month, for example NQ 12-26. Do not use the continuous contract (NQ ##-##).
  3. Type Minute, value 1.
  4. Trading hours: CME US Index Futures ETH.
  5. Load data based on Days, days to load 730. P4 needs about one year of history before it can place its first trade.
  6. Click OK and wait for the chart to finish loading.

5. Add P4 to the chart

  1. Right-click the chart and select Strategies.
  2. Under Available, select P4 and click Add.
  3. Choose your Account (start with Sim101).
  4. Set the options in step 6, tick Enabled and click OK.

6. Settings

Size sets the position size. Size 1 is the base allocation, with at most 6 MNQ open at any time. Size 2 doubles every order, and so on.

P4 is built to capture the market's largest moves. It can go flat or quiet for several months between them. Size it so that you can hold it through those periods.

Use fixed contracts and Fixed contracts per trade: if you prefer to choose your contract size yourself, turn on Use fixed contracts and enter the number of MNQ each trade should use. Size is then ignored. Up to three trades can be open at once, so your position can reach three times this number. Leave it off to use the base allocation times Size (recommended).

P4 selects its data series automatically, using the chart's contract month, and has a built-in market calendar through January 2028. Install product updates when they are released.

7. Check the data

  1. Select New > NinjaScript Output.
  2. Once the chart has loaded, P4 prints a data check: both data series with their bar counts, then all data series loaded.
  3. If a series shows 0 bars, see Troubleshooting below.

8. Run on simulation first

Run P4 on Sim101 for at least two weeks. Check that orders appear in MNQ and that every position is closed by about 4:01 PM ET. To go live, open the Strategies window, set Account to your live or evaluation account and enable the strategy.

9. Evaluation and funded accounts

  • P4 trades only during CME futures hours and closes every position by about 4:01 PM ET, so it holds nothing overnight or over the weekend.
  • All orders are market orders in a single instrument (MNQ).
  • Some firms restrict trading around scheduled economic releases. P4 may hold positions at those times, so check your firm's rules.
  • Some firms apply a consistency rule (no single day may account for more than a set share of total profit). Because P4 earns much of its profit on a small number of large days, check this rule before using P4 on such an account.
  • Your firm's daily loss limit and trailing drawdown still apply. P4 does not know your firm's limits, so choose Size accordingly.

10. Quarterly contract roll

In March, June, September and December, on NinjaTrader's roll date for NQ:

  1. After 4:01 PM ET, when P4 is flat, disable it.
  2. Change the chart to the new contract month (for example from NQ 12-26 to NQ 03-27).
  3. Enable P4 again.

11. Backtesting in the Strategy Analyzer

  • Instrument: the NQ front month. Type Minute, value 1, trading hours CME US Index Futures ETH.
  • Start date: at least one year before the first date you want to evaluate. P4 places no trades until it has that history.
  • Order fill resolution Standard, slippage 1, and your broker's commission template.

Troubleshooting

  • A series shows 0 bars: check that your connection provides that market, and download its history under Tools > Historical Data. Make sure the chart uses the current front-month contract. If the series still shows 0 bars, contact support with a copy of the data check.
  • No trades after loading: load more history (at least 400 trading days before the dates you are looking at). P4 is selective and can go days or weeks without a trade.
  • "apply P4 to an NQ 1 Minute chart": the chart is the wrong instrument or bar type. Use NQ, 1 Minute.
  • Orders blocked: MNQ has no data. Check your data subscription and connection, then contact support.
  • "built-in calendar ends": install the latest P4 update.
  • Strategy disabled itself: check the Log tab for a rejected order (often a loss limit, insufficient margin or a connection loss), fix the cause, then flatten and re-enable.

Important

Futures trading involves substantial risk of loss and is not suitable for every investor. Past and simulated performance do not guarantee future results, and passing an evaluation is never guaranteed. P4 places real orders in the account you select; you remain responsible for monitoring the strategy, your connection and your account.

P4 is licensed software. Copying, redistributing, decompiling or reverse engineering it is prohibited.

‍

‍

Algorithmic Trading: Foundational Knowledge Points

1. Every Algorithm Type Has a "Home" Market Condition

No algorithm works everywhere, all the time. The core families:

  • Trend-following / momentum (moving average crossovers, breakout systems, momentum indicators): thrives in sustained directional moves. Struggles badly in choppy, range-bound markets — you get whipsawed, entering trends that immediately reverse.
  • Mean-reversion (RSI extremes, Bollinger Band fades, statistical arbitrage): thrives in range-bound, low-trend, high-noise conditions. Gets destroyed in strong trends — you keep fading a move that never reverts.
  • Breakout systems: need volatility contraction followed by expansion (e.g., low-volatility squeeze before a move). Perform poorly in "false breakout" markets with lots of fakeouts.
  • Market-making / scalping: need liquidity and tight, stable spreads, and tend to break down in high-volatility or thin/illiquid conditions where spreads widen and adverse selection increases.
  • Carry / seasonality strategies: depend on structural conditions (interest rate differentials, seasonal supply-demand patterns) that can persist for years then disappear.

Takeaway: before deploying a strategy, know what regime it's built for, and have some way (even a simple volatility or trend-strength filter) to recognize when that regime is present or absent.

2. Market Conditions Are Not Static — Yesterday's Edge Can Decay

A strategy with parameter set A that worked well in 2025 is not guaranteed to work with the same parameters in 2026. Reasons this happens:

  • Volatility regime shifts — average daily range, ATR, and implied volatility change over time (e.g., a low-vol grind market vs. a high-vol news-driven market).
  • Liquidity and participant changes — more/fewer algos competing for the same edge, changes in retail vs. institutional flow, new market structure (e.g., 0DTE options flow changing index behavior).
  • Macro regime changes — rate cycles, inflation regimes, central bank policy shifts alter correlations and typical price behavior.
  • Structural/seasonal changes — a commodity's supply chain, a company's business model, or an index's sector composition can shift.
  • Alpha decay from crowding — if enough participants find and trade the same edge, it gets arbitraged away or reduced.

Practical implication: parameters aren't "set and forget." They need periodic review, and often need to be re-optimized or re-fit to current conditions — not necessarily because the underlying logic is wrong, but because the market's statistical properties (volatility, mean reversion speed, trend persistence) have moved.

A common practice to manage this is walk-forward testing: repeatedly optimize on a trailing window of data, then test on the next unseen period, rolling forward through time. This simulates how a strategy would have needed to adapt in real time, rather than fitting one static parameter set to years of history at once (which risks overfitting).

3. Parameter Changes (Take Profit / Stop Loss) Reshape the Return Distribution, Not Just the P&L

Adjusting TP/SL doesn't just make you "more or less profitable" — it changes the shape of your results:

  • Tighter stop-loss → typically lower win rate (you get stopped out by normal noise more often) but smaller average loss size.
  • Wider stop-loss → typically higher win rate (more room for a trade to work out) but larger average loss size when it does lose.
  • Closer take-profit → typically higher win rate, smaller average win size (you bank profits before the full move plays out).
  • Farther take-profit → typically lower win rate (price often doesn't reach the target), but larger average win size on trades that do hit.

This is why win rate alone is a misleading metric. A strategy with a 30% win rate can be very profitable if average win size is several multiples of average loss size. A strategy with a 70% win rate can lose money if average losses are large relative to average wins.

The key relationship is expectancy:

Expectancy = (Win Rate × Avg Win) − (Loss Rate × Avg Loss)

Changing TP/SL moves win rate and avg win/loss in opposite directions — so the real question is whether a given adjustment improves expectancy (and other factors like drawdown and trade frequency), not whether it improves win rate in isolation. It's common to grid-search or walk-forward test TP/SL combinations rather than assume "tighter stop = safer" or "higher win rate = better."

Other second-order effects worth tracking when you adjust TP/SL:

  • Trade frequency (tighter TP = faster turnover, more trades, more transaction costs)
  • Max drawdown (wider stops = bigger single-trade drawdowns)
  • Risk-adjusted return (Sharpe/Sortino), not just raw P&L

4. Generalizing One Algorithm Across Timeframes / Markets Requires Parameter Adaptation

A single algorithmic logic (e.g., "buy when price breaks above the N-period high") can often be applied across multiple timeframes or instruments, but the parameters usually cannot be copy-pasted — each market/timeframe has different statistical characteristics:

  • Volatility scale differs — a 20-pip stop on a low-volatility forex pair is very different from a 20-pip stop on a high-volatility one. Many practitioners normalize risk parameters using ATR (Average True Range) or historical volatility rather than fixed point/tick values, so the same logical strategy adapts its stop/target distance to each instrument's typical movement.
  • Timeframe changes noise vs. signal ratio — a lookback period of "14" on a 5-minute chart behaves very differently than "14" on a daily chart in terms of how much noise vs. real structure it captures. Parameters (lookback lengths, smoothing periods) often need to scale with timeframe.
  • Liquidity/tick size/session structure differ by market — commodities, forex, and equities each have different trading hours, typical spread costs, and tick sizes, which affect minimum viable stop distances and slippage assumptions.
  • Correlation and behavior differ — e.g., a mean-reversion strategy tuned for a range-bound commodity may need very different parameters (or may not work at all) on a trending currency pair.

Practical approach: treat the rules/logic as portable, but re-optimize or re-scale the parameters (stop distance, lookback length, thresholds) per market and per timeframe — often using volatility-normalized units instead of fixed values so the strategy adapts automatically.

5. Related Concepts Worth Knowing Early

  • Overfitting / curve-fitting: optimizing parameters too precisely to historical data so they capture noise rather than a real, repeatable edge. A strategy that looks great on a backtest but has many finely-tuned parameters is a red flag.
  • In-sample vs. out-of-sample testing: optimize on one data period, validate on a separate period the parameters weren't fit to.
  • Transaction costs and slippage: backtests that ignore spread, commissions, and slippage often look far more profitable than live results will be — especially for higher-frequency strategies.
  • Regime filters: some traders add a simple filter (e.g., a trend-strength or volatility measure) to turn a strategy on/off depending on whether current conditions match what it was designed for, rather than running it blindly at all times.
  • Position sizing / risk per trade: independent of TP/SL choice, how much capital is risked per trade has a large effect on drawdown and long-run compounding, and is often a separate lever from the entry/exit logic itself.

These are general educational concepts, not investment advice or a recommendation to trade any specific way. Backtested and historical performance doesn't guarantee future results.

‍