Set Stop Loss Donchian Channel

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #65133 quote
    FabianFabian
    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
    VonasiVonasi
    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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
8 years, 6 months ago.

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