a few bars candle pattern
Yeah man thanx very much. Working!
Is there a code which after entering in metaeditor, could manage numbers of bars in indicator like on the picture? Because i would put that indi on forum, and as you know every person is different. Someone want 100 bars with indicator, others would only a few bars. And many people are afraid of using or don't know how to use metaeditor at all.
Is there a code which after entering in metaeditor, could manage numbers of bars in indicator like on the picture? Because i would put that indi on forum, and as you know every person is different. Someone want 100 bars with indicator, others would only a few bars. And many people are afraid of using or don't know how to use metaeditor at all.
Picture is from other indicator.

I would use a name like "Calculated_Bars"
But if you use "step"
for (shift = 0; shift < Bars; shift++) //change to for (shift = 0; shift < step; shift++)
Yes, i change to - Calculated_Bars, - it's better that way. Work like a charm.
Again, thanks! You help me a lot. A big friendly hug 4u bro.
Problem in this indicator is that it shows candle pattern through all history of the chart. And i don't heed this, it can be a messy with all these lines channels etc... i would like to pattern show only in a few last candles or to be manually selected how many last candles to show.
I found some other pattern indicators with that function but i failed to implement that part of the code in this indicator. Wont work. So if anybody is in the mood to help i would appreciate this.