NexusFi: Find Your Edge


Home Menu

 





Stop orders and trigger price


Discussion in Emini and Emicro Index

Updated
      Top Posters
    1. looks_one jefforey with 7 posts (2 thanks)
    2. looks_two SpeculatorSeth with 4 posts (2 thanks)
    3. looks_3 TradingTech with 4 posts (5 thanks)
    4. looks_4 Blash with 2 posts (0 thanks)
    1. trending_up 3,988 views
    2. thumb_up 9 thanks given
    3. group 4 followers
    1. forum 17 posts
    2. attach_file 0 attachments




 
Search this Thread

Stop orders and trigger price

  #1 (permalink)
 jefforey 
edison new jersey
 
Experience: None
Platform: motivewave
Trading: ES
Posts: 69 since Nov 2016
Thanks Given: 45
Thanks Received: 18

I am building a automated trading system for trading ES and other futures. I am confused whether to use STOP ORDERS for stop loss or just fire a market order as and when the closing price hits my stop price. The confusion mainly stems from the use of BID/ASK price as the trigger price by the broker for stop orders. My model is built on close price (trade price) only and does not take into account the BID/ASK price at all. Also in simulation (rithmic) I noticed that due to the spread my stops were executed, prematurely, well before the stop price was actually hit. That means, in cases, I got stopped-out for a loss whereas had the broker waited for the closing price (instead of the bid/ask price) to reach the stop price the trade would have actually been a highly profitable one.
This is what I think I could do:
1. Don't use STOP orders. instead just fire a market order when price hits stop price. Do you think doing away with STOP orders make sense? Is the downside too disastrous?
2. Set my stop loss using BID/ASK price instead of close price.
3. Is it possible to create custom STOP orders that triggered at close price instead of BID/ASK? ha ha do you know any brokers who provide that?

Please share your opinion.

Started this thread Reply With Quote
The following user says Thank You to jefforey for this post:

Can you help answer these questions
from other members on NexusFi?
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
61 thanks
NexusFi site changelog and issues/problem reporting
46 thanks
Battlestations: Show us your trading desks!
38 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
25 thanks

  #3 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


A stop order is an order that becomes a market order if any trades have executed at your specified price. Your stops are executing because the price did touch your stop, even though it may have only been one lot that executed. In this case you'll probably just want to give yourself a wider stop and see how it affects your strategy.

Now it is possible to create your own virtual stop strategies by sending a market order when certain conditions are met. For instance, only execute if the level 2 info shows price is about to leave your stop price. However, I wouldn't write one based on the close of a bar. A security could move well past your stop before the close.

Reply With Quote
The following 2 users say Thank You to SpeculatorSeth for this post:
  #4 (permalink)
 
TradingTech's Avatar
 TradingTech 
Chicago, IL
 
Experience: Master
Platform: X_TRADER, TT
Trading: ES, NQ, ZN, CL, 6E
Posts: 167 since Feb 2016
Thanks Given: 72
Thanks Received: 122

There are many ways to go about using stops and technically, when a stop fires @CMEgroup what's really entering the market is a limit order, not a market order. CME doesn't really have market orders at all. They submit limit orders "x" number of ticks into the market. They refer to this as market with protection. You can take this a step further and submit other order types like iceberg orders based on a stop threshold. CME doesn't support that combo but some ISVs do with their co-located synthetic servers.

Yes, you can set your trigger off of anything you like. Bid/ask, LTP, volume thresholds, even specific times.

If you have any questions about the products or services provided, please send me a Private Message or use the futures.io " Ask Me Anything" thread
Follow me on Twitter Reply With Quote
The following 3 users say Thank You to TradingTech for this post:
  #5 (permalink)
 jefforey 
edison new jersey
 
Experience: None
Platform: motivewave
Trading: ES
Posts: 69 since Nov 2016
Thanks Given: 45
Thanks Received: 18


TWDsje View Post
A stop order is an order that becomes a market order if any trades have executed at your specified price. Your stops are executing because the price did touch your stop, even though it may have only been one lot that executed. In this case you'll probably just want to give yourself a wider stop and see how it affects your strategy.

