Stop loss issue in real trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11080 quote
    absent1980absent1980
    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
    RobertRobert
    Participant
    Senior

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

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 RobertRobert
10 years, 1 month ago.

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