NexusFi: Find Your Edge


Home Menu

 





Stop limit order auto convert to limit orders


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one planetkill with 5 posts (1 thanks)
    2. looks_two askerix with 1 posts (1 thanks)
    3. looks_3 tr8er with 1 posts (0 thanks)
    4. looks_4 JonnyBoy with 1 posts (1 thanks)
    1. trending_up 1,674 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

Stop limit order auto convert to limit orders

  #1 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

Can anyone help with a solution in NT that allows a buy stop limit order to be placed below the current market price, and auto converts to a limit buy order? More details in this NT support thread, but was told NT doesn't have the functionality. https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/1114224-buy-stop-limit-orders-automatically-converted-to-buy-limit-order

So far I have come up short with my googlefu.

I think it can be coded in ninjascript, but I'm very apprehensive about doing this myself because it's one thing to code up my own meaningless indicators but a whole different ball game when the code is responsible for trade entries.

In ninjascript, it would first compare the entry price to the current market price.
If entry price > market price, then submit order as a buy stop limit
If entry price <= market price, then submit order as a buy limit

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
JonnyBoy's Avatar
 JonnyBoy 
Montreal, Quebec
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: Kinetick
Trading: ES
Posts: 1,561 since Apr 2012
Thanks Given: 706
Thanks Received: 3,858


planetkill View Post
Can anyone help with a solution in NT that allows a buy stop limit order to be placed below the current market price, and auto converts to a limit buy order? More details in this NT support thread, but was told NT doesn't have the functionality. https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/1114224-buy-stop-limit-orders-automatically-converted-to-buy-limit-order

So far I have come up short with my googlefu.

I think it can be coded in ninjascript, but I'm very apprehensive about doing this myself because it's one thing to code up my own meaningless indicators but a whole different ball game when the code is responsible for trade entries.

In ninjascript, it would first compare the entry price to the current market price.
If entry price > market price, then submit order as a buy stop limit
If entry price <= market price, then submit order as a buy limit

I am not entirely sure why you need need this functionality. Can you expand a bit more, is this going to be part of a strategy?

--------------------------------------------------------
- Trade what you see. Invest in what you believe -
--------------------------------------------------------
Reply With Quote
Thanked by:
  #3 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311


I want to use it for price breakouts. Here's an example from today.



I want to place the order 1 tick above/below the breakout bar.

Am I really the only sucker to want something like this?

I have played around with ninjascript order entries, but the part I don't have examples for is how to make it chart drag/droppable (similar to the other stop and limit orders).


JonnyBoy View Post
I am not entirely sure why you need need this functionality. Can you expand a bit more, is this going to be part of a strategy?


Started this thread Reply With Quote
  #4 (permalink)
 tr8er 
Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: TradeNavigator, BookMap
Trading: ES, CL, 6E, 6B
Posts: 704 since Jan 2017
Thanks Given: 220
Thanks Received: 709

You can be sure break-out traders use this kind of entry (you are not alone ), but of course "buy/sell stop market" to get a fill

I have Ninja on my computer, but I don't use it and I guess I already tried out this type of order a while ago, may this link can help, because I think it is availabe for NT: https://ninjatrader.com/blog/what-is-a-stop-limit-order-in-futures-trading/.

Reply With Quote
  #5 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

Thanks for trying, but the link you posted says "A buy stop-limit order must be entered above the current market price, and a sell stop-limit order must be entered below the current market price."

The entire point of this thread is that NT rejects buy/sell stop orders when the current market price is on the other side of the order.

The goal is to drag n drop an order on the chart to say buy at 3250. Doesn't matter where the current price is. If the current price is below 3250, the order is submitted to the exchange as buy stop limit. If the current price is above or equal to 3250, submit a buy limit. All I want to do is buy at 3250, and I don't want to be required to choose the correct order type based on where the current price is, the trading software should automatically choose since it is a completely binary choice without discretion.


tr8er View Post
You can be sure break-out traders use this kind of entry (you are not alone ), but of course "buy/sell stop market" to get a fill

I have Ninja on my computer, but I don't use it and I guess I already tried out this type of order a while ago, may this link can help, because I think it is availabe for NT: https://ninjatrader.com/blog/what-is-a-stop-limit-order-in-futures-trading/.


Started this thread Reply With Quote
  #6 (permalink)
 askerix 
Zurich Switzerland
 
Experience: None
Platform: NT
Trading: Ukulele
Frequency: Never
Duration: Never
Posts: 60 since Mar 2011
Thanks Given: 554
Thanks Received: 62

this is for sure doable with ninjascript, most complex part would be the placement by click in the chart, the entryorder tpye itself can easily be chosen when the placement location is known

I'm pretty sure there exist commercial indicator-based solutions which can do this too.

Reply With Quote
Thanked by:
  #7 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

One approach I'm thinking of is using hotkeys to place the order at the price of the mouse location on the chart. I've already figured out how to get the price of the current mouse location.

I've been searching for commercially available solutions, but haven't found any so far. The closest I've found is using EOB Ordering by Ninza, to place a buy/sell stop limit order with a 1 tick offset. Only problem here is that if the price is moving very quickly and the bar closes at it's high/low, the split second it takes for the indicator to place the order is sometimes enough for the price to move by at least a tick and be rejected by NT.

A major drawback of commercially available indicators is that they are licensed based on your machine ID. For VMs, the machine ID changes everytime the instance is spun up, so daily shutdowns to reduce costs aren't feasible because you'd have to email the vendor daily with your new machine ID. This has been my experience with EOB Ordering.

I'm going to keep messing around with this and hopefully get it to a place that can be used.

I'm open to any and all suggestions!
askerix View Post
this is for sure doable with ninjascript, most complex part would be the placement by click in the chart, the entryorder tpye itself can easily be chosen when the placement location is known

I'm pretty sure there exist commercial indicator-based solutions which can do this too.


Started this thread Reply With Quote
  #8 (permalink)
 planetkill 
New York City + NY/United States
 
Posts: 356 since Sep 2018
Thanks Given: 108
Thanks Received: 311

If anyone is interested, my solution for now is to use the EOB Ordering indicator. The indicator doesn't convert SLM orders into Limit orders, but it places the SLM order much faster than I could ever manually as soon as the bar closes. We'll see what happens if the price is moving quickly and closes at the high/low of its bar.

The solution is not ideal, but much better than drag/dropping orders manually. And for trading on mobile it's much easier too.

I don't know if I would buy the indicator specifically for this purpose, especially because I've come pretty close to coding my own solution, but since I already bought the indicator previously, might as well use it for now until it gives me enough problems.

Started this thread Reply With Quote
Thanked by:




Last Updated on August 19, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts