Forex Blog

First-hand Forex trading experience and information about foreign exchange market that will be useful to traders

Archives

Candle Wicks Length Display Indicator — MT4/MT5

May 8, 2011 (Last updated on January 27, 2020) by

Today, I present an improved version of my CandleWicks indicator. From being a simple alert script it becomes a more or less real indicator with some on-chart display. By the request of one of our forum users, I’ve coded a candle wicks length display feature for this indicator. It will show pip length of wicks (expressed in normal/standard pips) for wicks that are longer than a limit set by the trader via the input parameter. I still don’t want to add this indicator to the list of MetaTrader indicators on the site, because I have no clue how it can be used for trading. As with all other my indicators, it’s available for both MT4 and MT5 and is completely free:

New customizable input parameters:

  • Units — how to measure wicks— in standard pips or in percentage points.
  • DisplayWickLimit — minimum wick length in pips (standard/normal) or percentage points for indicator to display it on chart.
  • DisplayHighWickColor — color for the top wick length.
  • DisplayLowWickColor — color for the bottom wick length.
  • UpperWickLimit — minimum upper wick length in  broker pips or percentage points for alert to trigger.
  • LowerWickLimit — minimum lower wick length in  broker pips or percentage points for alert to trigger.
  • DisplayWickDistance — distance from the candle high to the top wick length display (you will want to adjust it, depending on the chart timeframe and zoom level).
  • IgnoreAlertsOnFirstRun — if set to true, the indicator will ignore alert conditions when indicator is first attached to the chart or the chart’s timeframe/symbol is changed. Subsequent alert conditions will not be ignored.
  • MaxBars — the number of most recent bars to process. 0 — process all bars.
    • Descriptions of the old parameters can be found here.

      Demo image (EUR/USD H1, DisplayWickLimit = 10):

      Indicator displays candle wicks length on chart

      Update 2013-02-08: You can also use the Candle Wicks indicator with percentage display if you need one. No point in using this one as version 1.07 added a switch between pips and % display.

      Update 2018-07-02: The CandleWicksDisplay indicator has been updated to provide alerts via push notifications. It now also employs a smart label positioning algorithm (hence the deprecated DisplayWickDistance input parameter). You will also be able to control more of the indicator’s options via its input parameters.

      Update 2018-07-03: Version 1.03 released to fix a minor issue with IgnoreAlertsOnFirstRun parameter.

      Update 2018-07-16: Version 1.04 released to fix a bug with push notifications not being sent.

      Update 2018-07-18: Version 1.05 fixed another bug with out-of-place alerts and removes a glitch where length labels could be shown on wrong bars.

      Update 2018-07-31: Version 1.06 fixed a few bugs concerning value normalization to the number of decimal places in the trading instruments’ quotes.

      Update 2020-01-27: Version 1.07 adds switching between pips and percentage points, centers the wick length text labels, and makes more informative alerts.

      If you have any comments or questions about this candlestick wick length display indicator, please reply using the form below.

