screener avec l’indicateur rainbow MA

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #145103 quote
    larouedegann
    Participant
    Master

    Bonjour à tous

    Voici ci-dessous l’indicateur

    // RainBow - Indikator
    //
    // Übergabe der Variablen
    prdxMA1   = StartwertSchnellster  //   3      (Fibo-Zahl für Fibo-xMAs)
    stpxMAs   = SchrittWeitexMAs      //   3      (gültig für lineare Berechnunge
    fktxMAs   = FaktorWeitexMAs       //   1.6188 (gültig für exponetielle Berechnung; 1.618 entspricht Fibo-Ratio)
    numxMAs   = AnzahlweiterexMAs     //   22     max 9 bei exponentiellen Abstand (Berechnungszeit!!!)
    typxMAs   = xMAType               //   1
    artBerchg = Linear1Progressiv0    //   Linearer Abstand : 1 ; Exponetieller Abstand: 0
    MyClose   = CustomClose
    //
    // Bestücken des Arrys
    $prdxMA[0] = prdxMA1
    if artBerchg = 1 then      // Perioden für linearen Abstand
    for i = 1 to numxMAs
    $prdxMA[i] = $prdxMA[i - 1] + stpxMAs
    next
    else // artBerchg = 0 then   // Perioden für wachsenden Abstand
    for i = 1 to numxMAs
    $prdxMA[i] = round($prdxMA[i - 1] * fktxMAs)
    next
    endif
    
    //
    // Berechnung Farbverlauf
    $FarbeRot[0]   = 255
    $FarbeGruen[0] =   0
    $FarbeBlau[0]  =   0
    ratio = 1 / numxMAs
    IF numxMAs > 1 Then
    For k = 1 To numxMAs
    if ratio * k <= 0.25 then
    $FarbeRot[k]   = 255
    $FarbeGruen[k] = 255 * 4 * k  / numxMAs
    $FarbeBlau[k]  =   0
    elsif ratio * k > 0.25 and ratio * k <= 0.50 then
    $FarbeRot[k]   = 255 * (2 - 4 * k / numxMAs)
    $FarbeGruen[k] = 255
    $FarbeBlau[k]  =   0
    elsif ratio * k > 0.50 and ratio * k <= 0.75 then
    $FarbeRot[k]   =   0
    $FarbeGruen[k] = 255
    $FarbeBlau[k]  = 255 * ((4 * k / numxMAs) - 2)
    elsif  ratio * k > 0.27  then
    $FarbeRot[k]   =   0
    $FarbeGruen[k] = 255 * (4 - 4 * k / numxMAs )
    $FarbeBlau[k]  = 255
    endif
    next
    else
    break
    endif
    //
    // Berechnen der xMA-Werte
    for j = 0 to numxMAs
    $MYxMA [j] = Average[$prdxMA[j],typxMAs](MyClose)
    $MYxMA1[j] = Average[$prdxMA[j],typxMAs](MyClose[1])
    DRAWSEGMENT(barindex, $MYxMA[j], barindex[1], $MYxMA1[j])COLOURED($FarbeRot[j],$FarbeGruen[j],$FarbeBlau[j])
    next
    //
    RETURN
    

    Je cherche à construire un screener sur cet indicateur.

    A savoir lorsque la cloture est au-dessus de la dernière ligne en bleu .

    Je ne parle pas allemand.

    Si une ame charitable pourrai m’aider

    merci

    #145133 quote
    Nicolas
    Keymaster
    Master

    Pas de problème, mais avec une ancienneté comme la tienne sur le forum, tu devrais savoir qu’il faut donner un titre significatif à ses sujets, par ailleurs les règles de publication sont lisibles dans le rectangle en jaune au dessus du champ de saisie des sujets, petit rappel:

    • Donnez à votre sujet un titre significatif. Décrivez votre question ou votre sujet dans votre titre. N’utilisez pas de titres dénués de sens tels que «Aide au codage svp».

    “rainbow” signifiant arc-en-ciel en anglais, je pense que le sujet aurait fini dans les méandres de l’internet, inconnu de tous, puisque sans intérêt à priori dans un forum lié à la programmation pour le trading.. bref, j’ai changé le titre, merci de faire gaffe la prochaine fois 🙂

    #145141 quote
    Nicolas
    Keymaster
    Master

    La dernière ligne bleue est une EMA de période 69, le screener se résume ainsi :

    screener[close > exponentialaverage[69]]
    #146396 quote
    larouedegann
    Participant
    Master

    Dont acte

    merci

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

screener avec l’indicateur rainbow MA


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by larouedegann
5 years, 5 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 09/23/2020
Status: Active
Attachments: No files
Logo Logo
Loading...