Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=1459
Forum: 17 · Topic 1459 · 41 post(s)
Apprentice · Sun Jul 04, 2010 5:18 pm

This indicator will help you find Pin bar a.k.a. “Pinocchio Bar” reversal pattern.
Pin Bar Characteristics Open and Close of pin bar is within left eye Open and Close of pin bar are very close together (the closer the better) Open and Close of pin bar near one end of bar (the closer to an end the better) A long nose that sticks out from surrounding prices (the longer the better)
Candle preceding is called left eye, and following candle is called right eye. Option allows you to define the length of the nose as a percentage of the total length of candle, includ checks of the left eye rule.
If MA filter is ON. We will only have up signals if Price > MA, We will only have down signals if Price < MA
This indicator provides Audio / Email Alerts if and when Pin Bar has been confirmed. Compatibility issue Fix. _Alert helper is not longer needed.

Simplified Pin Bar Characteristics
Open and Close of pin bar are very close together (the closer the better) Open and Close of pin bar near one end of bar (the closer to an end the better) A long nose that sticks out from surrounding prices (the longer the better)
If MA filter is ON. We will only have up signals if Price > MA, We will only have down signals if Price < MA
MTF MCP Simplified Pin Bar List.lua
gravboy · Thu Jul 08, 2010 5:26 pm
This is a great indicator. I love it, helps me see the hammer without looking. . I am no programer, but if you could do the same with a Doji, and a spinning top + Hammer, that would make my day. If you notice, when a market turns on a 5 min chart also a 15 min, you usually get a spinning top or doji, followed by a hammer, then the market turns., If you could make one signal with a group of 2 or more, that would be super.

