what does this code with Donchian do ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #150639 quote
    Vivien 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
    Nicolas
    Keymaster
    Master

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

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 Adnot
5 years, 3 months ago.

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