¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Confusion between "adjustedStopPrice" and "adjustedTrailingAmount" when attaching "Adjusted to Trail" to a Stop order.


 

The adjusted "stop" is when the trailing algorithm is activated. It is thus not a property of the trailing algorithm per se, strictly speaking. Once activated at this "stop" ("trigger" might be a better term perhaps), the algorithm will continuously compute a trailing stop by adding or subtracting the trail amount from current last price, depending on the order side (short/long), but only if the price improves. This is when the trailing amount starts to work. If the price deteriorates, the trailing stop stays the same and can eventually activate the ordered action once penetrated, otherwise it keeps improving as the last traded price improves. Overall it's a pretty complicated scheme which I believe might merit a few test runs in manual and api modes to get a firmer understanding its workings

§á§ä, 15 §ã§Ö§ß§ä. 2023 §Ô., 0:23 amar <amardes21@...>:

Hello,
I have been using a bracket order for stop-loss and profit-takers which has been working fine (C++). Now I want to attach a 'Trailing Stop'? when a specific price is reached. My confusion lies in the setting both attributes "adjustedTrailingAmount" and "adjustedStopPrice".
If I have set the "adjustedTrailingAmount" to say $0.50, why then do I need to set "adjustedStopPrice"?

Also, the does "adjustedTrailingAmount" value need to be positive (e.g. $0.50) for Short positions and negative ($-0.50) for Long positions?

Thanks.


--
Best,
DS

Join [email protected] to automatically receive all group messages.