DOJI, SPINNING TOP,HAMMERS
costock · Thu Jul 22, 2010 8:50 am
Hi
This is a very useful tool, just been evaluating it. I notice that there is a new command terminal:alertEmail which would be really handy to add to indicators like this.
Can you give me some clues how this could be done?
thanks
Apprentice · Thu Jul 22, 2010 10:38 am
For now this option is available only in beta version. I advise you waited until the moment when this functionality is included in the commercial version.
ajgregg720 · Tue Sep 14, 2010 6:20 pm
Any ideas on when this will be in commercial version?
Apprentice · Wed Sep 15, 2010 2:51 am
It is available now.
MrDavide79 · Thu Nov 15, 2012 7:24 am
Hello Apprentice, where is avaible now this indicator?
thanks
MrDavide79 · Thu Nov 15, 2012 8:05 am
Can someone please post a screenshot of parameters ? what means number of parameters? pips or % ? thanks
Apprentice · Fri Nov 16, 2012 4:37 am
Body Lengt, 33 The body is at least 33 percent of the candle.
Body Position, 33 The body is in the first 33 percent of candle. (this can be top or bottom percent)
Nose Leng, 33 Nose or Wick,is at least 33 percent of candle.
MrDavide79 · Sat Nov 17, 2012 10:34 am
Apprentice wrote: Body Lengt, 33 The body is at least 33 percent of the candle.
Body Position, 33 The body is in the first 33 percent of candle. (this can be top or bottom percent)
Nose Leng, 33 Nose or Wick,is at least 33 percent of candle.
sorry but are you sure that Body Lengt, is: The body is at least 33% or The Body is the33%
because if i put Body Lengt, 100% Indicator found candle
MrDavide79 · Sat Nov 17, 2012 10:44 am
i dont understand why if i put Body Lengt, 100%, the Indicator found me PINBAR es. Candle = 50pips BodyLengt 100% = 50pips
this mean that impossible found a PINBAR, correct?
is possible to put % about: Body is % of candle Position Body is% of candle Nose or Wick is % of candle
thanks
Apprentice · Sun Nov 18, 2012 8:25 am
Here we are talking about the largest body value. if you put 100 % all body lengths match
MrDavide79 · Fri Nov 23, 2012 3:02 am
Apprentice wrote: Here we are talking about the largest body value. if you put 100 % all body lengths match
sorry but i dont understand
if i want to put: BODY LENGT MAXIMUM 20% of the candle, which parameter i have to change and what value i have to put ?
the same question is for NOSE LENGT
thanks a lot
Apprentice · Fri Nov 23, 2012 3:56 am
To have 20 % max. Body Lengt, set Body Lengt to 20. Wich and Nose are not same thing!!! Nose is length of the candles, higher / lower then the high / low of the previous candle.
parisblue2 · Wed Sep 04, 2013 12:28 pm
Hola,
Would someone with scripting experience add an email and/or sound alert to the pinbar indicator?
This MA indicator has email and sound alert but I wouldn’t even know where to begin: viewtopic.php?f=17&t=59311&p=89035&hilit=alert#p89035
Would be greatly appreciated.
Apprentice · Thu Sep 05, 2013 2:00 am
Your request is added to the development list.
Apprentice · Thu Sep 05, 2013 8:04 am
Pin Bar Updated. Pin Bar with Alert Added.
parisblue2 · Sat Sep 14, 2013 8:14 am
Thank you for PB with Alert.lua!
bluegreen · Tue Feb 04, 2014 5:51 am
could you help me please, I installed and activated alert.lua and installed pin bar helper with alert and turned on sound alert but I get no sound alert or popup or anything when there’s a pin bar? The arrows do display correctly on the chart and I can see alert is running in strategy dashboard with the green triangle symbol next to it and it’s set to the correct pair. any help would be much appreciated.
Apprentice · Tue Feb 04, 2014 7:28 am
Works as expected for me. Did you set the “Play Sound” to Yes.
One note, this version works, in the End of Turn mode. Alert is given at the end of the turn.
bluegreen · Tue Feb 04, 2014 12:58 pm
yes apprentice I set “play sound” to yes, and I have found through some experimenting that the sound does work but only if I leave a chart with the relevant pair open with the indicator loaded on it (obviously), If I change the chart to another pair then it stops generating sound alerts, but I still don’t get any popup message so I have no idea which pair or time frame has a pin bar. has anyone else had this problem?
Apprentice · Thu Feb 06, 2014 3:25 am
Make sure to have (One) Active _Alert for Each currency pair used.
DAVIDR · Sat Nov 15, 2014 3:42 am
Hi, is there and MT4 version available for this indicator?
All the best.
Apprentice · Sat Nov 15, 2014 5:43 am
Not as this time. Will add your request to the development list.
Delta3 · Sun Feb 22, 2015 5:14 pm
Hello there
Is there a possibility to add an option to make the arrows bigger ?
TIA
Apprentice · Tue Feb 24, 2015 6:27 am
Arrow Size Option Added.
Delta3 · Tue Feb 24, 2015 7:42 am
Chairs
Apprentice · Mon Dec 14, 2015 4:17 am
Compatibility issue Fix. _Alert helper is not longer needed.
If you want to use updated version of this indicator, please make sure to use TS Version 01.14.101415. or higher.
Cactus · Sun Feb 28, 2016 11:13 am
This is useful however I am after a slight modification of this indicator. Instead of displaying arrows, can it be turned into an oscillator that displays value 1 when a bearish pin bar forms and -1 when a bullish pin bar forms? Behaving in a similar fashion to the existing “Elliot Wave Indicator” found in Trading Station (line jumps from 1 to -1), thanks.
Apprentice · Mon Feb 29, 2016 6:08 am
PB Oscillator.lua Added.
Apprentice · Wed Aug 10, 2016 4:57 am
Strategy is available here. viewtopic.php?f=31&t=63747
Apprentice · Wed Mar 22, 2017 5:54 pm
Indicator was revised and updated.
baccicin · Thu Mar 23, 2017 12:02 pm
Hello Apprentice, may I ask to add these conditions? an arrow is shown only if:
Apprentice · Thu Mar 23, 2017 1:36 pm
Your request is added to the development list, Under Id Number 3770 If someone is interested to do this task, please contact me.
Apprentice · Thu Mar 23, 2017 2:05 pm
Try this version. viewtopic.php?f=17&t=64539
Apprentice · Tue Mar 27, 2018 3:50 pm
The Indicator was revised and updated.
Apprentice · Tue Mar 27, 2018 6:05 pm
Simplified Pin Bar.lua added.
chipsoft · Tue Apr 03, 2018 7:10 am
Hi Apprentice, Could you please add one more filter (% Range) to this nice indicator to qualify specific type of Pin bar:
I will appreciate your great work….
Apprentice · Wed Apr 04, 2018 4:39 am
Simplified Pin Bar has been updated accordingly.
chipsoft · Wed Apr 04, 2018 12:41 pm
Thanks very much Apprentice. Could I have multi time frame and multi instruments scanner for this Indicator.
Regards
Apprentice · Thu Apr 05, 2018 5:06 am
MTF MCP Simplified Pin Bar List.lua added. Please re-download Simplified Pin Bar.