Croisement Chikou avec Bandes de Bollinger

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #90942 quote
    abrugano
    Participant
    Junior

    Bonjour, je cherche à ouvrir une position à la hausse et la fermer à partir du croisement de la ChikouSpan avec la bande de Bollinger (bande basse).

    Je joins mes lignes de programmation. Les ordres ouverts et fermés ne correspondent pas du tout à ces croissements.

    Merci d’avance pour votre assistance

    Bruno

    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé

    // Conditions pour ouvrir une position acheteuse
    Chinkou = Close[26]
    BBDown = Average[20](close)-2.5*std[20](close)
    c1 = (Chinkou CROSSES OVER BBDown)

    IF time >= 090000 and time <=164500 and c1 THEN
    BUY 1 SHARES AT MARKET
    ENDIF

    // Conditions pour fermer une position acheteuse
    c2 = (Chinkou CROSSES UNDER BBDown)

    IF c2 THEN
    SELL AT MARKET
    ENDIF

    CHIKOU-BB.txt
    #90957 quote
    fifi743
    Participant
    Master

    bonjour,

    ci joint correspond il mieux  a ta stratégie

    cordialement

    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé
    
    // Conditions pour ouvrir une position acheteuse
    Chinkou = Close
    BBDown = Average[20](close)-2.5*std[20](close)
    c1 = (Chinkou CROSSES OVER BBDown[26])
    
    IF time >= 090000 and time <=164500 and c1 THEN
    BUY 1 SHARES AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    c2 = (Chinkou CROSSES UNDER BBDown[26])
    
    IF c2 THEN
    SELL AT MARKET
    ENDIF
    swapping and Nicolas thanked this post
    #90959 quote
    swapping
    Participant
    Master

    Bravo fifi, stratégie bien écrite, simple et efficace 😉

    fifi743 and abrugano thanked this post
    #90982 quote
    abrugano
    Participant
    Junior

    Merci fifi pour la réponse, rapide et efficace. Tout fonctionne maintenant.

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

Croisement Chikou avec Bandes de Bollinger


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
abrugano @abrugano Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by abrugano
7 years, 1 month ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/09/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...