Pinbar Detector

Discussion in 'MetaTrader Indicators' started by Enivid, Nov 7, 2011.

  1. Taucat

    Taucat Newbie

    2
    0
    1
    Does anyone can recommend the setting only show long tail with small body? Thanks
     
  2. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    Try CustomMaxNoseBodySize = 0.2 and CustomNoseBodyPosition = 0.25.
     
  3. Taucat

    Taucat Newbie

    2
    0
    1
    Thanks admin. Have a nice day
     
  4. speedytina

    speedytina Trader

    13
    3
    19
    Hello Enivid;
    I am trying move the "happy face" signals farther away from candles. I assume that something needs to be changed within following code. I have tried every which way to change the code but the "happy face" signal wont budge.
    What am I doing wrong?

    Code (MQL4):
    //---- indicator buffers mapping
       SetIndexBuffer(0, Down);
       SetIndexBuffer(1, Up);
    //---- drawing settings
       SetIndexStyle(0, DRAW_ARROW);
       SetIndexArrow(0, 74);
       SetIndexStyle(1, DRAW_ARROW);
       SetIndexArrow(1, 74);
    //----
       SetIndexEmptyValue(0, EMPTY_VALUE);
       SetIndexEmptyValue(1, EMPTY_VALUE);
    //---- indicator labels
       SetIndexLabel(0, "Bearish Pinbar");
       SetIndexLabel(1, "Bullish Pinbar");
     
    Last edited by a moderator: Jul 28, 2017
  5. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    Please use code highlighting when inserting pieces of code into your posts.

    I have updated Pinbar Detector to version 1.02. It now has an input parameter (DisplayDistance) to control the distance from the smiling faces to the candles.
     
  6. speedytina

    speedytina Trader

    13
    3
    19
    Thank you Enivid. Exactly what I needed. Sorry about lack of code Highlighting.
     
  7. sholihul

    sholihul Trader

    2
    0
    11
    pinbar detector
     

    Attached Files:

  8. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    And what is the point of this post?
     
  9. sholihul

    sholihul Trader

    2
    0
    11
    only sharing
     
  10. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    But it is already shared here. This thread was created for discussing that very same indicator. The link is in the starting post.
     
  11. How do you change the values of the input variables on the Pinbar Detector? Thought email notification would be helpful so as not to have to stare at the charts continuously and for tweaking purposes.
     
  12. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    You can change the indicator's input paramters via the Inputs tab in the pop-up window that appears when you first attach the indicator to a chart:

    changing inputs.png
     
  13. Tiengrt

    Tiengrt Trader

    2
    0
    6
    May you help me code the CĂștomMinimumnosebodysize— minimum allowed body/length ratio for the Nose and Minimum bodysize?
    I wanna body size longer than 1 pip
     
  14. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    If you just want to be able to set the minimum body size in pips (like 1 pip, for example), you do not need to code something like CustomMinNoseBodySize with body/length ratio calculation. You could just add an extra condition like this:
    Code (MQL4):
    if (MathAbs(Open[i] - Close[i]) < Point) continue;
     
  15. PaulVic

    PaulVic Active Trader

    27
    3
    44
    Hi Enivid, nice indicator. Sorry to be a pain..
    Any chance of adding tick volume to the equation.
    A pin bar on high volume has more chance of being a reversal, if it does not reverse on high volume it becomes a sign of weakness (assuming it was looking like a bullish pin bar), so either way a signal is given. High volume pin bars can be a sign of market makers laying down a support/resistance zone to initiate a trading range.
    I would suggest something along the lines of "where volume is greater than X times the average of the last Y number of bars.
    Help as always appreciated, thanks Paul
     
  16. Enivid

    Enivid Administrator Staff Member

    8,982
    318
    114
    Such a check would be best implemented as a separate expert advisor that incorporates both the output of the Pinbar Detector as a customer indicator and the readings of the tick volume.
     
  17. PaulVic

    PaulVic Active Trader

    27
    3
    44
    OK, thanks for looking into it.
    thanks Paul
     

Share This Page