CANDELSTICK STOCHASTIC FIBO

Forums ProRealTime forum Français Support ProBuilder CANDELSTICK STOCHASTIC FIBO

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

    Bonjour à tous,

    Serait-il possible de mettre une valeur sur le dernier chandelier afin de pouvoir déclencher mes alertes

    //PRC_CandlesticksStochastic | indicator
    //25.10.2016
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge

    period = 7
    ////////////////////////////////////////////////////////////////////
    //lastest highhest high and lowest low over “period”
    hh = highest[period](high)
    ll = lowest[period](low)
    scale = hh-ll
    dynO = ((Open-ll)/scale)*100
    dynH = ((High-ll)/scale)*100
    dynL = ((Low-ll)/scale)*100
    dynC = ((Close-ll)/scale)*100
    //candle color
    if Open>Close then
    r = 0
    g = 102
    else
    r = 102
    g = 0
    endif
    //draw candlesticks
    DRAWCANDLE(dynO,dynH,dynL,dynC) coloured(g,r,0) bordercolor (g,r,0)

    return 0 as ” 0 ” ,23.6 as “23.6 % level”,38.2 as ” 38.2 “, 50 as “50% level”, 61.8 as ” 61.8 ” ,78.6 as “78.6% level”, 100 as ” 100 ”

    // Variables :
    // period = 26

    #249674

    J’ai ajouté la ligne 26 (mySignal = 0), où vous pouvez saisir la valeur ou l’expression de votre choix.
    Les données ou le résultat seront renvoyés comme première valeur de la ligne 27 (RETURN) :

     

    #249693

    merci Roberto, mais je n’ai pas de valeur qui s’affiche sur le dernier chandelier. J’aimerai pouvoir ajouter une ligne dynamique horizontale.

    #249698

    Voilà:

    À la ligne 26, vous devrez définir votre condition pour que le segment apparaisse sur le dernièr chandelier (celle où le signal s’est produit).
    Si vous souhaitez qu’il commence sur le dernièr chandelier, remplacez la ligne 34 par ceci :

     

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