//---- 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");
only sharing
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:
MQL4:if (MathAbs(Open[i] - Close[i]) < Point) continue;
hi. i'm studing to code with MT4. can you explain for me that what is the "POINT" in this post.