Croisement Chikou avec Bandes de Bollinger

Forums ProRealTime forum Français Support ProOrder Croisement Chikou avec Bandes de Bollinger

Viewing 4 posts - 1 through 4 (of 4 total)
  • #90942

    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

    #90957

    bonjour,

    ci joint correspond il mieux  a ta stratégie

    cordialement

     

    2 users thanked author for this post.
    #90959

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

    2 users thanked author for this post.
    #90982

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

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login