breakout du plus bas sur les x dernières bougies

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #114200 quote
    petitdudu
    Participant
    Junior

    Bonjour,

    Comment fait-on pour demander au système de prendre en compte les x dernières bougies ?

    Par exemple, pour shorter si le titre crée un nouveau plus bas : si le low d’aujourd’hui est inférieur à tous les low des 15 dernières bougies –> vendre à découvert.

    Merci,

    Christophe

    #114239 quote
    Nicolas
    Keymaster
    Master

    On utilisera l’instruction LOWEST et on testera un breakout du niveau calculé, soit :

    breakout = low crosses under lowest[15](low)[1]
    
    if breakout then 
     sellshort at market 
    endif

    (non testé)

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

breakout du plus bas sur les x dernières bougies


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
petitdudu @petitdudu Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
6 years, 3 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 12/04/2019
Status: Active
Attachments: No files
Logo Logo
Loading...