¿ªÔÆÌåÓý

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

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


 

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.


 

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


 

So what is triggerPrice then?


 

I will be differing with the above response here:?

"triggerPrice" is when the parameters of "adjustedXXX" get activated. Till this triggerPrice reaches, those parameters are useless.
"adjustedTrailingAmount" is as the name suggests, the trail amount you want to set your stop for.
"adjustedStopPrice" - Please do test this: if the price starts going against you as soon as the "triggerPrice" is hit, then you get out at "adjustedStopPrice", so basically you can get out earlier then your trail amount if you would like. If the price goes in the direction of your choice after the "triggerPrice" is hit, I believe then your trailing-stop gets activated. I haven't tried testing if this price is not set. This param is a bit confusing, so best to test and verify this. I don't care about setting a different stop than my trail-amt, so I set it as below:
adjustedStopPrice = triggerPrice +/- adjustedTrailingAmount ('+' if going Short, '-' if going Long)


 

Thanks a lot Amar. I'm getting to similar conclusions even though I'm done testing yet. adjustedStopPrice seems to be confusing and not very useful. I wish it was optional.


 

Yeah, you are right, apologies for pushing further confusion about this topic, I should have been more careful commenting on a feature that I only played around with too little to fully understand.


--
Best,
DS