Trading System avec Bollinger

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #24495 quote
    CarlCarl
    Participant
    Average

    Ci-dessous une demande qui a été envoyée à ProRealTime :

    Bonjour

    Pouvez vous m’indiquer comment programmer un ordre d’achat lorsque le cours de clôture est-au dessus de la bande bollinger haute mais que lorsque les bandes bollinger sont très écartées après un resserrement.

    La condition que je souhaite est un écartement des bandes de 100 % sur 2 chandeliers.
    Je pourrai faire des tests ensuite mais si je pouvais avoir la formule pour inclure un % d’écartement sur un échelonnement de 1 à X chandeliers cela est exactement ce que je recherche.

    merci d’avance

    Et une proposition de réponse :

    nbcandle=2
    pourcentageecartement=100
    
    bup=BollingerUp[20](close)
    bdown=BollingerDown[20](close)
    
    ecart=bup-bdown
    
    c1=close > bup
    c2=ecart >ecart[nbcandle]*(1+pourcentageecartement/100)
    
    if not longonmarket and c1 and c2 then
    buy 1 share at market
    endif
Viewing 1 post (of 1 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

Trading System avec Bollinger


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Carl @carl Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/09/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...