How to create slightly more complex order entry hotkeys

Hi new to Nijatrader, and could use some direction on what’s the best way to create some slightly more complex custom order entry hotkeys. I have used the Hot keys /Order entry / Custom orders, which gives you a few parameters you can set such as action, type, limit offset and price. I already have simple ATM strategy that I set in the Chart trader panel on the chart, that just positions my targets and stop after an order is filled, so I just want the order entry hotkeys.

I am looking to make four hotkeys in total:

1 - Buy order key that will set the Buy order at 2 ticks above the high of the current candle when it closes.

2 – Sell order key that will set the Sell order at 2 ticks below the low of the current candle when it closes.

Keys 3 and 4 are similar to 1 and 2 but the difference is they will do the same action but use the previous candle from the current one.

3 - Buy order key that will set the Buy order at 2 ticks above the high of the previous candle.

4 – Sell order key that will set the Sell order at 2 ticks below the low of the previous candle.

What features of Ninjatrader (or something else) might I use to create these hot keys? So far I am reading about the Strategy Builder and scripting a little, and not sure what is the best way, or quickest way to approach accomplishing this for a beginner with Ninjatrader. Thanks!

You program this with a button, thus creating it yourself. Or you can hire a coder on upwork, describe what you’re looking for and they’ll code it up for you.

Does any one know if Strategy builder can be any help for this

No, you can’t do this in strategy builder. Has to be coded in NinjaScript. You can use CreateOrder() and event handlers to make it as an indicator.

You could attempt to do it yourself or perhaps get someone on here to code it for you (rather than upwork), if you throw them a few $. :slight_smile:

Thanks for those replies.

Try ahk v2.
This isn’t exactly what you’re trying to do, but it’s a start.

Hi Mila,

Not sure if you are still looking for a solution to this but I built a NinjaTrader Chart Trader tool called Candle Break Trader around that exact execution problem (specifically your key 3 and 4): it loads a stop entry 1 tick, 2 ticks or whatever your desired offset beyond the previous candle and automatically follow each new candle until the break occurs, while still using your selected ATM. I can send you the trial link if you are interested,

TK

SNO INVEST