what does this code with Donchian do ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #150639 quote
    Vivien AdnotVivien Adnot
    Participant
    Junior

    Hi, I have a hard time read this code:

    donchian = lowest[15](low)
    if donchian > donchian[15] then // that is a line I don't understand
        sell at market
    endif
    

    What does the statement “donchian[15]” actually do ?

    I guess it’s a question of periods, but I can’t figure it

    Thanks for your help

    #150640 quote
    NicolasNicolas
    Keymaster
    Legend

    If lowest low of the last 15 bars is above the lowest low of the last 15 bars from 15 bars ago, then close the buy position.

    #150676 quote
    Vivien AdnotVivien Adnot
    Participant
    Junior

    Thank you Nicolas !

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

what does this code with Donchian do ?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Vivien AdnotVivien Adnot
5 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/16/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...