Well, that is exactly the problem. No trades were executed at my stop price. Only the best bid/ask reached my stop price and that triggered my stop order. If i look at the chart the bar where my order executed is just above/below my stop price. This is the very reason for the confusion.


Quoting 
However, I wouldn't write one based on the close of a bar.

No I meant trade price. It could be high, low, open or whatever. In automation we call it close price. because a bar has only one open price but several high, low and close prices. when a bar progresses every tick is a close price and when that bar is complete and the next bar begins the price at which the last bar completed becomes the final close price for that bar.

Started this thread Reply With Quote
  #6 (permalink)
 jefforey 
edison new jersey
 
Experience: None
Platform: motivewave
Trading: ES
Posts: 69 since Nov 2016
Thanks Given: 45
Thanks Received: 18


TradingTech View Post
There are many ways to go about using stops and technically, when a stop fires @CMEgroup what's really entering the market is a limit order, not a market order. CME doesn't really have market orders at all. They submit limit orders "x" number of ticks into the market. They refer to this as market with protection. You can take this a step further and submit other order types like iceberg orders based on a stop threshold. CME doesn't support that combo but some ISVs do with their co-located synthetic servers.

Yes, you can set your trigger off of anything you like. Bid/ask, LTP, volume thresholds, even specific times.

Well this is what i use for creating a stop order. as you can see there is no way to define the trigger type (ltp, bid/ask, volume etc). I think it is left up to the broker to chose. This is from motivewave strategy.
 
Code
                            
ctx.createStopOrder(BUYEnums.TIF.GTC1stopPrice); 


Started this thread Reply With Quote
  #7 (permalink)
 
TradingTech's Avatar
 TradingTech 
Chicago, IL
 
Experience: Master
Platform: X_TRADER, TT
Trading: ES, NQ, ZN, CL, 6E
Posts: 167 since Feb 2016
Thanks Given: 72
Thanks Received: 122

We support a long list list primary and secondary triggers. You may read about them here: https://www.tradingtechnologies.com/help/x-trader/order-types/triggered-orders/

If you have any questions about the products or services provided, please send me a Private Message or use the futures.io " Ask Me Anything" thread
Follow me on Twitter Reply With Quote
  #8 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


jefforey View Post
Well, that is exactly the problem. No trades were executed at my stop price. Only the best bid/ask reached my stop price and that triggered my stop order. If i look at the chart the bar where my order executed is just above/below my stop price. This is the very reason for the confusion.

What platform are you working with?

Reply With Quote
  #9 (permalink)
 jefforey 
edison new jersey
 
Experience: None
Platform: motivewave
Trading: ES
Posts: 69 since Nov 2016
Thanks Given: 45
Thanks Received: 18

I am using MotiveWave with Rithmic

Started this thread Reply With Quote
  #10 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


Well according to their programming guide I'm wrong so...

https://www.motivewave.com/sdk/MotiveWave_SDK_Programming_Guide.pdf


Quoting 
Stop Orders are often triggered on Bid/Ask. It’s a common misconception that stop
orders are triggered by last price. Most (if not all) brokers trigger stop orders using the
bid or ask price (depending on whether it’s a buy or sell). This can cause your stop order
to be executed unexpectedly early especially if there is a significant spread in the bid/ask
prices.
 Stop Orders are filled at market. Once a stop order is triggered, it is filled at market price.
Stop Limit orders do exist, but are not currently supported by this API. Also note that not
all brokers support Stop Limit orders.
If you choose to implement a fully automated strategy using non-market orders, you will need to
consider these behaviors and add the appropriate code to handle cases where your orders do not
get filled, or do not get filled at your expected price.
Ultimately, the choice you make will be a trade-off between order executions vs. fill price.

However, my advice remains the same. Try giving yourself a bigger stop, and seeing how that affects the strategy's profitability. You can also write your own stop that basically sends a market order when the specified conditions are met.

I'll add that if your strategy is getting stopped out of winning trades that you might want to look at ways to refine your entries instead.

Reply With Quote





Last Updated on December 29, 2016


© 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