Stoploss with different currencies ie. SEK

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #146021 quote
    Recordatio
    Participant
    Junior

    Hi,

    I tried to search for this answer in the forum but with no luck. Is it possible to set an amount of money in the stop loss function with other currencies than € and $?

    I found in the documentation that it should be written like this:

    SET STOP $LOSS x

    I want to use the currency SEK (Sweden’s currency)?

    Thanks!

    #146040 quote
    Nicolas
    Keymaster
    Master

    The stoploss in money is always calculated according to the current instrument currency and not with your own account currency.

    We can’t get other instrument to get the exchange rate (with EURSEK for instance), so the sole possibility is to use a fixed rate set in a variable to automatically convert the SEK into EUR.

    Recordatio thanked this post
    #146079 quote
    Recordatio
    Participant
    Junior

    Thanks Nicolas for the clarification.

    I’m trying to backtest the Swedish OMXS30 index and it uses SEK as their currency.

    I tried writing the following code “SET STOP LOSS 1000″ and was hoping it would set the stoploss to 1000 SEK, but I get much bigger losses than that when looking in the Detailed report -> Closed positions list.

    #146085 quote
    robertogozzi
    Moderator
    Master

    Use

    SET STOP $LOSS 1000
    Recordatio thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Stoploss with different currencies ie. SEK


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Recordatio @recordatio Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by robertogozzi
5 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/30/2020
Status: Active
Attachments: No files
Logo Logo
Loading...