Author |
Topic: Clarification of Trailing Stop behavior (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
THarnett81 Posts: 78 Joined: Jan 13, 2011 |
Can you confirm that we are understanding OEC's trailing stop behavior correctly?
In a Trailing Stop, the following fields are the price-related fields that affect its behavior:
We see one problem: In the docs, it says "Usually reference price is the last trade price, and delta is 0." Doesn't that potentially create a race condition? What if the last trade price changes in between user-action and OEC-reception? |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Probably, you understand it slightly incorrectly: Reference and Price are modified when current market price is better than Reference price and difference is greater than Delta. So, the docs describes a situation when you need to start trailing logic immediately.
Modify request is an atomic transaction: it will replace all three fields at once. Victor Vins Lead Software Developer |
||||