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 NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    128 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X