Conversion Candle Strength.mq4

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #50368 quote
    PlscapPlscap
    Participant
    Veteran

    Bonjour Nicolas, bonjour à tous,

    Voici un petit indicateur que tout le monde connait sous MT4 qui pourrait s’avérer très utile pour PRT.

    S’il pouvait être converti pour PRT ça serait formidable.

    Merci à tous.

    //+------------------------------------------------------------------+
    //|                                              Candle strength.mq4 |
    //+------------------------------------------------------------------+
    
    #property indicator_separate_window
    #property indicator_minimum -60
    #property indicator_maximum 60
    #property indicator_level1 50
    #property indicator_level2 0
    #property indicator_level3 -50
    
    #property indicator_buffers 2
    #property indicator_color1  Green
    #property indicator_width1  3
    #property indicator_color2  Red
    #property indicator_width2  3
    
    double     ind_buffer1[];
    double     ind_buffer2[];
    int        ExtCountedBars=0;
    
    
    //+------------------------------------------------------------------+
    int init()  {
    //+------------------------------------------------------------------+
      SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3,Green);
      SetIndexBuffer(0,ind_buffer1);
      SetIndexEmptyValue(0,0.0);
      SetIndexDrawBegin(0,0);
      ArrayInitialize(ind_buffer1,EMPTY_VALUE);
    
      SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3,Red);
      SetIndexBuffer(1,ind_buffer2);
      SetIndexEmptyValue(1,0.0);
      SetIndexDrawBegin(1,0);
      ArrayInitialize(ind_buffer2,EMPTY_VALUE);
    
      IndicatorShortName("Candle strength");
    
      return(0);
    }
    
    //+------------------------------------------------------------------+
    int deinit()  {
    //+------------------------------------------------------------------+
      return(0);
    }
    
    //+------------------------------------------------------------------+
    int start()  {
    //+------------------------------------------------------------------+
      for (int i=0; i<=Bars; i++) {
        double value = 100*(Open[i]-Low[i])/(High[i]-Low[i])-50;
        if (Close[i] > Open[i])
          ind_buffer1[i] = value;
        else
          ind_buffer2[i] = value;
      }  
      return(0);
    }
    
    
    Capture-d’écran-2017-10-24-à-12.21.02.png Capture-d’écran-2017-10-24-à-12.21.02.png
    #50618 quote
    NicolasNicolas
    Keymaster
    Legend

    et bien faisons en sorte que ce soit formidable 🙂

    ci-joint l’indicateur convertit.

    Plscap thanked this post
    PRC_Candle-Strength.itf candle-strength-indicator-prorealtime.png candle-strength-indicator-prorealtime.png
    #50625 quote
    PlscapPlscap
    Participant
    Veteran

    Un grand merci Nicolas, comme toujours un travail parfait.

    En effet c’est formidable 🙂

Viewing 3 posts - 1 through 3 (of 3 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

Conversion Candle Strength.mq4


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Plscap @flodefacebook Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by PlscapPlscap
8 years, 11 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/24/2017
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...