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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    90 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    49 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    23 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    31 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    31 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X