stop loss and trailing confusion

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #162926 quote
    kevin12345
    Participant
    Average

    hi,

    can someone tell me what set stop ploss 40 trailing 1 mean because i am getting 95% win rate with crazy profit long term.

    thank u

    #162927 quote
    kevin12345
    Participant
    Average

    ptrailing sorry

    #162928 quote
    robertogozzi
    Moderator
    Master

    pTrailing or Trailing are much similar, the leading letter just identifies what kind of TARGET or LOSS you want to deal with. p stands for PIPS, $ stands for currency, % stands for percentage and nothing stands for Price.

    set stop ploss X trailing Y can only be used in ProBackTest, not in autotrading. It’s two different kind of stops in the same line and are not allowed.

    Writing them separately on different lines doesn’t help, since the code is read sequentially, so only the last STOP is recorded as it overrides any one previously set.

    You should use on SET STOP ?LOSS, then use this snippet code as Trailing Stop (lines 17-56 are ready to be appended to your exiting code, just changing the two values, start and step) https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/.

    #162943 quote
    Nicolas
    Keymaster
    Master

    and use tick by tick backtests, otherwise you are fooled by amazing results because orders are not checked at precise price intra bar, especially with “set stop trailing” instruction!

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

stop loss and trailing confusion


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kevin12345 @kevin12345 Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/02/2021
Status: Active
Attachments: No files
Logo Logo
Loading...