Hello,
I would request for a conversion of the simple indi attahced. It’s a sort of candle-pattern detection.
I would use it on x-ticks time&sales, so please convert it for that kind of chart.
Thanks
Are these candle-patterns similar to the ones that you asked for in this other topic? https://www.prorealcode.com/topic/4-candlestick-pattern-detection/
If yes, please don’t double post.
Next time you asked for a code conversion, please use the page: Ask for a free code conversion
Next time please speak Italian in the italian forum or post in the English forums..
For your next post, please take time to write a more descriptive topic title.
Please respect some basic rules to give us more time to code than to manage/fix your posts.
Totally different. They are 2 different patterns. Additionally the other one works on classic time-based chart. This one on tick-based chart.
I fixed language on the english forum.
Ok, fine, even if I would expect a “sorry” in one of your sentences 😐
Anyway, I will have a look at that code asap.
Here is the code you requested to be translated from Ninjatrader:
// --- settings
MaintainPercentageOfOwnVolume = .50
TakeOutPercentageOfPreviousBarsVolume = .50
DoesntTradeMoreThanPercentageFromOpen = .20
BarMustBeAtLeastThisPercentageOfATR = .85
// --- end of settings
result = 0
prevrange=range[1]
if((range * MaintainPercentageOfOwnVolume) < (Close[0] - Low[0])) then // maintain 50% of own volume
if(Close[0] > Low[1] + (prevRange * TakeOutPercentageOfPreviousBarsVolume)) then // takes out 50% of previous bars range
if((Open[0] - Low[0]) < range * DoesntTradeMoreThanPercentageFromOpen) then // doesn't trade more than 20% of own range lower than open
result = 1
endif
endif
endif
if((range * MaintainPercentageOfOwnVolume) < (High[0] - Close[0])) then // maintain 50% of own volume
if(Close[0] < High[1] - (prevRange * TakeOutPercentageOfPreviousBarsVolume)) then // takes out 50% of previous bars range
if((High[0] - Open[0]) < range * DoesntTradeMoreThanPercentageFromOpen)then // doesn't trade more than 20% of own range lower than open
result = -1
endif
endif
endif
//final cut
if(range < (AverageTrueRange[20](close) * BarMustBeAtLeastThisPercentageOfATR)) then
result=0
endif
if result = 1 then
drawcandle(open,high,low,close) coloured(0,0,0) bordercolor(0,255,0)
elsif result = -1 then
drawcandle(open,high,low,close) coloured(139,0,0) bordercolor(255,69,0)
endif
return
Would be nice to explain how you use it ? Thanks in advance.
Thanks. May i know how it mark the pattern? Some arrows or anything else?
I used the pattern as trigger in confluence with swing structures and fibonacci ratios.
Thanks
Ok i reply to myself. I can see the pattern easily. Just please tell me how to fix the colour of the candlepattern wicks, because they’re a bit hard to see if the desk space is coloured white
Thanks
The patterns are marked the same as in the indicator you provided, the candlesticks are colorized.
You can change the color with R,G,B format at lines 33 and 35.