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:
pinbardetector_fix.mq5
21 kb
Camunda iCustom, but the buffer returns nothing.
Hello Camunda.Do you have any suggestions?
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Pinbar Detector:
The indicator which fixes Pin Bars in the chart
Fig.2 The Pinbar Detector indicator
Author: Nikolay Kositsin