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.