Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why can't we use CalculationMode.Currency with SetTrailStop?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why can't we use CalculationMode.Currency with SetTrailStop?

    Hello.

    I am coding a strategy and wish to set a trailing stop-loss of a fixed amount. However, the documentation for SetTrailStop states that CalculationMode.Currency is irrelevant for SetTrailStop.

    I believe that we should be able to request a trailing stop-loss that is, say, 5.00$ below the current price of the security.

    I know about the workaround of converting the amount to ticks and then using CalculationMode.Ticks. My question is to understand why CalculationMode.Currency is not available to use with SetTrailStop.

    Thanks

    -Ray.

    #2
    Hello rgoudie,

    At this time there is no option for that for the internal trail stop so you would have to manually calculate the price offset using your own logic and then set the price of the target instead.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    72 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    44 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    25 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    30 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    61 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X