Set Stop Loss Donchian Channel

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #65133 quote
    Fabian
    Participant
    New

    Hello,

    i want to set a Stop Loss on a Donchian Channel value, but it dont works.

    I try:

    SET STOP LOSS LOWEST[20](Low)

    And:

    SET STOP PLOSS OPEN - LOWEST[20](Low)

    But the StopLoss will never triggered 🙁 Any Idea?

    EDIT:

    Whole code:

    IF not longonmarket AND HOUR = 21 THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP LOSS LOWEST[20](Low)
    ENDIF
    #65147 quote
    Vonasi
    Moderator
    Master

    Try:

    IF not longonmarket AND HOUR = 21 THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP pLOSS (close -  LOWEST[20](Low))
    ENDIF
    Nicolas thanked this post
    #65176 quote
    Nicolas
    Keymaster
    Master

    To avoid points conversion problem, you should use SET STOP LOSS and not PLOSS. If the pointsize is not equal to 1, and since the stoploss calculation is made with price (close and lowest low), the stop loss value would never be set at the good level.

    IF not longonmarket AND HOUR = 21 THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP LOSS (close -  LOWEST[20](Low))
    ENDIF
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Set Stop Loss Donchian Channel


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fabian @fabian Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
7 years, 12 months ago.

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