Stoploss with different currencies ie. SEK

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #146021 quote
    RecordatioRecordatio
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    RecordatioRecordatio
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
6 years ago.

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