Topic: pin bar (hammer)

Hi, friends. First of all, I want to thank Mr Popov, Footon and all guys that have contributed to improve this wonderful project.

I have been trading Forex since 2008, and I have only had success when I started to trade pin bars (hammers or inverted hammers). Depending on where you find the pin bar it is not difficult to get more than a 75% of success (with a 1:1 ratio) in all pairs.

I want to improve my system, and this program can make it possible. I am null at programming, but I have good ideas. I would really thank if someone could make this indicator, which is just a doji but adding two features:
- position of the closing in relation to the length of the bar (as a percent of that length).
- length of the shadow

I promise to share any knowledge I get with this indicator.

Re: pin bar (hammer)

Hello Jlmh

http://forexsb.com/forum/topic/1799/doj … rn-in-fsb/

Re: pin bar (hammer)

Thanks a lot for your help. I had seen that indicator, which could be the base for what I need.

The doji would need just one more thing to be a hammer: it should close within the highest 30% (if we could change this rate it would be even better) of the bar (oppossite for inverted hammers).

Anyone could add this feature to the indicator?

It is really powerful. Much more than a simple doji. I have backtested it with excel and it is awesome. I just need to play with a pair of additional filters and optimize exits.

I do think that if there is a holy grail in forex it is here.

Thanks for your help guys.

Re: pin bar (hammer)

I Know nothing about programming, but seeing the doji thread, I think it should be something like:

if (Math.Abs(Close[iBar - 1] - High[iBar - 1]) < PERCENT * (High[iBar - 1] - Low[iBar - 1]))

and for inverted hammers:

if (Math.Abs(Close[iBar - 1] - Low[iBar - 1]) < PERCENT * (High[iBar - 1] - Low[iBar - 1]))

It would be great if someone with programming skills could do it.

Thanks again

Re: pin bar (hammer)

Hey Jose!

Take the tiger below for a ride! I used your calculation, although I was tempted to use a bit different one - close is in 1/2, 1/3, 1/4, 1/5 etc of the bar. This version is good for testing each pattern separately.

That's all from me now, good luck!

Post's attachments

Pin Bar.cs 5.85 kb, 28 downloads since 2013-03-06 

You don't have the permssions to download the attachments of this post.

Re: pin bar (hammer)

Oh and if something is dodgy, report here.

Re: pin bar (hammer)

Thanks for your help footon. I will work with it and I hope this work be useful for you. I will keep u updated.

Re: pin bar (hammer)

hello footon
could you post the new format of the pin bar

thanks in advance

Re: pin bar (hammer)

Indi is below, please do give feedback whether it works or not, coding blind still.

Re: pin bar (hammer)

Custom Indicators
File name: Pin Bar.cs
ERROR: Indicator compilation failed in file [Pin Bar.cs]
     Line 57 Column 46: The name 'PrepareUsePrevBarValueCheckBox' does not exist in the current context.

Re: pin bar (hammer)

Thanks for the fast reply!

Try this one.

Post's attachments

Pin Bar.cs 5.98 kb, 22 downloads since 2013-06-22 

You don't have the permssions to download the attachments of this post.

Re: pin bar (hammer)

its working fine many thanks my friend

Another idea

Could you add function shift back 1,2,3,... etc to the indicator

Thanks in advance

Re: pin bar (hammer)

explain more, don't get it now.

Re: pin bar (hammer)

i made a pin bar shift1 indicator from your original one


What i mean that make that shift function included inside one indicator

Post's attachments

pin bar shift1.cs 6.08 kb, 17 downloads since 2013-06-23 

You don't have the permssions to download the attachments of this post.

Re: pin bar (hammer)

i noticed that every time i open fsb it gives me this msg

Custom Indicators
File name: Pin Bar.dll
Indicator 'Pin Bar' found in [Pin Bar.dll] is already loaded.
why is that

Re: pin bar (hammer)

You probably has it as a dll in Library folder and a cs file with different name in Indicators folder.
Switch on "Show loaded indicators" option and you'll see how FSB loads it (as dll or as cs).

Re: pin bar (hammer)

i deleted pin bar from indicator and from dll as well  then i added the indicator pin bar again but still facing the same error

Re: pin bar (hammer)

See loaded indicators list. It must be there loaded from other file.

Re: pin bar (hammer)

i have another pin bar shift1

is it the reason!!!!

Post's attachments

pin bar shift1.cs 6.06 kb, 28 downloads since 2013-06-23 

You don't have the permssions to download the attachments of this post.