Hello traders. I’m looking for 10 beta testers for “LiveBrackets”, a new
NinjaTrader 8 add-on. Beta-testers will get the final product for free as a thanks.
This is by far the most advanced tool I have created for NinjaTrader 8, itsover 11,000 lines.
It will be listed for 349$ on my web page once its declared sale ready.
What it does:
- Works on all ATM order types: Ticks, pips, currency, price and % + normal buy/sell mkt orders
- Attaches info boxes to the order line, take profit line and stop loss line
- Boxes move instantly with the lines as you drag them
- Live info: R:R, points, ticks, dollars and dollars per contract, contract
amount
- Stats before the trade is entered, during the live trade, and after it closes
- Closed-trade box with trade duration, entry and exit time, entry and exit
price, drawdown and more
- Highly customizable, visually and behaviourally
One important note: this add-on works with your live orders and brackets.
Please run it in Sim for your first sessions until you’re comfortable with
how it behaves.
In my own trading it’s made things a lot easier and more organised, and I
want to know whether other traders feel the same. I haven’t found another
tool that does this — if you know of one, I would love to hear about
it.
Brutally honest feedback is exactly what I want. Pleas let me know your experience with the tool, both positives and negatives and what you would add/remove/change about the tool.
Want to be a beta-tester for this indicator? Reply in comments or pm me.
Looks good and it’s useful, however 10k LOC is rather unbelivable. There was a free indicator that did something similar in the old forum.https://forum.ninjatrader.com/forum/ninjatrader-8/indicator-development/1336610-usd-value-for-chart-bracket-orders
Showing the dollars/stats is the easy part. A bunch of other tools does this. But they all fail to follow lines. This follows all order lines around instantly as user moves them. Editing them seperatly before/during/after the trade. Stats box. Works will all order types. So yea that tools does 1 of the functions. The line count is high due to this tutching live orders so I had to do a lot more sim testing than usual resulting in a high line count. The accuall code is about half of the line count.
I might be wrong, but I cannot find any other tool doing this. And its always more risk doing something not done already. Hence why I want the beta-testers for this tool.
The risky beta cases are not the dollar math. They are order identity and teardown:
- Drag a stop while a partial fill changes the bracket quantity.
- Cancel and replace while old and new order callbacks arrive out of order.
- Move from entry state to working ATM brackets.
- Change tab, instrument, or workspace while lines still exist.
- Reconnect when the broker restores orders with different native IDs.
- Flatten the account and confirm every box and event handler disappears.
Each box should bind to the broker order identity, never only to price, name, or line position. I would also log event-subscription counts after every workspace reload. That catches duplicate handlers that often appear only after the second load.
1 Like
Thanks for the reply. You nailed some of the challanges.
You are right about binding to order identity. That is how I built it. A level
holds the live Order and the live Bracket objects, not just a price, and
everything writes through those. Fills are counted per order ID so a partial
does not get counted twice.
Going through the list:
-
Quantity side should be fine since fills are per order ID. One thing I had
to work around: one ATM strategy has a single set of bracket rows shared by all
its entries, so a write moves all of them. The confirmation says that instead
of pretending it only touches one. A partial landing while you are mid drag I
have not tested though.
-
Half fair. I do treat ChangePending and ChangeSubmitted as live states so a
replace in flight does not make the level vanish, and events are stamped per
order ID. But I have no guard for a late callback from an order that is already
replaced. That one I need to add.
-
Covered. Most of the work in this tool went there.
-
Covered. Both parts came from actual crashes. There is a dead flag set first
thing in Terminated that blocks late handlers, and the ChartControl is cached
when hooking because the property can go null before Terminated runs.
-
There is a connection health hold, so while the connection is bad positions
are not trusted. Native IDs coming back different after a restore I have not
proven.
-
Teardown unsubscribes and clears, but I have never actually sat down and
checked that every box and handler is gone after. Adding that to the list.
Taking the subscription count idea. The subscribe path already unsubscribes
first and only marks itself hooked if the subscribe worked, but counting after
a reload beats trusting my own logic
That breakdown makes the remaining beta boundary much clearer.
I would test the late callback and the mid-drag partial next. Both can mutate live state after the user gesture has already been mapped.
For the late callback, give each replacement a generation number. Log the ATM ID, order ID, generation and event sequence. Once the new order is current, an event from an older generation should not be allowed to write through to the level. The pass case is one replacement and one visible bracket update, even if the old order reports again afterward.
For the mid-drag partial, freeze the order ID at drag start, inject a partial before mouse-up, then make the confirmation show the current remaining quantity and the shared-ATM effect before commit. Cancel should leave both the live orders and the boxes unchanged.
And for the reload check, I would expose the subscription count in the beta debug output. After a reload it should return to the same baseline, not merely look correct on the chart.