A! Divergence_for_Many_Indicators_v4
I make it lighter version.Easy to change time frame.
Changes Made:
Removed the incorrect line from OnInit(): IndicatorSetInteger(INDICATOR_CALCULATIONS, max_bars_back);
Corrected the loop in OnCalculate() to respect the max_bars_back limit. I replaced the old line if(i > Bars - 50) with the correct logic.