Delta Edge : The Evolution of LPMDTBot with Full Documentation

Hello, in this article we’re reviewing the new version of what used to be LPMDTBot. It has been completely rebuilt and rethought from the ground up. After its initial release, results were mixed. Some users saw good performance, others didn’t, and that’s because everyone uses it differently. Different methods, different timeframes. Some traders turn it on, take one or two trades manually, and then shut it down. Others run it from morning to evening without interruption.


With this new version, I’ve tried to accommodate the needs of different types of traders. So let’s get started.

In this article, we’ll walk through the bot, starting with the settings, the chart commands, and what each one does. I’ll also add links to video tutorials once they’re available.
This guide is divided into two usage styles. The first is semi-automatic, which isn’t a formal mode but simply refers to the presence of a trader while the bot is running. The trader adjusts the stop, moves the target to a better position, or closes a trade they don’t like. That’s what I mean by semi-automatic. The second is fully automatic, where you turn the bot on and don’t touch anything until you turn it off.

It is advisable not to use the bot during news


Let’s begin with the bot interface. I’ve numbered all the settings so you can follow along easily.

To view the images more clearly, zoom in using Ctrl and +


Numbers 1 and 2: are for cross trading. This allows orders to be executed on the micro contract. In the settings, you need to enter the contract you want to use for cross trading and check Add Data only if you want to enable it. You can then toggle cross trading on or off using Button 1 on the Chart Trader.


Numbers 3 and 4 are where you set your take profit and stop loss in ticks.


Numbers 5 and 6 are for setting your daily profit and loss limits. The bot will stop executing trades once either threshold is reached.


Number 7 sets the tick value used by the BE+ button on the Chart Trader. When pressed, it will move your stop loss to breakeven plus the number of ticks you’ve set.


Number 8 activates the trailing stop, which is also available as Button 8 on the chart.


Number 9 is the trail frequency. In this case, it’s set to 80 ticks, meaning that when price moves 80 ticks in profit, your stop will also move 80 ticks. In our setup, the stop loss is also set to 80 ticks. This way, as soon as the stop is covered, it moves to breakeven. This is the only method I’ve found to use trailing in a fully automatic way that doesn’t hurt performance but actually improves it.


Numbers 10 and 11 are the core of the bot. These are the delta values required for trade entries. I won’t go into detail here, but if you want to change them, you’ll need to run multiple backtests to see if you’re actually improving the bot’s performance. The same goes for all other settings.


Number 12 is where you set the position size for your trades.


Number 13 activates AutoPilot, also available as Button 13 on the chart. AutoPilot will automatically execute the Delta Presets (numbers 16 to 29) based on the time windows defined in each preset (numbers 21, 22, 28, 29).


Number 14, also available as Button 14 on the chart, activates BestPrice. This is a key feature in the new version, designed especially for automatic use. Of course, every feature can also be used in semi-automatic mode with you managing and monitoring everything.
What does BestPrice do and why is it important? This mode helps reduce drawdown and increase winrate. When a trade trigger occurs, instead of entering with a market order like the bot normally does, it places a limit order at 50% of the range of the trigger candle. Since the bot works on reversals—whether it’s a trend reversal or the end of a pullback, this allows us to enter at a better price, closer to the actual turning point. If the order isn’t filled within two candles, it’s automatically canceled. We’ll look at examples of this later and how this mode affects performance in backtests.


Number 15, both in the settings and on the chart as Selector 15, allows you to manually choose one of the four available presets.

Number 16-29 From this point onward, we have Delta Presets 1, 2, and 3, where you define the settings, position size, and time windows for each preset. You can then select which preset to use manually via Selector 15 on the chart, or if AutoPilot is active, it will automatically switch between presets based on the time windows you’ve configured.


Numbers 30 and 31 are the buttons to pause the strategy (Standby/Start) and to flatten, which closes the trade and cancels all orders.


Number 32 displays a summary of the settings currently in use, including position size, profit target, and stop loss.


