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
i applied this indicator on mt5, but nothing showing.. up
I gave this to Claude Sonnet 5.5 and it said:
What's good
Bugs, most serious first
1. Out-of-range crash on short histories (lines 63–69).
limit is only clamped on the first call. Say a weekly or monthly chart has 50 bars and minbars is 100. The first call skips the loop and returns rates_total . On the next tick, prev_calculated is 50, so limit is 49. The MA loop then reads n = -1 and the indicator dies with "array out of range". Fix:
if(rates_total <= minbars) return(0); limit = (prev_calculated == 0) ? minbars : MathMax(prev_calculated - 1, minbars);
2. Climax Churn (magenta) is lost on bearish bars (lines 116–121).
The "Climax Sell" block runs after "Climax Churn" and overwrites it. So a bar that is both a volume-range climax and a churn bar only shows magenta if it closed above the midpoint. If it closed below, it shows as plain white. The intended priority is that climax churn beats everything else.
3. The "additional churn check" can never fire (lines 123–125).
IntCandleRange > IntMiddlePrice * 2 expands to high - low > high + low , which is only true if low < 0 . For any normal instrument that condition is dead code. The intent was probably a comparison against an average range or similar, so it needs redefining rather than just fixing.
4. Hard-coded 20 ignores InpLookBack (line 105).
Everything else uses InpLookBack , but the low-volume test uses i - 19, 20 . Any value other than 20 makes the classes inconsistent. If InpLookBack is set above 20, low-volume detection still looks at only 20 bars.
5. Zero-volume data triggers false signals, and the default is a trap.
6. No input validation in OnInit .
InpMAPeriod <= 0 causes a divide by zero. InpLookBack <= 0 breaks the window logic. Return INIT_PARAMETERS_INCORRECT for these.
Smaller points
Claude-corrected and english translated version attached. (Click on "go to discussion" to see the file)