FOREXBESTROBOTS V301:LINEAR REGRESSION CHANNEL GUIDE120.
Indicator explanation only. No tradingstrategy test,orders,fills,returns or
cost-adjusted outcomes. Synthetic fixtures are arithmetic tests,notmarketcandles.
Reuse375702realUSDJPY2024M1records,6265H1(6178full87partial52gaps).
Original daily Forexite ZIPs were not downloaded again. Archive identities and
retained-minute SHA256 are preserved. Reuse is not an unseen holdout.
M1labelsUTCintervalEND;fixedGMT+1waspreviouslyshiftedback1hour. H1(start,end].
Integer source prices are millionths of JPY per USD;public prices are JPY per USD.

REPRODUCE OFFLINE WITH PYTHON3 STANDARD LIBRARY:
python3 authoring/calculate.py
python3 authoring/verify_independently.py
Compare update/assets/v301-regression-real-forex/market.json and
regression-hourly-readings.csv to reference-public/ byte-for-byte.
Both programs were written by the same assistant;noexternal/terminalcertification.
CHECKSUMS.json covers every member except itself. PublicJSON whitespace is compact;
all6265hourmodels/quality/readings remain present. CSV contains allhourreadings.

FROZEN BEFORE CALCULATION:periods20/50/100,main50;k1/2/3,main2.
Trainingx=0..n-1 oldestto newest recorded close;unweighted ordinary least squares.
b=(n*sum(x*C)-sum(x)*sum(C))/(n*sum(x*x)-sum(x)^2);a=meanC-b*meanx.
r=C-(a+b*x);SSE=sum(r^2);descriptiveRMS=sqrt(SSE/n).
Bands=a+b*x +/- k*RMS. Notconfidence/predictionintervals or95percentcoverage.
ResidualSEcomparison=sqrt(SSE/(n-2));rawcloseSDmeasures variation aroundmeanC.
Maxclose residual=max(abs(r)),not High/LowRaffwidth.
R2=1-SSE/SST,unavailable if constantC/SST0. ZeroRMS is a VALID zero-width model,
but residual/RMS is unavailable. No clipping,smoothing,EMAseed orfutureinput.

At selectedobservationi,PRIOR uses ncloses ending i-1,excludesCi,evaluatesx=n.
REFIT uses ncloses ending i,includesselectedCi,evaluatesx=n-1.
Public bars[i].p[n] is the fit ending ON i. Thus priorreading uses bars[i-1].p[n]
forward,while refit uses bars[i].p[n]last. q[n]holds currentresidual/Z/quality/side.
Exact squaredFraction comparisons classify strictoutside,inclusiveboundaryinside.
For eachk1/2/3,dirty source is unclassified,while numbers remain available.
Trainingclean=nfulladjacent sourcehours. Priorobservationclean additionally needs
fullselectedhouradjacentto fitend:n+1hours. Refitclean usesits nincludedhours.
Retainedpartials advancewindows. x countsrecorded bars;acrossgapnotelapsedhours.
A gap may reflect marketclosure;the flag doesnot itself prove a faultyfeed.

Primary:integerprefix/weighted sums,exactnormal-equationSSE/Fractions,70digitroots.
Independent:separateM1grouping,directcenteredOLS,explicitrationalresiduals,90digits.
535958numeric/quality/casecomparisons and62boundaryfixtures passed.
Seven cases are firsteligible under savedrules:positiveprior slope,negative slope,
wickoutsidecloseinside,prioroutside/refitinside,oppositeslopes20/100,unchangedlatest
close,andgap. Each140barwindow mayoverlap. Crops80/140 changeviewonly.
Graphs show ONE selected-window fit,not a historyofrollingfits. A is observation;
B marks oldesttrainingclosewhenvisible. A priorfit projectsone step toA;itsfuture
projection segment is dashed. The refit is a newmodel and cannot replace the
boundary actually available beforethat observation.