On the chart, you can see a trade executed with all modes turned off. Note the entry price: 23781.

In the next screenshot

all modes are activated—AutoPilot, Trailing, and BestPrice. The trade is the same, but with BestPrice mode active, a buy limit order was placed at the midpoint of the trigger candle’s range. On the left, I’ve included the settings that weren’t visible in the first screenshot.  Delta Preset 3 and the rest of the standard settings. The only important thing here is that “Fill limit orders on touch” must be enabled.


Moving to the next screenshot.

you can see that the buy limit order was executed at 23775, which is six points lower than the direct market entry at 23781. That’s a meaningful improvement. If you’re managing trades manually, you can afford a tighter stop or a slightly larger target. If you’re running the bot automatically, you have a better chance of hitting your target.


In the following screenshot.

you can see the trailing stop in action. As soon as price moved 80 ticks in profit, the stop was raised by 80 ticks to breakeven. This way, if the trade reverses against us, we don’t take a loss.


That concludes the first part of the guide. Now let’s move on to backtesting.

The bot now supports intrabar backtesting, and there is no need to add slippage

Please on presets 1,2 and 3 check that the times correspond to your time zone,

preset 1 must be the first 90 minutes from the opening rth so 8:30 AM central time zone until 10AM then in preset 2 the next three hours so from 10AM until 1PM and lastly preset 3 from 1PM to 4PM adapted to your time zone. Until you fix these times, don't use Autopilot 

Note: To run a proper backtest of this strategy, you need historical tick data. By default, NinjaTrader provides one year of historical tick data. If you try to backtest over a longer period than the data you have available, the strategy will open trades randomly and produce very poor results. With that said, let’s begin.

Personally, I start by looking for the best short-term setup. Once I find it, I gradually expand my testing month by month. In the beginning, I need to run many trials, and if I were to do that over a long time period, each backtest would take far too long to complete.

In the first screenshot.

you can see a small backtest from August 4 to August 15—nine trading days in a default setup with all modes turned off. The results show a profit of $5.2k, a maximum drawdown of $1,788, 49 trades executed, and a winrate of 57%.

Now let’s activate Trailing and AutoPilot, In the next screenshot

for the same nine-day period, the profit increases to $7.4k, with a slightly higher drawdown of $1.8k. This is because, by using different presets to better adapt to various times of day, the bot executed more trades—53 compared to the previous 49—and the winrate improved significantly to 64%.

Next, we activate BestPrice. In the following screenshot

you’ll see a lower profit of $6.3k, a maximum drawdown of $1.7k, and a much lower number of trades—just 37. However, the winrate climbs even higher to 67.57%. With BestPrice mode, profit is slightly reduced in exchange for better drawdown and winrate. Fewer trades, but more precise ones. The results could be improved even further by adjusting stop and target levels based on different times of day. For now, this is the best result I’ve found. If I discover better setups, I’ll make the templates available.

In the next screenshot

we see a backtest from July 1 to August 15. The bot generated $12.7k in profit, with a maximum drawdown of $2.6k and a winrate of 58%.

Now, for the same time period with all modes active

the results show $16.4k in profit, a reduced drawdown of $1.9k, and a winrate of 63%.
That’s everything. In these backtests, I used the Trading Hour Template “CME US Index Futures RTH” without any time filters. So the results reflect what would have happened if the bot had been active from the open to the close of the RTH session during the backtested periods.

The bottom line is that if you don’t want to miss any trades, you can simply use AutoPilot. But if you prefer a bit more peace of mind while the bot runs automatically, activate everything. 

To wrap up, I’m leaving you two screenshots: in the first one, you can see the trades taken with all modes turned off, and in the second one, the trades taken with all modes turned on.

1st (off) 2tp 2 stop

2nd (ON) 2tp

Torna al blog

Lascia un commento

Si prega di notare che, prima di essere pubblicati, i commenti devono essere approvati.