Indicators: Pinbar Detector

 

Pinbar Detector:

The indicator which fixes Pin Bars in the chart

Fig.2 The Pinbar Detector indicator

Fig.2 The Pinbar Detector indicator

Author: Nikolay Kositsin

 
An Introduction To The Pin Bar Forex Trading Strategy and How to Trade It Effectively - read this post.
 
on lines 128 and 166 of the compilation warning, corrected it.
check operator precedence for possible error; use parentheses to clarify precedence     pinbardetector.mq5
was
if(!NoseBodyInsideLeftEyeBody || MathMax(Open[bar],Close[bar])<=MathMax(Open[bar+1],Close[bar+1]) && MathMin(Open[bar],Close[bar])>=MathMin(Open[bar+1],Close[bar+1]))

became
if(!NoseBodyInsideLeftEyeBody ||((MathMax(Open[bar],Close[bar])<=MathMax(Open[bar+1],Close[bar+1])) && (MathMin(Open[bar],Close[bar])>=MathMin(Open[bar+1],Close[bar+1]))))


also added pin bar colour to indicator buffers. 0 - green, 1 - red. empty - no signal

was

   SetIndexBuffer(1,Color,INDICATOR_COLOR_INDEX);

became

   SetIndexBuffer(1,Color,INDICATOR_DATA);
Files:
 

I tried to import it using iCustom, but the buffer returns nothing.

Do you have any suggestions?

 
Camunda iCustom, but the buffer returns nothing.

Do you have any suggestions?

Hello Camunda.

If you want an answer in English, change it to English before posting. Or if you want to post in the Portuguese language forum, write in Portuguese instead.

How are your iCustom and copybuffer?

Did you see that the original indicator uses only one buffet but works with colours?

Explaining this will make it easier to get help.

Abs