Stop loss issue in real trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11080 quote
    absent1980
    Participant
    Average

    HI,

    I experienced few times a problem when stop loss suddenly moves above the current price. Sometimes it goes back afterwards. In coding stoploss set to a maxrisk of 1% in $.

    Capital = 10000
    Risk = 0.01
    stopLoss = ATR*4
    
    REM Calculate contracts
    equity = Capital + StrategyProfit
    
    maxrisk = round(equity*Risk)
    
    set stop $loss maxrisk

    Can anyone clarify that please?

    #11123 quote
    Robert
    Participant
    Average

    Hi,

    i think you should post your whole code.
    What’s this ATR-stop line for?
    “stopLoss = ATR*4″
    Do you refer to this in some part of your code?

    Greetings,

    Robert

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

Stop loss issue in real trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
absent1980 @absent1980 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Robert
9 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/01/2016
Status: Active
Attachments: No files
Logo Logo
Loading...