193 Responses to “Candle Wicks Length Display Indicator — MT4/MT5”

  1. Rob Matysiak

    Your blog is amazing!!! I especially appreciate the candle stick diagrams as reference

    Reply

  2. Jernej

    Hi
    This indicator (candle´s wicks) is great, but what i realy need is the same indicator , just showing the complete lenght of the candle, form hi to low. Is it possible??
    Regards, Jernej

    Reply

    admin Reply:

    Yes, you can easily make this change in the code yourself even if you don’t know much about MQL coding.

    Reply

    Jernej Reply:

    Hi thanks for replay, but can you help me please…. What i need to do?? I am not so good in decoding.
    Thanks and regards
    Jernej

    Reply

    admin Reply:

    Sure, what version do you use – MT4 or MT5?

    Reply

    AK Reply:

    how to setting can let it display candle body pips? open price to close price
    thank you very much~

    Reply

    admin Reply:

    Sorry, there are no settings that would let this indicator to display candle body pips. You’ll have to change its code for that.

    Reply

  3. Jernej

    MT4

    Reply

    admin Reply:

    Find the following expressions in the .mq4 file:

    High[i] - Close[i]
    Open[i] - Low[i]
    High[i] - Open[i]
    Close[i] - Low[i]

    and replace with this expression:

    High[i] - Low[i]

    Reply

    M9 Reply:

    Hi, I love your blog.
    I’m trying to apply this modification.. but it’s not easy at all.
    There are several conditions.. could you explain me a lttile bit how to do?

    Thanks

    Reply

    Andriy Moraru Reply:

    How is that not easy? Use Ctrl+H to find and replace all instances of “High[i] – Close[i]” with “High[i] – Low[i]”, all instances of “Open[i] – Low[i]” with “High[i] – Low[i]”, all instances of “High[i] – Open[i]” with “High[i] – Low[i]”, and all instances of “Close[i] – Low[i]” with the same “High[i] – Low[i]”. How difficult can it be?

    Reply

    M9 Reply:

    Hi Adriy,

    I was scared to do that. I’m going to try.
    You’re great. Thanks.

    Reply

    Andriy Moraru Reply:

    Why be scared? If you break something you can always download the initial version again.

    Reply

    M9 Reply:

    Hi,
    I did it but now the platform don’t allow me to add the custom indicator anymore.
    It doesn’t see it.
    Here the part I changed following your instruction.

     if ((TopBottomPercent > 0) && (TopBottomPercent = High[i] - percent) && (Close[i] >= High[i] - percent)) ||
                 ((High[i] <= Low[i] + percent) && (High[i] <= Low[i] + percent)))) continue;
          }
     
          if (Open[i] = DisplayWickLimit * Poin) // Upper wick length display
             {
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i]Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (High[i] - Low[i] >= DisplayWickLimit * Poin) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i - Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);
             }
          }
          else 
          {
             if (High[i] - Low[i] >= DisplayWickLimit * Poin) // Upper wick length display
             {
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i] - Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (Close[i] - Low[i] >= DisplayWickLimit * Poin) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i] - Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);

    anything wrong?

    sorry about that.. Be patient. :((

    Mary

    Andriy Moraru Reply:

    It looks like either you are working with some other code (not the one that is downloaded via the link in this post), or you have replaced a lot of things there… I recommend starting over. Also, when you make the changes and hit “Compile”, you get the list of errors that tell you what exactly is wrong.

  4. Kev

    What a cool indicator. Can it display what percentage % of the candle the wick is, like 50% or something, that would be very useful. I’m no coder by the way but I’d love to see how its done to help me identify candles that are 20% or bigger
    Kev

    Reply

    admin Reply:

    It can with a small modification.

    Reply

    john Reply:

    first time on your site , good. I would like indicator to divide candle into percentages as Kev mentions November 7th 2011. Have you created one . thanks john

    Reply

    Andriy Moraru Reply:

    No, I have not, but Kev has. You can see his code below.

    Reply

  5. Kev

    Could you tell me what this mod is, I’ll have a go at this today.
    I get the math, wick length divided by candle high/low (that is whole candle length incl wick)
    Great indi by the way.
    Kev

    Reply

  6. Kev

    Just done it, was a bit trickier than I thought but maybe you wish to add it to your portfolio. Thank you again for excellent piece of code.

    //+------------------------------------------------------------------+
    //|                                           CandleWicks%Display.mq4 |
    //|                                  Copyright © 2011, Andriy Moraru
    //|      ** modified code to display % of each wick and set limit on number of bars displayed
    //+------------------------------------------------------------------+
    #property copyright "Copyright © 2011, Andriy Moraru"
    #property link      "https://www.earnforex.com"
     
    /*
       Alerts you when the candle's wick (shadow) reaches a certain % length.
       Your e-mail settings are set in Tools -> Options -> Email.
       Also displays the candle wicks' length above and below the candles.
    */
     
    // The indicator uses only objects for display, but the line below is required for it to work.
    #property indicator_chart_window
     
    extern int DisplayWickLimit = 5; // In standard pips
    extern string percent="Set below as the % for candle wicks you want to see so anything over 10% is 10 etc";
    extern int DisplayWickLimitPERCENT = 40; // PERCENTAGE DISPLAY, set to anything over 40%
     
    extern color DisplayHighWickColor = Red;
    extern color DisplayLowWickColor = LimeGreen;
    extern int DisplayWickDistance = 10; // Distance from High to Pip Count
    extern int UpperWickLimit = 10; // In broker pips
    extern int LowerWickLimit = 10; // In broker pips
    extern bool WaitForClose = true; // Wait for a candle to close before checking wicks' length
    extern bool EmailAlert = false;
    extern bool SoundAlert = true;
    extern bool VisualAlert = false;
    extern int how_many_bars = 20;
     
    double length_high=0;
    double length_low=0;
    double rlength_high=0;
    double rlength_low=0;
     
    // Time of the bar of the last alert
    datetime AlertDone;
     
    double Poin;
     
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function                         |
    //+------------------------------------------------------------------+
    int init()
    {
    	Poin = Point;
    	//Checking for unconvetional Point digits number
       if ((Point == 0.00001) || (Point == 0.001)) Poin *= 10;
       return(0);
    }
     
    //+------------------------------------------------------------------+
    //| Custom indicator deinitialization function                       |
    //+------------------------------------------------------------------+
    int deinit()
    {
       for (int i = 0; i  0) counted_bars--;
       int limit = Bars - counted_bars;
       if (limit > how_many_bars) limit = how_many_bars;
     
     
     
       for (int i = 0; i <= limit; i++)
       {
         // need to calculate combinations of how the bar closes +ve or negative
         length_high = ((High[i] - Close[i])/(High[i] - Low[i])*100); 
         length_low =  ((Open[i] - Low[i])/(High[i] - Low[i])*100);
     
         rlength_high = ((High[i] - Open[i])/(High[i] - Low[i])*100); 
         rlength_low = ((Close[i] - Low[i])/(High[i] - Low[i])*100); 
     
          if (Open[i] = DisplayWickLimitPERCENT) // Upper wick length display
             { 
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound(length_high), 0) + "%";
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (length_low >= DisplayWickLimitPERCENT) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound(length_low), 0) + "%";
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);
             }
          }//red is on top
          else 
          {
             if (rlength_high >= DisplayWickLimitPERCENT) // Upper wick length display
             {
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound(rlength_high), 0) + "%";
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (rlength_low >= DisplayWickLimitPERCENT) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((rlength_low)), 0) + "%";
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);
             }
          }
       }
     
       if (AlertDone == Time[index]) return(0); // Already sent an alert for this candle
     
       if (Close[index] >= Open[index]) // Bullish candle
       {
          if ((High[index] - Close[index] >= UpperWickLimit * Point) || (Open[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }
       else // Bearish candle
       {
          if ((High[index] - Open[index] >= UpperWickLimit * Point) || (Close[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }
     
       if (DoAlert)
       {
          datetime tc = TimeCurrent();
          string time = TimeYear(tc) + "-" + TimeMonth(tc) + "-" + TimeDay(tc) + " " + TimeHour(tc) + ":" + TimeMinute(tc);
          if (VisualAlert) Alert(time + " - wick limit reached!");
          if (SoundAlert) PlaySound("alert.wav");
          if (EmailAlert) SendMail("CandleWick Alert", time + " - wick limit reached!");
          AlertDone = Time[index];
       }
     
       return(0);
    }
    //+------------------------------------------------------------------+

    Reply

    admin Reply:

    Big thanks for sharing, but it would be better if you uploaded the file to some file sharing websites and just provided a link here instead of such a long piece of code. Thanks anyway!

    Reply

  7. Kev

    could not code the alert properly though as I am not a coder, sorry

    Reply

  8. Adi

    Hi…. this is wonderful indicator, I have been searching this indicator for a long time, now I’ve found here. However, I modify the indicator for just showing the body length of the candle. The alert notification is so useful for me. Thank you so much. I wish more success for you in this business and ur life.

    Reply

    admin Reply:

    I am glad to help. If you have some time, upload your modification to some file sharing website and post here a link to it. Maybe some other traders will also find it useful. Thanks.

    Reply

    Adi Reply:

    Hi
    I just follow ur instruction above, but to replace with this expression: Open[i] – Close[i] and Close (i) – Open (i). But I‘ve found problem in the visual & sound alert. It doesn’t work properly. The alert still active every start of new candle. Can you improve it? Thanks!

    Reply

    admin Reply:

    Remove lines 117-124 and but the following line of code instead:

    if (MathAbs(Close[index] - Open[index]) >= UpperWickLimit * Point) DoAlert = true;

    Then you will be able to set the minimum candle body size for alert via UpperWickLimit.

    Reply

    Adi Reply:

    Oo yess… I forgot to modify line 117-124. It’s work now. Thank you very much!!
    I like this indicator because the alert will remind me the price movement even in a matter of second. If price move above 7 pips in just 1 minute, that’s a good momentum for scalper to seek opportunity for trade.

    Reply

    admin Reply:

    Interesting usage of the indicator :).

    Reply

    ginola Reply:

    hi Adi, may i request from you to share the indicator. That would help me alot man, thanks in advanced.

    Reply

  9. Sameer

    Thanks a lot for the mq5 code, I’ve basic knowledge with programming,
    and used it to modify the code to alert on specific candle size :)

    Reply

  10. sb

    can this indicator be made to show only candles with open and close within 1/3 or 30% its total lenght? Thanks so very much.

    Reply

    admin Reply:

    Do you mean within only top/bottom 1/3 or any 1/3 (basically the difference between Open and Close to be no more than 1/3 of length)?

    Reply

    sb Reply:

    yes, i mean within only top/bottom 1/3 of candle . thanks very much.

    Reply

    admin Reply:

    Re-download the new version of CandleWicksDisplay. The input parameter is called TopBottomPercent. Set it to 33 to get only lengths for candles with Open&Close inside top/bottom 1/3. You can set it to any percentage value.

    Reply

  11. David

    Thank you very much for the code! It is very close to what I need.
    I changed the code to just calculate the distance of the body in pips,
    however, some candles don’t show a number at all. Couldn’t figure this
    out why some are numbered and some aren’t.

    Can you or another coder help me to make the code show a number for every
    candle and at an attractive distance from the candle?

    Thanks in advance.

    David

    Reply

  12. David

    Oh yeah: I just need the Open and Close Length only or total “body” length in pips.
    Thanks,
    David

    Reply

    jali Reply:

    Oh me too. open -close( body length only). i try to change the coded, but it show no value

    Reply

    admin Reply:

    Try using MathAbs(Close[i] – Open[i])

    Reply

  13. David

    Thank you for the suggested code.

    It still does not count properly. It does on about 80%, but leaves a long trend without any count in some areas.

    Any other ideas would be greatly appreciated.

    Thanks,

    David

    Reply

    admin Reply:

    Did you forget to set DisplayWickLimit to 0?

    Reply

  14. PA Trader

    Hello and thanks for this great indi. I would like to modify it to alert me if 2 conditions: candle body is greater than a number of pips and (in the same time) either one of the wicks is smaller than a number of wicks. Please help and thanks very much!

    Reply

  15. fxNewbie

    i dont understand..how to convert this indicator to show the size of the candle…huhu

    Reply

    chirag Reply:

    I am not understand how to use this indicator. please help me for how to use it.

    Reply

    admin Reply:

    Just attach it to your chart in MetaTrader.

    Reply

  16. john mike kabuye

    This is one mind of a wonderful indicator.My only request is is it posible to code an indicator to show candle counts say i will give an example.

    Assume we are in an uptrend and the close is up for 1st candle then a 2nd candle closes above the close of the 1st candle same with the 3rd candlle closing above thethe close of 2nd etc. my question is now is there a code that can number the close of each candle `s high like 1 2 3 3 4 etc however this code should also be able tovoid the count or start over again if say there are more than 3 lateral candles. and start the count over agin. I want this indicator so much if it can be done.but i want this for mt4 please

    Reply

    admin Reply:

    Interesting idea. You can ask on our forum:
    https://www.earnforex.com/forum/f13/
    Perhaps someone will implement it.

    Reply

  17. cogs

    Hi, Great inidicator.

    As I restart MT4 daily as suggested by metaquotes, when I do the old candle wick numbers are not removed from the chart so I get duplicate numbers and sometime different numbers.

    Is there a way to make this indicator resfresh and clear old objects evry 24hrs?

    Thanks in advance.

    Reply

    admin Reply:

    The indicator is deleting all of its objects on deninitialization. Please make sure you are using the latest version and exit the MetaTrader 4 correctly.

    Reply

  18. cogs

    Terrrific thanks. I discovered your first version some time ago.

    Reply

    admin Reply:

    Glad to help.

    Reply

  19. Jayaprakash

    If i place a cursor on any timeframe candle, it should show the net difference between high and low of that particular candle. Is it possible sir, if yes – please upload the same sir to my email address sir. thankyou.

    Reply

    admin Reply:

    No, sorry. It’s MetaTrader system tooltip that pops up there. Cannot change that.

    Reply

  20. trissuke

    hello admin, can you help me? I need this indicator but I would like an indicator that there is an alarm, for example, open price at 1.23000 then the price moves up 5pips of the open, at the price of 1.23050 I want the alarm to ring. vice versa if the price moves down I want the alarm to ring at a price of 1.22950.

    once again please help me.,
      regards,
    – Facebook https://www.facebook.com/profile.php?id=100004327297451
    – Mail trisnosuke@gmail.com

    Reply

  21. olee

    Thank you for sharing this. Really appreciate it. I have been looking for this for sometime now. When i discovered this blog… wow !
    I don’t have programming background. Just wonder. Can this indicator be made into an EA/robot ? I yes, can we run test to see whether the business argument that we pump in can be tested in order to see the success/failure rate ?

    Reply

    admin Reply:

    It can certainly be made into an EA and tested in a Strategy Tester, but what is a “business argument”?

    Reply

  22. prabhu

    hi i need to know, in that indicator shows many wick values like 5,6,7,8,9,10 and etc so in which point is correct to enter the market and when to exit. please explain, thanks.

    Reply

    admin Reply:

    Sorry, but I don’t think that this indicator can be used for entry signals.

    Reply

  23. Matt

    Hello!
    You guys seem the closest without going over.. :)

    This is really impressive stuff!
    What I’m looking for is a variation of this..
    An indicator that can calculate the percentage difference between the close and the low on a bear candle
    Or the close and the high on a bull candle.
    Then possibly with an ability to only display results if the result is >20% (like a customisable number)

    How would someone do that?

    Reply

    admin Reply:

    What is “the percentage difference between the close and the low”? Could you demonstrate an example, please?

    Reply

  24. Matt

    Hello Admin,

    No probs… Basically what I’d like is a variation on the PERCENTAGE version of this indicator.
    So that:
    a) The percentage of the candle that is wick is displayed above (or below the candle)
    b) You can personalize it. So instead of it generating the percentage for every candle you can adjust it so it only displays a result IF the wick is less then 10% of the overall candle.

    Hope I’ve been clearer here…
    Thanks alot for you help!

    Reply

    admin Reply:

    Why won’t Kev’s version work for you?

    Reply

  25. Matt

    I tried to code the version Kev provided and it generated too many errors?
    Did I do it wrong? Just popped it into mt4 coder and let it do it things?

    Reply

    admin Reply:

    Yeah, it’s bugged. I’ve coded a new one. Please see the post for an updated download link.

    Reply

  26. Matt

    Hey Admin!

    Thanks for all your help with this…
    Where is this new one you coded? I can’t find it?

    Reply

    admin Reply:

    There is an updated appended to the bottom of the post (just below the chart image).

    Reply

  27. Matt

    Hello!

    I’ve worked out a number of different kinks with this indicator to modify it to my personal spec.
    I need help trying to finalize the last part of the process…

    Right now… The Indicator works out PERCENTAGE of wick, and can be modified in the settings, to NOT include results BELOW a certain number (pre-set to ‘5%’)

    What I have done is modify the code to make it:
    A) ONLY show results BELOW a certain number (to discount any results that are above what ever number I preset in the settings Ie: To NOT show me results above 10%
    B) Applied this filter to both TOP and BOTTOM wicks
    C) Made it so it only shows results when BOTH CRITERIA are met.

    What I need your help with is working out how I can get it to display the results of qualifying candles by just a simple Arrow or something… I want to only be notified of candles where the upper and lower wicks are below 10% – I don’t care what number below 10% they specifically are! I just care that my criteria has been met.

    How do I code the percentage wick indicator to simply notify me with an arrow or something instead of numbers top and bottom?!

    Thankyou very much for your help…

    Reply

    admin Reply:

    Please do not insert big chunks of code inside comments. Upload the file to some file sharing hosting and post a link to it.

    Reply

    Matt Reply:

    Apologies, I was trying to demonstrate where I was going wrong in manipulating the code already available.
    Can any one help with the version I’m looking to achieve?

    Reply

    admin Reply:

    Just put the file to Google Drive and post a link here. The code becomes unreadable after you submit it via comment.

    Reply

  28. Matt

    PS:
    That Percentage code one Admin… Awesome work man I wouldn’t know where to start with something like that! Really appreciate the time and effort man…

    Reply

  29. Matt

    In short I tried to make it comply to the conditions I listed before but it completely didn’t work. I don’t think the file would actually be any use to a coder except for a laugh maybe.
    Is there anyone who can help actually code those conditions?

    Right now… The Indicator works out PERCENTAGE of wick, and can be modified in the settings, to NOT include results BELOW a certain number (pre-set to ’5%’)

    What I have done is modify the code to make it:
    A) ONLY show results BELOW a certain number (to discount any results that are above what ever number I preset in the settings Ie: To NOT show me results above 10%
    B) Applied this filter to both TOP and BOTTOM wicks
    1) IF a BULL Bar – Filter Applied to TOP of Wick
    2) If a BEAR Bar – Filter Applied to BOTTOM of Wick
    3) An option to switch on for BOTH sides criteria to be met

    What I need your help with is working out how I can get it to display the results of qualifying candles by just a simple Arrow or something… I want to only be notified of candles where the upper and lower wicks are below 10% – I don’t care what number below 10% they specifically are! I just care that my criteria has been met.

    How do I code the percentage wick indicator to simply notify me with an arrow or something instead of numbers top and bottom?!

    Thankyou very much for your help…

    Reply

    Matt Reply:

    Sorry….

    PPS:

    I TRIED to code the above conditions and ended up with a pie in the face…

    Can someone help me to actually achieve the above coded? I’d really appreciate some help here..

    Thanks alot once again..
    Matt

    Reply

    admin Reply:

    You’ve got me confused. Have you actually modified the code for conditions and now only need to transform percentage display to arrows display?

    Reply

  30. Don

    I need to learn how to change the color or the candles to red and green, and if possible have the back ground color be white on MT5

    Thank you

    Reply

    admin Reply:

    Right-click on the chart -> Properties. You can set any colors for almost anything in the Colors tab there.

    Reply

  31. olee

    Hi. really need your help. can you help me to modify the code to show only wick which is greater than the body length. For example, if the candle body is 10 and the upper or lower wick is greater than 10, then the wick value is displayed. Else, no value is displayed

    Reply

    admin Reply:

    That’s not hard MathAbs(Close – Open) difference is what you need for body length. Just add it to the limit checking conditions.

    Reply

  32. Suresh

    Hi. I need a indicator to alert me for the following condition. 3 bars in a same bullish/bearish pattern and the last one of the three is more than 5 pips length and if the current bar is opposite to the last 3 bars with 5 pip length, then i need the indicator to alert me with beep.

    Reply

  33. mangomax

    All the above is rather confusing.

    I’m a Newbie’s NEWBIE and have absolutely no idea how to write script. Where can I find an indicator that give’s me the length of a candle in pips, wick-to-wick / shadow to shadow, whenever I place the mouse pointer on the candle.

    Many thanks in advance!

    Reply

    Andriy Moraru Reply:

    Sorry, but I don’t know if such an indicator exists.

    Reply

  34. David

    Hello again. I commented way back. I’m still looking for the same thing. I am not a programmer and still cannot get this great indicator to do something very simple. I would like it to display just the body length of the candle from open to close. That it and it would be so great! Can you help me please because using “MathAbs” or anything else has just not worked. Otherwise, I love this indicator!! The more I can automatically see the differences in the candle lengths and the open-close distance at a glance, the better. If this indicator can be modified to easily do both at the same time, that would be awesome! Thanks in advance.

    Reply

  35. David

    Correction (it’s early this morning): If I could see the open-close distance or length of candle body measurement AND the wick distances (shadow lengths) at a glance as well, this would really help me in my analysis. If it is to difficult, I would be happy just knowing the body length of the candle posted on the chart. Thanks!

    Reply

    Andriy Moraru Reply:

    It is difficult to display body length and wicks’ length because it is three values, while there are only two normal positions to place numbers on chart – above and below a candle.

    If you want the indicator to display body length, you will need to change the following (assuming you are using MT4 version):
    On line 85: High[i] – Close[i] to Close[i] – Open[i]
    On line 88: High[i] – Close[i] to Close[i] – Open[i]
    On line 93: Open[i] – Low[i] to Close[i] – Open[i]
    On line 96: Open[i] – Low[i] to Close[i] – Open[i]

    On line 104: High[i] – Open[i] to Open[i] – Close[i]
    On line 107: High[i] – Open[i] to Open[i] – Close[i]
    On line 112: Close[i] – Low[i] to Open[i] – Close[i]
    On line 104: Close[i] – Low[i] to Open[i] – Close[i]

    On line 127: High[index] – Close[index] and Open[index] – Low[index] to Close[index] – Open[index]
    On line 131: High[index] – Open[index] and Close[index] – Low[index] to Close[index] – Open[index]

    Do not forget to set input parameter DisplayWickLimit to 0 if you want it to display body length for all candles.

    Reply

  36. David

    Thanks for your quick response and analysis. You are right, it would be difficult to put three numbers showing these measurements. I input all your figures on each line (wasn’t sure about the two lines #104) and it would not compile completely:
    ‘CandleBodySize.mq4’ CandleBodySize.mq4 1 1
    not all control paths return a value CandleBodySize.mq4 16 1
    not all control paths return a value CandleBodySize.mq4 31 1
    0 error(s), 2 warning(s) 1 3
    I’m sure it is because I might have input them wrong. Thank you again for attempting to help me get candle body length on there. Let me know if you have any suggestions!
    This is a really cool indicator and code :)

    Reply

    Andriy Moraru Reply:

    Yeah, second 104 should be 112, not 104.

    It compiled OK. Those 2 warnings are harmless.

    Reply

  37. Simple

    May I put forward a personal request to customize the alert section of your indicator to show current symbol instead of year-month-date-time?

    Reply

    Andriy Moraru Reply:

    Yeah, please redownload the indicator. It will now show both date and currency pair.

    Reply

    Simple Reply:

    Thanks for the quick response…….keep up the good work. God bless

    Reply

  38. Tomi

    Hi. I just found your excellent indicator.
    I’m quite in the MQL4 programming language and I got the idea that this indicator could say only the wick length of the candle that I’m positioning on with my mouse… Could this problem be solved? If yes, which operator can I use for it? I haven’t fing any solution yet…
    Thanks. Tomi

    Reply

    Andriy Moraru Reply:

    That would be very difficult to do. You would need to capture CHARTEVENT_MOUSE_MOVE event and calculate, which candle it is over using X and Y coordinates. Alternatively, you could use some external DLL to work with mouse. In either case, it is not a trivial thing to code.

    Reply

  39. Zoltan

    Hi !The Candlewickdisplay a very good indicator ,i modified ,now this displays the timeframe in the e-amail alert ,where is exist the wick,but i would like more help pls! I want that ,just alert me,when the wick same long or longer,like the body and i want determined the wick and body ratio for example just alert me ,when the body and wick ratio same,or the wick 2 ,3 times bigger like the body,but displays the length as well. Thank You!

    Reply

  40. Andriy Moraru

    Something like this:

    double ratio = 1;
    double body;
    if (Close[index] >= Open[index]) // Bullish candle
    {
       body = Close[index] - Open[index];
       if ((High[index] - Close[index]) / body >= ratio) || ((Open[index] - Low[index]) / body >= ratio)) DoAlert = true;
    }
    else // Bearish candle
    {
       body = Open[index] - Close[index];
       if (((High[index] - Open[index]) / body >= ratio) || ((Close[index] - Low[index]) / body >= ratio)) DoAlert = true;
    }

    Use 1, 2, 3 or whatever for ratio.

    Reply

  41. Zoltan

    Hi!
    Thank You Your very quick answer and help! One more thing:Wich one number of line need to paste Your answer? ThankYou!

    Reply

    Andriy Moraru Reply:

    How do I know? I’ve never seen the code you are using.

    Reply

  42. Zoltan
    //+------------------------------------------------------------------+
    //|                                           CandleWicksDisplay.mq4 |
    //|                                  Copyright © 2011, Andriy Moraru |
    //+------------------------------------------------------------------+
    #property copyright "Copyright © 2011, Andriy Moraru"
    #property link      "https://www.earnforex.com"
     
    /*
       Alerts you when the candle's wick (shadow) reaches a certain length.
       Your e-mail settings are set in Tools -> Options -> Email.
       Also displays the candle wicks' length above and below the candles.
    */
     
    // The indicator uses only objects for display, but the line below is required for it to work.
    #property indicator_chart_window
     
    extern int DisplayWickLimit = 5; // In standard pips
    extern color DisplayHighWickColor = Red;
    extern color DisplayLowWickColor = LimeGreen;
    extern int DisplayWickDistance = 8; // Distance from High to Pip Count
    extern int UpperWickLimit = 10; // In broker pips
    extern int LowerWickLimit = 10; // In broker pips
    extern bool WaitForClose = true; // Wait for a candle to close before checking wicks' length
    extern bool EmailAlert = false;
    extern bool SoundAlert = false;
    extern bool VisualAlert = false;
     
    // Time of the bar of the last alert
    datetime AlertDone;
     
    double Poin;
     
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function                         |
    //+------------------------------------------------------------------+
    int init()
    {
    	Poin = Point;
    	//Checking for unconvetional Point digits number
       if ((Point == 0.00001) || (Point == 0.001)) Poin *= 10;
       return(0);
    }
     
    //+------------------------------------------------------------------+
    //| Custom indicator deinitialization function                       |
    //+------------------------------------------------------------------+
    int deinit()
    {
       for (int i = 0; i  0) counted_bars--;
       int limit = Bars - counted_bars;
       if (limit > 1200) limit = 1200;
     
       for (int i = 0; i <= limit; i++)
       {
          if (Open[i] = DisplayWickLimit * Poin) // Upper wick length display
             {
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i] - Close[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (Open[i] - Low[i] >= DisplayWickLimit * Poin) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((Open[i] - Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);
             }
          }
          else 
          {
             if (High[i] - Open[i] >= DisplayWickLimit * Poin) // Upper wick length display
             {
                name = "Red-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((High[i] - Open[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], High[i] + DisplayWickDistance * Poin);
                ObjectSetText(name, length, 10, "Verdana", DisplayHighWickColor);
             }
             if (Close[i] - Low[i] >= DisplayWickLimit * Poin) // Lower wick length display
             {
                name = "Green-" + TimeToStr(Time[i], TIME_DATE|TIME_MINUTES);
                length = DoubleToStr(MathRound((Close[i] - Low[i]) / Poin), 0);
                if (ObjectFind(name) != -1) ObjectDelete(name);
                ObjectCreate(name, OBJ_TEXT, 0, Time[i], Low[i]);
                ObjectSetText(name, length, 10, "Verdana", DisplayLowWickColor);
             }
          }
       }
     
       if (AlertDone == Time[index]) return(0); // Already sent an alert for this candle
     
       if (Close[index] >= Open[index]) // Bullish candle
       {
          if ((High[index] - Close[index] >= UpperWickLimit * Point) || (Open[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }
       else // Bearish candle
       {
          if ((High[index] - Open[index] >= UpperWickLimit * Point) || (Close[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }
     
       if (DoAlert)
       {
          datetime tc = TimeCurrent();
          string time = TimeYear(tc) + "-" + TimeMonth(tc) + "-" + TimeDay(tc) + " " + TimeHour(tc) + ":" + TimeMinute(tc);
          if (VisualAlert) Alert(time + " - wick limit reached!");
          if (SoundAlert) PlaySound("alert.wav");
          if (EmailAlert) SendMail("CandleWick Alert"," Symbol="+Symbol()+" Period="+Period() );
          AlertDone = Time[index];
       }
     
       return(0);
    }
    //+------------------------------------------------------------------+

    Reply

    Andriy Moraru Reply:

    Next time, please paste it into pastebin.com and just provide a link here instead of posting the wall of code.

    Replace these lines with my code:

       if (Close[index] >= Open[index]) // Bullish candle
       {
          if ((High[index] - Close[index] >= UpperWickLimit * Point) || (Open[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }
       else // Bearish candle
       {
          if ((High[index] - Open[index] >= UpperWickLimit * Point) || (Close[index] - Low[index] >= LowerWickLimit * Point)) DoAlert = true;
       }

    Reply

  43. Pankaj

    Hi,
    Thanks for this indicator. I have a small favor to ask, if not too much trouble.
    Currently value displayed by this indicator overlaps with candle bodies (I have MT4 765 version). Is it possible to change code to move values above or below candles by customised distance?

    Thanks a lot.
    All the best!

    Reply

    Andriy Moraru Reply:

    There is DisplayWickDistance parameter for that.

    Reply

  44. M9

    Hi Andriy,

    thanks for your help. Now it works!
    And how to measure the distance (pips) from the first close to the second close price?
    Is it possible with this indicator?
    Thanks

    Reply

    Andriy Moraru Reply:

    Try this version:
    CandleWicksDisplay-Close-to-Close.mq4

    It works, but I’d suggest cleaning up and renaming the input parameters to reflect their actual purpose because it is no longer a Wicks display indicator.

    Reply

  45. M9

    I’ll try. :)
    For instance, thank you very much.

    Reply

  46. anirban debnath

    Hi..sir what I have to change in the indicator code to show body length and full length of a candle in mt5??

    Reply

  47. Mob

    Dear Admin,
    Is it possible to have an indicator which will color only the candles whose body is less than or equal to 50% of range. i.e.
    Color candle(e.g. blue color or any other color) = Body <or=50% of range.
    Body=Open-Close
    Range=High-Low
    Thank you in anticipation.
    Warm Regards,
    Mob.

    Reply

    Andriy Moraru Reply:

    Yes, it is possible, but currently, I am not interested in coding it.

    Reply

  48. Prashant Chandola

    Hi,
    Firstly, thanks for this wonderful blog and this interesting Wick indicator which, to some extent fits my need. This email is to ask you if you alo have a modified version of this Indicator that reads only the open and close price of the last candlestick and then shows the difference in percentage, either red or green?
    will appreciate you response,
    with regards,
    Pc

    Reply

    Andriy Moraru Reply:

    Perhaps, this can help you:
    https://www.earnforex.com/metatrader-indicators/Daily-Percentage-Change/

    Reply

  49. Nathan

    Hi,

    Thank you for your programming work.

    Would i be possible to modify to use with 5 digits?

    example, all parameters displayed and input in the 5th decimal.

    best,
    N

    Reply

    Andriy Moraru Reply:

    If you comment out or remove this line in the code, it will be working with whatever digits your feed is in:

       if ((Point == 0.00001) || (Point == 0.001)) Poin *= 10;

    Reply

  50. Nathan

    Thank you very much!

    Reply

  51. Nathan

    If not too much trouble, then would you tell me what line of code changes the distance of Y axis that price label appears above or below candle? I’m getting numbers on top of the candles and want to shift the labels away from candles.

    Reply

    Andriy Moraru Reply:

    No code changed needed. DisplayWickDistance input parameter controls that.

    Reply

  52. Nathan

    thank you. it worked perfectly

    What line of code controls bars back in history?
    ie: if i want to only label the last 2 bars back..

    Reply

    Andriy Moraru Reply:

    The limit is hardwired in this line of code:

       if (limit > 500) limit = 500;

    You can change 500 to 2 and recompile to achieve your goal.

    Reply

  53. JB

    Hi Sir

    i want to make a special indicator with sound alarm can you help

    Reply

    Andriy Moraru Reply:

    Help – probably. What exactly do you want to do and what kind of assistance do you require?

    Reply

    JB Reply:

    is there a way i can talk to you privately

    Reply

    Andriy Moraru Reply:

    Sure. You can use this form: https://www.earnforex.com/contact/

    Reply

  54. roberto

    non funziona

    Reply

    Andriy Moraru Reply:

    Che cosa non funziona?

    Reply

  55. Roberto Pereira

    Would you like to create an indicator to calculate the average size of the wicks? I use this information to choose a good size for stop loss.

    Reply

    Andriy Moraru Reply:

    What’s wrong with the Average True Range (ATR) indicator?

    EDIT: Oh, I did not notice that you need the average size of the wick not candle. I could do it, but I don’t know when I will have time for that.

    Reply

  56. Kernal Tek

    Each time I go to a time frame with the indicator, I sends an alert. I would like it to send an alert only when it reached its goal. Is there a way to get it to not alert whenever I select the time frame?

    Also, is it possible to get to do push notifications like emails?

    Reply

    Kernal Tek Reply:

    Am I doing something wrong? It keeps alerting as soon as I change T/F. That’s not what I want because it doesn’t match what I want it to do.

    Reply

    Andriy Moraru Reply:

    Please download the latest version of the indicator (1.02). If you set IgnoreAlertsOnFirstRun to true, it won’t alert on timeframe changes.

    Reply

  57. Kernal Tek

    I’ll rephrase. Is it possible to get this indicator to ONLY give an alert when the CURRENT candle reaches it’s limit? Is it also possible to have it give push alerts (cell phone) instead of just email? Reason I ask, I’ve been watching charts for months (there is a pattern that doesn’t seem to change) and your indicator is possibly sitting on a gold mine.

    Reply

  58. Kernal Tek

    AMAZING BRO! THANKS :) I’ll test this out and report back.

    Reply

  59. Kernal Tek

    I don’t seem to be getting push alerts to my phone. My other indicator gives push alerts. I turned that one off to see if it would make yours work. Is there a possible issue on my end? Does the push alerts work for you?

    Reply

    Andriy Moraru Reply:

    Yeah, there was a bug. It is now fixed. Please re-download the indicator.

    Reply

  60. Kernal Tek

    YEAH it WORKS! thanks. Let you know my findings

    Reply

  61. Kernal Tek

    So far the first alert has been on point. Just doing baby trades 0.01 made $4.00. Is it possible to have a setting so it only alerts when it retraces through a round number? 20, 50, 80, 100? If not cool anyway.

    Reply

    Andriy Moraru Reply:

    You can set the a alert thresholds via UpperWickLimit and LowerWickLimit input parameters. If you mean several alert levels on one candle – I am currently not planning to add such feature.

    Reply

  62. Kernal Tek

    I’m sometimes getting alerts that don’t match the settings I chose. For example, if set it to 13, it gives an alert and it’s less than 13 (say 9). Also, I set false for when it should check the wicks on candle close and it sends the alert only after the candle has closed.

    Am I doing something wrong?

    Reply

    Andriy Moraru Reply:

    The issue with UpperWickLimit and LowerWickLimit is probably that you set them in standard pips while your broker uses fractional pips (e.g., 5 decimal places in EUR/USD quotes). Those input parameters work with broker pips. So, you have to set them to 130 if you want an alert on 13 standard pips while your broker uses fractional ones.

    The issue with improperly triggering alerts should be fixed in new version 1.05. Please download and let me know if it nails it.

    PS: I really appreciate your efforts to test this indicator and spending your time to report the bugs. Thank you very much!

    Reply

  63. Kernal Tek

    Definitely seems to be working now. My only issue is on my end because sometimes it alerts my phone, other times I have to open the app to get the push alert. Keep you updated.

    Oh yeah, seems to be working the way I thought so far.

    Reply

  64. Kernal Tek

    Indicator seems to be working nicely. I took a 0.10 GBP/AUD lot buy trade last night when I got the alert @ 1.78527 checked today it’s at 1.77221.

    I’m looking at the other pairs too and they are doing good as well for the most part. Keep you updated.

    Reply

    Kernal Tek Reply:

    oops I meant took the trade at 1.75827. Dyslexic lol

    Reply

  65. Kernal Tek

    This indicator is scary accurate lol. Went through my 29 pairs with my brokers. All alerts hit except one. Few currencies never got an alert.

    Do you or anyone you know make EA’s? I would like to test this better (EA for the indicator) but my timezone is 8 hours behind London so I pull all nighters lol. But THANKS this thing looks VERY PROMISING!!

    Reply

  66. Kernal Tek

    I am noticing that the “wait for candle to close before checking wicks” doesn’t seem to work for me. Or maybe I’m interpreting it incorrectly. I would like to only get an alert for candle close after it checks the wicks. That way I can test it better by comparing the 2 settings.

    Right now it gives an alert as soon as the wick size is met whether I close True or False.

    Thanks bro

    Reply

    Andriy Moraru Reply:

    I have just tested it for a few hours, and it seems to be working fine. Could you please provide a detailed example when this happens? When WaitForClose is set to true, the alerts shoot only when a new candle opens and the previous one fits the alert conditions. Also, which platform do you use – MT4 or MT5?

    Reply

  67. Kernal Tek

    Here is a picture of what I mean. Whether I have it on True, or False, I’m getting the alert as soon as the requirement is met. I am using MT4

    Thanks

    https://ibb.co/iFvrET

    Reply

    Andriy Moraru Reply:

    Sorry, I cannot reproduce it. Is it version 1.05 of the indicator? You can see the version in the About tab when you add or edit the indicator.

    Reply

  68. Kernal Tek

    Yes it is 1.05. I will delete the one I have and download it again.

    Reply

  69. Kernal Tek

    update… yeah I’m a dummy lol. I forgot that I had to change it on ALL currency charts as well. I’m too used to using my cockpit where all currencies are at the bottom of the chart you see in the picture.

    Thanks

    Reply

  70. Caio

    Thanks for indicator, very good.

    Reply

  71. Kernal Tek

    Do you have or know of an indicator that works similar to this one but gives alerts and push alerts when the price hits previous day High or Low?

    Reply

    Andriy Moraru Reply:

    No, but for price alerts, you can use the native Alerts system in MT4/MT5.

    Reply

  72. Kernal Tek

    OK thanks. That works. Is it possible to implement this indicator with an EA auto trading type program? So it would take trades on alerts based on certain parameters? S/L T/P entry amount ect?

    Reply

    Andriy Moraru Reply:

    You cannot use this indicator directly in the EA (with the iCustom() function) because it does not use buffers but rather graphical objects to display the candlewicks’ length. However, you can code an expert advisor that would use the indicator’s logic and trade based on it.

    Reply

    Kernal Tek Reply:

    Is that something you can do? (EA)

    This indicator is bonkers lol. Pips on pips. Here are my settings:
    https://postimg.cc/image/715cswc5t/

    Reply

    Andriy Moraru Reply:

    No, but you can hire some coder to do that.

    Reply

    Kernal Tek Reply:

    Do you know anyone? Email link ect?

    Reply

    Andriy Moraru Reply:

    https://www.upwork.com/

    Reply

  73. Callister Brown

    I believe this is how the how candle can be used ,on the montly,weekly and daily time frame for example.let say on the daily timeframe,so one candle daily is broken up on the fragments that consist if bears and bullish candle,so at the start of the week sunday to wednesday lets say a buliish trend,this takes care of the oscillators and rsi that goes into oversold and overbought values.Some where around wedneday the bear bear trend start and slowly u see the wick begining to form,so it can be used effectively on the weekly chart.the indicator will appear as soon as a wick forms.that will give a signal of buy or sell.I dont know if i explained it properly.

    Reply

  74. Firoj

    sir need Basing Candle Indicator for mt4 please make mt4 indicator ,
    Basing candle means candle’s body less than 50% of candle high to low range…. and this type of candle shows in blue color ….. thanks Admin

    Reply

    Andriy Moraru Reply:

    Sorry, we do not accept coding requests, but you can ask in our indicators forum.

    Reply

  75. Kernal Tek

    Is it possible to code this indicator to also give an alert when the candle finishes and the wick is bigger in number size than previous candles? or is that science fiction lol…

    Reply

    Andriy Moraru Reply:

    Yes, that’s possible.

    Reply

    Kernal Tek Reply:

    OK Amazing!

    Reply

  76. Kernal Tek

    I’ve noticed that sometimes I won’t get alerts to my PC MT4 when the candle wick has hit the limit and closed passed the limit. I checked the pair to make sure the indicators are installed and configured correctly. They are, but sometimes I won’t get any alerts.

    Do you have any ideas? Is it my MT4?

    Reply

    Andriy Moraru Reply:

    Let me check. I need to know the currency pair (with the number of decimal places in the quote), timeframe and exact settings of the indicator.

    Reply

  77. Kernal Tek

    It was Eur/USD today. 5 decimal places. It’s happened with a few pairs though. JPY pairs have 3 decimal places. That’s with my broker. If you can fix that and my earlier request, that’s awesome.

    Reply

  78. Kernal Tek
  79. Kernal Tek

    Settings. I use one for true with candle close, one for false on my pairs.
    https://imgur.com/a/4mXp7o4

    Reply

    Andriy Moraru Reply:

    I have tried to reproduce this, but the best case I’ve got is when the Alert only appeared in the Experts tab, but did not pop up the Alerts window. Could you please check if your “skipped alerts” are missing from the Experts tab too? If they are there, then this is some MT4 issue. I have been able to reproduce this behavior only on my VPS running an MT4.

    BTW: I would recommend us switching this discussion to this Forum thread: https://www.earnforex.com/forum/threads/where-can-i-find-indicator-for-candle-wicks.5937/

    The commentary section is not very suitable for this.

    Reply

  80. Kernal Tek

    How hard is it to get this indicator to scan many pairs off of one chart so I don’t have to open multiple charts?

    Reply

  81. TradeRock

    Hi,
    I have downloaded the CandleWickDisplay 1.06 indicator for MT4
    My MT4 platform is version 4.00 Build 1090

    On a chart M15 I see the pips numbers but it will not alert at all
    I have set the
    DisplayWickLimit in standard pips to: 7
    UpperWickLimit in broker pips to: 150 (I can backtest on higher timeframes seeing all wick pips)
    I got WaitForClose to: true
    SoundAlert: true
    VisualAlert: true
    E-mail alert: false
    Notification Alert: true
    IgnoreAlertsOnfirstRun: false (tried with true also)
    TopBottomPercent: 0
    Max Bars: 500
    I will not get any notifications, I have loaded this on all my 24 charts that I have in my mt4 running on the same time
    Waited like 1 hour and no alerts yet, but I see charts running and getting pips numbers displayed all over these charts
    Whats the problem?
    Kind Regards
    Clas

    Reply

    Andriy Moraru Reply:

    Perhaps you did not wait long enough? One hour is just 4 M15 candles. It is quite likely that non of the candles had an upper wick longer than 150 pips (fractional). I have just checked EUR/USD, for example, and today there were no wicks of 150 pips or longer on M15 chart. I have reduced the limits for upper and lower wicks to 20 pips and have received two alerts in half an hour.

    Reply

  82. Micbrook

    Hi how easy would it be to turn this into an EA?
    When a wick above the candle hits x pips, do a bearish trade for x pips… And the opposite for bull trade

    Many thanks

    Reply

    Andriy Moraru Reply:

    Not too difficult, I guess.

    Reply

    Andriy Moraru Reply:

    The problem is that the indicator sets all buffers to MT5 style – ArraySetAsSeries(…, false);
    You need to use the MT5 style alerts code in this case.

    Reply

    Micbrook Reply:

    To keep it simple, I’d have it trade from the next candle. So a candle wick goes to 20 pips, next candle would be a bear trade

    Reply

  83. sam

    Hello

    its really great indicator and so thankful to admin for creating this

    I have a question, Is it possible to have up/dn Arrows on the chart when 2nd candle wicks xx pips higher then 1st candles wicks?

    please advise

    thanks

    Reply

    Andriy Moraru Reply:

    Yes, it is definitely possible. But this is not something I am going to add to this indicator.

    Reply

  84. Pench

    Hi, thanks a lot for this indicator. When I load it in MT4 its showing the pips in two digits, but when I load it in MT5 it show just single digit. I`m doing something wrong maybe.

    Reply

    Andriy Moraru Reply:

    If you are using it on the same currency pair and timeframe, then probably your MT4 platform uses 5 decimal places quotes, while your MT5 uses 4 decimal places quotes. This means that in MT4, the indicator is showing the length in fractional pips, and in MT5 it does so in standard pips.

    Reply

    Pench Reply:

    It`s rounding them up. Same currency, same trader. Is it fixable somewhere in the source? I guess I may sound really stupid, but I`m very new to trading. Sorry

    Reply

    Andriy Moraru Reply:

    You can do lots of things via the source code, but what result are you trying to get?

    Reply

    Pench Reply:

    To see it in MT5 in fractional pips.
    Regards Pench

    Reply

    Andriy Moraru Reply:

    Just comment out or remove the line #47 in the source code and re-compile the indicator.

    Reply

  85. Pench

    And hit send premature, sorry. And to get a notification if the lenght of both wicks is the same.
    Best Regards, Pench

    Reply

    Andriy Moraru Reply:

    You’d have to figure out that modification yourself or hire someone to do that for you.

    Reply

  86. Art Baker

    In mt4 my candlestick wicks disappeared, where did they go, how do I get them back??? Or, what turns on my candlestick wicks?? Please reply.

    Reply

    Andriy Moraru Reply:

    If they are gone from the list of indicators in the Navigator window, you would need to download and install them again. If they are just gone from the chart, then attach the indicator to the chart once more.

    Reply

  87. Mediprana

    Hi there, thanks for great free candlewick display indicator. Do you have mt 5 version of candlewick display percentage?.

    Reply

    Andriy Moraru Reply:

    Hi Mediprana,

    I have updated the post. Please download version 1.07. It allows switching between percentage and pips wick length.

    Reply

  88. Michael

    Hi.

    I am interested in knowing if this indicator can display the average size of x number of bottom and top wicks for the any time frame. I want to be able to set the number of candles used in the calculation and I want the bottom and top wicks averages to be displayed separately. It should work across all time frames.

    For instance the output should be similar to:

    Time Frame: D1
    Number or Candles: 14
    Average up wick size: 2.4 pips
    Average down wick size: -3.6 pips

    Thanks in advance.

    Reply

    Andriy Moraru Reply:

    Hello Michael,

    No this indicator cannot do that.

    Reply

  89. Yvette

    HI.. Can your MT4 ” Candle Wicks length Display Indicator ” Be adjusted 2 – Predict the Next Candlestick Body length??

    Reply

    Andriy Moraru Reply:

    I think if someone knew how to predict the next candlestick’s body length, he would be able to code that.

    Reply

  90. Yvette

    HI again.. Do U – Have an MT4 Software Indicator tool that Can Predict the Next Candlestick Body, In length & – Size??

    Reply

    Andriy Moraru Reply:

    Sorry, but I don’t know how to predict the next candlestick’s body length.

    Reply

Leave a Reply

required
required (will not be published)