change stop %loss level automatically in terms of standard deviation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134940 quote
    auvergnat
    Participant
    Veteran

    Hi,

    Last friday afternoon, my proOrder system didn’t sent orders on IG Market (DOW and DAX) because minimum guaranteed stop level changed from min 10 points to 5% of underlying price (1 354 points on DOW and 639 on DAX).

    I use classic set stop %loss 1.4

    Do you know how automatically change % level of stop order on guaranteed account in terms of volatility level for example OR Sandard deviation ?

    for example : if Sandard deviation (20) crosses up 100 level then %loss is 5

    thks for your help.

    #134995 quote
    auvergnat
    Participant
    Veteran

    I complete. Move of % stop loss will be for next open order, not for order open wich keep original %loss of 1.4

    #135176 quote
    Nicolas
    Keymaster
    Master

    Change the stoploss value this way:

    if not onmarket and  myCondition then 
     if std[14]>100 then  
       slpercent = 5
     else
       slpercent = 1.4
     endif
     buy at market 
     set stop %loss slpercent
    endif
    #135246 quote
    auvergnat
    Participant
    Veteran

    Thks Nicolas. Should work. Will see.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

change stop %loss level automatically in terms of standard deviation


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
auvergnat @auvergnat Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by auvergnat
5 years, 8 months ago.

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