Pinbar Detector

DerekC

Trader
Mar 27, 2017
15
1
13
Pennsylvania, US
Enivid, nice work again. Any chance you would have a diagram/picture which would explain the criteria that are customize-able as parameters on the Pinbar. The words in the explanation aren't enough for my visual mind...
 

DerekC

Trader
Mar 27, 2017
15
1
13
Pennsylvania, US
Has anyone on the forum done work with Profiles? I'm wondering how I can put the PinBar Indicator on 20 charts and have it give me an alert when one comes up? I think they have to be active, and I'm wondering if I can make them active, and yet minimized on a separate screen from the one that I may be working on currently.

Thank you,
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,969
798
144
Odessa
www.earnforex.com
Enivid, nice work again. Any chance you would have a diagram/picture which would explain the criteria that are customize-able as parameters on the Pinbar. The words in the explanation aren't enough for my visual mind...

I will see what I can do. Thanks for suggestion!

Has anyone on the forum done work with Profiles? I'm wondering how I can put the PinBar Indicator on 20 charts and have it give me an alert when one comes up? I think they have to be active, and I'm wondering if I can make them active, and yet minimized on a separate screen from the one that I may be working on currently.

Yes, you can create a chart template with Pinbar attached and with alerts settings you need. You would then just apply the template to as many charts as you want. The alerts will work even if the charts are minimized. However, the platform needs to be running to generate alerts. If you need help with templates, here is a short tutorial: https://www.earnforex.com/blog/meta...opying-settings-between-charts-and-platforms/
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,969
798
144
Odessa
www.earnforex.com
Enivid, nice work again. Any chance you would have a diagram/picture which would explain the criteria that are customize-able as parameters on the Pinbar. The words in the explanation aren't enough for my visual mind...

I have added some images to the input parameter descriptions. I hope they help!
 

Freddie

Trader
May 14, 2017
2
0
6
33
Hi,

I have downloaded this for MT5:
https://www.earnforex.com/metatrader-indicators/Pinbar-Detector/

And have been playing around with the settings, however it still shows the same signals, should I reboot MT5?

I am looking for very obvious pin bars, where the tail is very much well below the previous candle, and it just stands out.

Also how can I adjust it, so that it will only show a pin bar that has closed outside of a bollinger band, hence giving a strong reversal to the mean signal.

Thanks
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,969
798
144
Odessa
www.earnforex.com
No, rebooting the MT5 is not required. When you change some input parameters and close the inputs window, the indicator should refresh the display. Please let me know which settings are causing the trouble? What values do you set, what do you change them to, and what currency pair and timeframe you are looking at?
 

Jon02

Trader
May 16, 2017
3
0
6
34
I really like your indicator Enivid, THANK YOU for your hard work.

1 question, I am new to coding, what would the code be to add push notification instead of email notification.
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,969
798
144
Odessa
www.earnforex.com
The simple way would to change the line #222 from:
MQL4:
SendMail(Symbol() + " @ " + per + " - " + dir + " Pinbar", dir + " Pinbar on " + Symbol() + " @ " + per + " as of " + TimeToStr(TimeCurrent()));
to:
MQL4:
SendNotification(Symbol() + " @ " + per + " - " + dir + " Pinbar");

Of course, you may wish to add a separate input parameter for push alerts and add a separate alert check to preserve both types of alerts instead of replacing the email one with the push one.
 
  • Like
Reactions: andrexavier

Murthy

Trader
May 31, 2017
3
0
6
40
Hello Enivid.
Appreciate your hard work.
Could you please let me know how to call this indicator from EA?
What the value will return to EA in case of Bearish / Bullish?
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,969
798
144
Odessa
www.earnforex.com
There are two buffers in the indicator. In case of a bearish pinbar, the buffer #0 returns some non-EMPTY_VALUE (the price level where the smile face is drawn). In case of a bullish pinbar, the buffer #1 returns some non-EMPTY_VALUE (the price level where the smile face is drawn).
 

Murthy

Trader
May 31, 2017
3
0
6
40
There are two buffers in the indicator. In case of a bearish pinbar, the buffer #0 returns some non-EMPTY_VALUE (the price level where the smile face is drawn). In case of a bullish pinbar, the buffer #1 returns some non-EMPTY_VALUE (the price level where the smile face is drawn).
Thank you Enivid for the prompt reply.
In case of Bullish, buffer #1 returning value other than 2147483647.0.
In case of Bearish, buffer #0 returning value other than 2147483647.0.

based on above values i designed my EA and it works to capture Bullish / Bearish.
 

Murthy

Trader
May 31, 2017
3
0
6
40
It is better to check the output against the language constant EMPTY_VALUE rather than against the "raw" number 2147483647.0.
Hello Enivid,

Below is the EA code used by me to call the
Indicator

MQL4:
Mode_Bearish = iCustom(Symbol(),0, "PinbarDetector", 0,true,false,false,0.33,0.4,true,false,false,0.1,0.5,1,0,0.1, 0,1);
Mode_Bullish =  iCustom(Symbol(),0, "PinbarDetector", 0,true,false,false,0.33,0.4,true,false,false,0.1,0.5,1,0,0.1, 1,1);
if(Mode_Bearish != 2147483647.0 || Mode_Bullish != 2147483647.0)
Print("Mode_Bearish",Mode_Bearish, " Mode_Bullish ", Mode_Bullish);

Below is printed in Journal
2016.09.15 00:00:00 PinbarDetector USDJPY,Daily: Alert: Bearish Pinbar on USDJPY @ D1
2016.09.15 00:00:00 PinBarEA USDJPY,Daily: Mode_Baerish 103.5758 Mode_1 2147483647.0

Could you please let me know whether I need to change the way I call the custom indicator and to enable it to capture empty_value.
 
Last edited by a moderator: