Spaces:
Sleeping
Sleeping
Upload 25 files
Browse filesFiles changed (14)
- .gitattributes+1
- models/live_accuracy.json+4040-29
- models/nifty_forecaster/__init__.pyAdded+1
- models/nifty_forecaster/__pycache__/train.cpython-311.pycAdded+3
- models/nifty_forecaster/outputs/forecaster_blend_details.jsonAdded+48
- models/nifty_forecaster/outputs/forecaster_latest.csvAdded+3
- models/nifty_forecaster/outputs/forecaster_latest_forecasts.csvAdded+3
- models/nifty_forecaster/outputs/forecaster_predictions.csvAdded+397
- models/nifty_forecaster/outputs/forecaster_report.mdAdded+34
- models/nifty_forecaster/outputs/forecaster_summary.jsonAdded+76
- models/nifty_forecaster/outputs/forecaster_test_predictions.csvAdded+397
- models/nifty_forecaster/outputs/old_vs_new_tomorrow_prediction_comparison.csvAdded+191
- models/nifty_forecaster/train.pyAdded+1549
- runtime.py+1-1
36 unmodified lines37383936 unmodified linesnifty_backend/__pycache__/runtime.cpython-311.pyc filter=lfs diff=lfs merge=lfs -textbackend/models/yahoo_history_cache.sqlite3 filter=lfs diff=lfs merge=lfs -textbackend/nifty_backend/__pycache__/runtime.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text36 unmodified lines3738394036 unmodified linesnifty_backend/__pycache__/runtime.cpython-311.pyc filter=lfs diff=lfs merge=lfs -textbackend/models/yahoo_history_cache.sqlite3 filter=lfs diff=lfs merge=lfs -textbackend/nifty_backend/__pycache__/runtime.cpython-311.pyc filter=lfs diff=lfs merge=lfs -textmodels/nifty_forecaster/__pycache__/train.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243{"tomorrow": {"entries": [{"date": "2026-06-02","prediction": "DOWN","actual": "UP","correct": false}],"accuracy": 0.7035175879396985,"total": 199,"correct_count": 140,"live_total": 1,"live_correct_count": 0,"live_accuracy": 0.0},"t5": {"entries": [{"date": "2026-06-02","prediction": "DOWN","actual": "UP","correct": false}],"accuracy": 0.648936170212766,"total": 188,"correct_count": 122,"live_total": 1,"live_correct_count": 0,"live_accuracy": 0.0},"tplus1": {"entries": [],"accuracy": 0.6368421052631579,"total": 190,"correct_count": 121,"live_total": 0,"live_correct_count": 0,"live_accuracy": null}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054{"tomorrow": {"entries": [{"date": "2025-08-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-21","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-22","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-08-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-28","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-08-29","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-01","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-02","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-03","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-05","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-08","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-09","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-15","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-09","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-14","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-15","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-23","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-28","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-29","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-31","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-04","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-06","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-07","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-13","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-14","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-18","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-19","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-21","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-26","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-28","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-01","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-02","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-03","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-05","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-10","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-15","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-16","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-17","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-18","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-23","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-29","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-30","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-31","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-02","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-06","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-07","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-14","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-01-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-20","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-21","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-23","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-02","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-06","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-09","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-12","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-19","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-23","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-26","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-27","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-02","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-04","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-05","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-06","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-11","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-03-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-03-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-24","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-27","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-02","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-06","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-07","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-08","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-16","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-20","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-21","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-23","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-28","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-29","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-07","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-11","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-15","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-18","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-05-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-05-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-27","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-29","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-06-01","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-06-02","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-06-03","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-06-04","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-06-05","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-06-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-06-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"}],"accuracy": null,"total": 0,"correct_count": 0,"backtest_count": 198,"live_count": 0},"t5": {"entries": [{"date": "2025-08-18","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-08-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-21","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-25","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-28","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-29","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-02","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-03","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-04","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-10","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-12","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-15","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-18","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-19","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-23","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-26","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-29","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-30","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-09","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-13","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-14","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-21","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-29","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-31","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-03","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-04","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-06","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-07","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-11","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-12","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-18","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-19","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-21","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-26","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-27","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-28","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-02","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-03","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-04","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-05","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-10","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-11","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-16","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-17","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-24","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-29","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-30","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-31","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-02","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-06","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-07","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-09","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-12","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-01-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-01-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-20","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-21","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-22","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-29","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-01-30","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-02","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-03","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-10","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-11","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-13","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-18","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-20","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-23","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-25","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-27","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-02","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-03-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-05","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-06","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-03-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-11","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-12","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-13","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-03-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-19","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-24","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-27","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-30","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-01","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-02","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-07","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-08","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-10","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-13","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-16","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-20","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-21","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-22","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-28","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-07","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-11","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-13","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-15","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-18","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-05-19","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"}],"accuracy": null,"total": 0,"correct_count": 0,"backtest_count": 187,"live_count": 0},"tplus1": {"entries": [{"date": "2025-08-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-08-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-13","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-14","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-08-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-08-21","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-25","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-08-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-28","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-08-29","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-01","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-02","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-04","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-05","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-08","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-15","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-16","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-18","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-09-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-22","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-09-26","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-09-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-09-30","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-10","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-14","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-10-24","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-27","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-10-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-10-30","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-10-31","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-03","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-04","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-06","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-07","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-11","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-12","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-18","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-19","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-11-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-25","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-11-26","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-11-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-11-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-01","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-02","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-03","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-05","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-08","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-09","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-10","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-11","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-15","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-16","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-17","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2025-12-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-19","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-23","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2025-12-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-29","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2025-12-30","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2025-12-31","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-01","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-02","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-01-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-06","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-09","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-12","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-01-20","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-21","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-22","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-23","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-01-27","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-28","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-01-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-01","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-02","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-03","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-04","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-05","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-09","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-10","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-11","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-12","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-13","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-17","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-18","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-02-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-20","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-02-23","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-02-26","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-02-27","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-02","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-04","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-05","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-06","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-09","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-11","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-12","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-13","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-16","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-18","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-19","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-20","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-03-24","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-25","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-03-27","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-03-30","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-01","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-02","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-09","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-10","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-13","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-15","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-16","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-17","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-21","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-22","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-04-23","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-24","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-27","prediction": "DOWN","actual": "UP","correct": false,"source": "backtest"},{"date": "2026-04-28","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-04-29","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-04-30","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-04","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-05","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-06","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-07","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-08","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-11","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-12","prediction": "DOWN","actual": "DOWN","correct": true,"source": "backtest"},{"date": "2026-05-13","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-14","prediction": "UP","actual": "UP","correct": true,"source": "backtest"},{"date": "2026-05-15","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-18","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-19","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-20","prediction": "UP","actual": "DOWN","correct": false,"source": "backtest"},{"date": "2026-05-21","prediction": "UP","actual": "UP","correct": true,"source": "backtest"}],"accuracy": null,"total": 0,"correct_count": 0,"backtest_count": 190,"live_count": 0}}
1"""Daily forecaster package for NIFTY 50 and NIFTY BANK."""123version https://git-lfs.github.com/spec/v1oid sha256:9b5546ddd8a8d9b7f823a9ab7eb795a46e93ced76a3ef8d0f7b641874306f601size 108230123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{
"NIFTY 50": {
"threshold": 0.534,
"validation_accuracy": 0.5886524822695035,
"test_accuracy": 0.7070707070707071,
"validation_prob_std": 0.06819211926509922,
"test_prob_std": 0.06318472000353532,
"test_prob_min": 0.3750263841589948,
"test_prob_max": 0.6422291532299811,
"active_models": [
{
"model": "nifty50_price_options_2024apr_d4_l10_s7",
"train_end": "2024-04-30",
"weight": 0.34099525,
"feature_count": 204
},
{
"model": "nifty50_daily_all_2024h1_top140_d4_l10_s11",
"train_end": "2024-06-30",
"weight": 0.4951866,
"feature_count": 140
},
{
"model": "nifty50_intraday_all_2025q1_top160_d4_l10_s11",
"train_end": "2025-03-31",
"weight": 0.16381815,
"feature_count": 160
}
]
},
"NIFTY BANK": {
"threshold": 0.441,
"validation_accuracy": 0.5212765957446809,
"test_accuracy": 0.5606060606060606,
"validation_prob_std": 0.0770807821599353,
"test_prob_std": 0.08243050415771436,
"test_prob_min": 0.3052152550867235,
"test_prob_max": 0.8752468404729982,
"active_models": [
{
"model": "intraday_logit_2024h1",
"train_end": "2024-06-30",
"weight": 1.0,
"feature_count": 543
}
]
}
}123symbol,latest_forecast_date,latest_forecast_for,latest_forecast_prob_up,latest_forecast_signal,threshold,validation_accuracy,test_accuracy,validation_prob_std,test_prob_std,test_prob_min,test_prob_max,target_low,target_high
NIFTY 50,2026-06-09,next trading bar after 2026-06-09,0.5295140762033614,UP,0.534,0.5886524822695035,0.7070707070707071,0.06819211926509922,0.06318472000353532,0.3750263841589948,0.6422291532299811,0.6,0.605
NIFTY BANK,2026-06-09,next trading bar after 2026-06-09,0.5126390845653349,UP,0.441,0.5212765957446809,0.5606060606060606,0.0770807821599353,0.08243050415771436,0.3052152550867235,0.8752468404729982,0.6,0.605123symbol,latest_forecast_date,latest_forecast_for,latest_forecast_prob_up,latest_forecast_signal,threshold,validation_accuracy,test_accuracy,validation_prob_std,test_prob_std,test_prob_min,test_prob_max,target_low,target_high
NIFTY 50,2026-06-09,next trading bar after 2026-06-09,0.5295140762033614,UP,0.534,0.5886524822695035,0.7070707070707071,0.06819211926509922,0.06318472000353532,0.3750263841589948,0.6422291532299811,0.6,0.605
NIFTY BANK,2026-06-09,next trading bar after 2026-06-09,0.5126390845653349,UP,0.441,0.5212765957446809,0.5606060606060606,0.0770807821599353,0.08243050415771436,0.3052152550867235,0.8752468404729982,0.6,0.605123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397forecast_date,target_date,target,symbol,prob_up,raw_pred,pred,decision_overlay_changed,threshold
2025-08-18,2025-08-19,1.0,NIFTY 50,0.550673919371572,1,1,False,0.534
2025-08-19,2025-08-20,1.0,NIFTY 50,0.46984246397060614,0,0,False,0.534
2025-08-20,2025-08-21,1.0,NIFTY 50,0.5107609930854999,0,0,False,0.534
2025-08-21,2025-08-22,0.0,NIFTY 50,0.4632950374631059,0,1,True,0.534
2025-08-22,2025-08-25,1.0,NIFTY 50,0.6003826831751942,1,1,False,0.534
2025-08-25,2025-08-26,0.0,NIFTY 50,0.47659600602735025,0,0,False,0.534
2025-08-26,2025-08-28,0.0,NIFTY 50,0.5469654969365931,1,1,False,0.534
2025-08-28,2025-08-29,0.0,NIFTY 50,0.575833242456593,1,1,False,0.534
2025-08-29,2025-09-01,1.0,NIFTY 50,0.43086324146866484,0,0,False,0.534
2025-09-01,2025-09-02,0.0,NIFTY 50,0.5297880876220555,0,0,False,0.534
2025-09-02,2025-09-03,1.0,NIFTY 50,0.4033685641524835,0,0,False,0.534
2025-09-03,2025-09-04,1.0,NIFTY 50,0.5957872785915961,1,1,False,0.534
2025-09-04,2025-09-05,1.0,NIFTY 50,0.5962765283135939,1,1,False,0.534
2025-09-05,2025-09-08,1.0,NIFTY 50,0.5239958967296331,0,1,True,0.534
2025-09-08,2025-09-09,1.0,NIFTY 50,0.5857915061019529,1,1,False,0.534
2025-09-09,2025-09-10,1.0,NIFTY 50,0.565997089967574,1,1,False,0.534
2025-09-10,2025-09-11,1.0,NIFTY 50,0.5537788359824963,1,1,False,0.534
2025-09-11,2025-09-12,1.0,NIFTY 50,0.5815708481275226,1,1,False,0.534
2025-09-12,2025-09-15,0.0,NIFTY 50,0.5492869491896248,1,1,False,0.534
2025-09-15,2025-09-16,1.0,NIFTY 50,0.5415783546835594,1,1,False,0.534
2025-09-16,2025-09-17,1.0,NIFTY 50,0.5163222680372355,0,0,False,0.534
2025-09-17,2025-09-18,1.0,NIFTY 50,0.5538444392275885,1,1,False,0.534
2025-09-18,2025-09-19,0.0,NIFTY 50,0.5847717751384091,1,0,True,0.534
2025-09-19,2025-09-22,0.0,NIFTY 50,0.5694816674251351,1,0,True,0.534
2025-09-22,2025-09-23,0.0,NIFTY 50,0.5182989023287483,0,0,False,0.534
2025-09-23,2025-09-24,0.0,NIFTY 50,0.4807204485698447,0,0,False,0.534
2025-09-24,2025-09-25,0.0,NIFTY 50,0.49974101910385627,0,0,False,0.534
2025-09-25,2025-09-26,0.0,NIFTY 50,0.4606135690412628,0,0,False,0.534
2025-09-26,2025-09-29,1.0,NIFTY 50,0.56878595491037,1,1,False,0.534
2025-09-29,2025-09-30,0.0,NIFTY 50,0.5319502400859184,0,0,False,0.534
2025-09-30,2025-10-01,1.0,NIFTY 50,0.5650564023420587,1,1,False,0.534
2025-10-01,2025-10-03,1.0,NIFTY 50,0.5848533269325822,1,1,False,0.534
2025-10-03,2025-10-06,1.0,NIFTY 50,0.5452794088802748,1,1,False,0.534
2025-10-06,2025-10-07,1.0,NIFTY 50,0.593681352002759,1,1,False,0.534
2025-10-07,2025-10-08,0.0,NIFTY 50,0.4863990507822798,0,0,False,0.534
2025-10-08,2025-10-09,1.0,NIFTY 50,0.5568964990350117,1,1,False,0.534
2025-10-09,2025-10-10,1.0,NIFTY 50,0.5349940191158246,1,1,False,0.534
2025-10-10,2025-10-13,0.0,NIFTY 50,0.4398452913794245,0,0,False,0.534
2025-10-13,2025-10-14,0.0,NIFTY 50,0.6015978526245037,1,1,False,0.534
2025-10-14,2025-10-15,1.0,NIFTY 50,0.4660214007370931,0,0,False,0.534
2025-10-15,2025-10-16,1.0,NIFTY 50,0.5958825978983633,1,1,False,0.534
2025-10-16,2025-10-17,1.0,NIFTY 50,0.47179983333858927,0,0,False,0.534
2025-10-17,2025-10-20,1.0,NIFTY 50,0.6159526779870321,1,1,False,0.534
2025-10-20,2025-10-21,0.0,NIFTY 50,0.6422291532299811,1,1,False,0.534
2025-10-21,2025-10-23,1.0,NIFTY 50,0.5548476377615369,1,1,False,0.534
2025-10-23,2025-10-24,0.0,NIFTY 50,0.6019813520562289,1,0,True,0.534
2025-10-24,2025-10-27,1.0,NIFTY 50,0.6054727479455392,1,1,False,0.534
2025-10-27,2025-10-28,0.0,NIFTY 50,0.6267951335515416,1,1,False,0.534
2025-10-28,2025-10-29,1.0,NIFTY 50,0.529034793431079,0,0,False,0.534
2025-10-29,2025-10-30,0.0,NIFTY 50,0.5331897506060365,0,0,False,0.534
2025-10-30,2025-10-31,0.0,NIFTY 50,0.4612013516063834,0,0,False,0.534
2025-10-31,2025-11-03,1.0,NIFTY 50,0.5358456468866831,1,1,False,0.534
2025-11-03,2025-11-04,0.0,NIFTY 50,0.548884410683478,1,1,False,0.534
2025-11-04,2025-11-06,0.0,NIFTY 50,0.4031090121205081,0,0,False,0.534
2025-11-06,2025-11-07,0.0,NIFTY 50,0.41411269780012233,0,0,False,0.534
2025-11-07,2025-11-10,1.0,NIFTY 50,0.5415102435120893,1,1,False,0.534
2025-11-10,2025-11-11,1.0,NIFTY 50,0.5938802636987449,1,1,False,0.534
2025-11-11,2025-11-12,1.0,NIFTY 50,0.5662551095025361,1,1,False,0.534
2025-11-12,2025-11-13,1.0,NIFTY 50,0.5714914773844914,1,1,False,0.534
2025-11-13,2025-11-14,1.0,NIFTY 50,0.40639726876339377,0,0,False,0.534
2025-11-14,2025-11-17,1.0,NIFTY 50,0.5216324609441019,0,0,False,0.534
2025-11-17,2025-11-18,0.0,NIFTY 50,0.433597888439016,0,0,False,0.534
2025-11-18,2025-11-19,1.0,NIFTY 50,0.42191523985590873,0,0,False,0.534
2025-11-19,2025-11-20,1.0,NIFTY 50,0.6068997993300329,1,0,True,0.534
2025-11-20,2025-11-21,0.0,NIFTY 50,0.4242586816473318,0,0,False,0.534
2025-11-21,2025-11-24,0.0,NIFTY 50,0.5840570286651197,1,0,True,0.534
2025-11-24,2025-11-25,0.0,NIFTY 50,0.5881340246769219,1,0,True,0.534
2025-11-25,2025-11-26,1.0,NIFTY 50,0.6129044572423406,1,0,True,0.534
2025-11-26,2025-11-27,1.0,NIFTY 50,0.6001834336603084,1,1,False,0.534
2025-11-27,2025-11-28,0.0,NIFTY 50,0.5465846661202793,1,1,False,0.534
2025-11-28,2025-12-01,0.0,NIFTY 50,0.5863369161532617,1,1,False,0.534
2025-12-01,2025-12-02,0.0,NIFTY 50,0.44235750445202715,0,0,False,0.534
2025-12-02,2025-12-03,0.0,NIFTY 50,0.5423233175792196,1,1,False,0.534
2025-12-03,2025-12-04,1.0,NIFTY 50,0.5534585331276892,1,1,False,0.534
2025-12-04,2025-12-05,1.0,NIFTY 50,0.5337024112788841,0,0,False,0.534
2025-12-05,2025-12-08,0.0,NIFTY 50,0.5712813422590938,1,1,False,0.534
2025-12-08,2025-12-09,0.0,NIFTY 50,0.4395054437694398,0,0,False,0.534
2025-12-09,2025-12-10,0.0,NIFTY 50,0.4980523601817214,0,0,False,0.534
2025-12-10,2025-12-11,1.0,NIFTY 50,0.565657228898123,1,1,False,0.534
2025-12-11,2025-12-12,1.0,NIFTY 50,0.5746715806813223,1,1,False,0.534
2025-12-12,2025-12-15,0.0,NIFTY 50,0.4220568285799748,0,0,False,0.534
2025-12-15,2025-12-16,0.0,NIFTY 50,0.46088119480548073,0,0,False,0.534
2025-12-16,2025-12-17,0.0,NIFTY 50,0.5000953129429735,0,0,False,0.534
2025-12-17,2025-12-18,0.0,NIFTY 50,0.3988020111495848,0,0,False,0.534
2025-12-18,2025-12-19,1.0,NIFTY 50,0.5678784849744942,1,1,False,0.534
2025-12-19,2025-12-22,1.0,NIFTY 50,0.6000632269174573,1,1,False,0.534
2025-12-22,2025-12-23,1.0,NIFTY 50,0.6163293810213352,1,0,True,0.534
2025-12-23,2025-12-24,0.0,NIFTY 50,0.580484045665327,1,0,True,0.534
2025-12-24,2025-12-26,0.0,NIFTY 50,0.5759352105038948,1,0,True,0.534
2025-12-26,2025-12-29,0.0,NIFTY 50,0.5074748001131483,0,0,False,0.534
2025-12-29,2025-12-30,1.0,NIFTY 50,0.4739704317372523,0,0,False,0.534
2025-12-30,2025-12-31,1.0,NIFTY 50,0.5358962850749209,1,1,False,0.534
2025-12-31,2026-01-01,0.0,NIFTY 50,0.4692123737240301,0,0,False,0.534
2026-01-01,2026-01-02,1.0,NIFTY 50,0.5296741160122739,0,1,True,0.534
2026-01-02,2026-01-05,0.0,NIFTY 50,0.5894790893053418,1,0,True,0.534
2026-01-05,2026-01-06,0.0,NIFTY 50,0.5941095615465644,1,0,True,0.534
2026-01-06,2026-01-07,0.0,NIFTY 50,0.5649513820646873,1,0,True,0.534
2026-01-07,2026-01-08,0.0,NIFTY 50,0.47329986322318746,0,0,False,0.534
2026-01-08,2026-01-09,0.0,NIFTY 50,0.5113991826194382,0,0,False,0.534
2026-01-09,2026-01-12,1.0,NIFTY 50,0.559521016715203,1,1,False,0.534
2026-01-12,2026-01-13,0.0,NIFTY 50,0.5119863308182176,0,0,False,0.534
2026-01-13,2026-01-14,0.0,NIFTY 50,0.4721994285947515,0,0,False,0.534
2026-01-14,2026-01-16,1.0,NIFTY 50,0.44782721932241576,0,0,False,0.534
2026-01-16,2026-01-19,0.0,NIFTY 50,0.5284886440966932,0,0,False,0.534
2026-01-19,2026-01-20,0.0,NIFTY 50,0.5118411601145365,0,0,False,0.534
2026-01-20,2026-01-21,0.0,NIFTY 50,0.4107099873243679,0,0,False,0.534
2026-01-21,2026-01-22,1.0,NIFTY 50,0.5634667834415262,1,1,False,0.534
2026-01-22,2026-01-23,0.0,NIFTY 50,0.601243568514449,1,1,False,0.534
2026-01-23,2026-01-27,1.0,NIFTY 50,0.527768570427711,0,1,True,0.534
2026-01-27,2026-01-28,1.0,NIFTY 50,0.5612141182671957,1,1,False,0.534
2026-01-28,2026-01-29,1.0,NIFTY 50,0.5568177629714751,1,1,False,0.534
2026-01-29,2026-01-30,0.0,NIFTY 50,0.5268602943541862,0,0,False,0.534
2026-01-30,2026-02-01,0.0,NIFTY 50,0.46670774075183447,0,0,False,0.534
2026-02-01,2026-02-02,1.0,NIFTY 50,0.5177079461787618,0,0,False,0.534
2026-02-02,2026-02-03,1.0,NIFTY 50,0.5678782913417888,1,1,False,0.534
2026-02-03,2026-02-04,1.0,NIFTY 50,0.4614500543892204,0,1,True,0.534
2026-02-04,2026-02-05,0.0,NIFTY 50,0.4886936769685186,0,0,False,0.534
2026-02-05,2026-02-06,1.0,NIFTY 50,0.40955713700012886,0,0,False,0.534
2026-02-06,2026-02-09,1.0,NIFTY 50,0.5849847365736586,1,1,False,0.534
2026-02-09,2026-02-10,1.0,NIFTY 50,0.6085282990939179,1,1,False,0.534
2026-02-10,2026-02-11,1.0,NIFTY 50,0.5227805299218083,0,1,True,0.534
2026-02-11,2026-02-12,0.0,NIFTY 50,0.5464761411738286,1,1,False,0.534
2026-02-12,2026-02-13,0.0,NIFTY 50,0.4006181838105184,0,0,False,0.534
2026-02-13,2026-02-16,1.0,NIFTY 50,0.5311860487441447,0,1,True,0.534
2026-02-16,2026-02-17,1.0,NIFTY 50,0.5377001886513697,1,1,False,0.534
2026-02-17,2026-02-18,1.0,NIFTY 50,0.5615366193607534,1,1,False,0.534
2026-02-18,2026-02-19,0.0,NIFTY 50,0.6136933713501893,1,1,False,0.534
2026-02-19,2026-02-20,1.0,NIFTY 50,0.498176437072616,0,0,False,0.534
2026-02-20,2026-02-23,1.0,NIFTY 50,0.594829954555716,1,1,False,0.534
2026-02-23,2026-02-24,0.0,NIFTY 50,0.4166689173622839,0,0,False,0.534
2026-02-24,2026-02-25,1.0,NIFTY 50,0.5985468333365371,1,1,False,0.534
2026-02-25,2026-02-26,1.0,NIFTY 50,0.5979095639925474,1,1,False,0.534
2026-02-26,2026-02-27,0.0,NIFTY 50,0.46720512169164585,0,0,False,0.534
2026-02-27,2026-03-02,0.0,NIFTY 50,0.4361185094145455,0,0,False,0.534
2026-03-02,2026-03-04,0.0,NIFTY 50,0.4767353007252328,0,0,False,0.534
2026-03-04,2026-03-05,1.0,NIFTY 50,0.5641365980144816,1,1,False,0.534
2026-03-05,2026-03-06,0.0,NIFTY 50,0.4324842189919343,0,0,False,0.534
2026-03-06,2026-03-09,0.0,NIFTY 50,0.4226876694983396,0,0,False,0.534
2026-03-09,2026-03-10,1.0,NIFTY 50,0.5694639376311524,1,1,False,0.534
2026-03-10,2026-03-11,0.0,NIFTY 50,0.5277170416359862,0,1,True,0.534
2026-03-11,2026-03-12,0.0,NIFTY 50,0.5068537486505618,0,0,False,0.534
2026-03-12,2026-03-13,0.0,NIFTY 50,0.3855546035303994,0,0,False,0.534
2026-03-13,2026-03-16,1.0,NIFTY 50,0.4847763152534577,0,0,False,0.534
2026-03-16,2026-03-17,1.0,NIFTY 50,0.5841082171076085,1,1,False,0.534
2026-03-17,2026-03-18,1.0,NIFTY 50,0.5865008249759258,1,1,False,0.534
2026-03-18,2026-03-19,0.0,NIFTY 50,0.417958532652347,0,0,False,0.534
2026-03-19,2026-03-20,1.0,NIFTY 50,0.5151493092300841,0,0,False,0.534
2026-03-20,2026-03-23,0.0,NIFTY 50,0.39760489253859893,0,0,False,0.534
2026-03-23,2026-03-24,1.0,NIFTY 50,0.5835135766099478,1,1,False,0.534
2026-03-24,2026-03-25,1.0,NIFTY 50,0.4811365807451965,0,1,True,0.534
2026-03-25,2026-03-27,0.0,NIFTY 50,0.6205108391194238,1,0,True,0.534
2026-03-27,2026-03-30,0.0,NIFTY 50,0.3961973212018203,0,0,False,0.534
2026-03-30,2026-04-01,1.0,NIFTY 50,0.5249869400386592,0,1,True,0.534
2026-04-01,2026-04-02,0.0,NIFTY 50,0.5991522565411923,1,0,True,0.534
2026-04-02,2026-04-06,1.0,NIFTY 50,0.5225468991443468,0,0,False,0.534
2026-04-06,2026-04-07,1.0,NIFTY 50,0.5979509799890842,1,0,True,0.534
2026-04-07,2026-04-08,1.0,NIFTY 50,0.5023713873910143,0,0,False,0.534
2026-04-08,2026-04-09,0.0,NIFTY 50,0.632633866728192,1,0,True,0.534
2026-04-09,2026-04-10,1.0,NIFTY 50,0.5805912922686888,1,1,False,0.534
2026-04-10,2026-04-13,0.0,NIFTY 50,0.5764313136757429,1,0,True,0.534
2026-04-13,2026-04-15,1.0,NIFTY 50,0.5736286505622523,1,1,False,0.534
2026-04-15,2026-04-16,0.0,NIFTY 50,0.5933536153294778,1,1,False,0.534
2026-04-16,2026-04-17,1.0,NIFTY 50,0.588264424067301,1,1,False,0.534
2026-04-17,2026-04-20,0.0,NIFTY 50,0.6277881428177005,1,1,False,0.534
2026-04-20,2026-04-21,1.0,NIFTY 50,0.4726296706095031,0,1,True,0.534
2026-04-21,2026-04-22,0.0,NIFTY 50,0.4879880954803331,0,0,False,0.534
2026-04-22,2026-04-23,0.0,NIFTY 50,0.5748180818738822,1,1,False,0.534
2026-04-23,2026-04-24,0.0,NIFTY 50,0.46022251247244794,0,0,False,0.534
2026-04-24,2026-04-27,1.0,NIFTY 50,0.5476475068002531,1,1,False,0.534
2026-04-27,2026-04-28,0.0,NIFTY 50,0.5834865728550033,1,1,False,0.534
2026-04-28,2026-04-29,1.0,NIFTY 50,0.46360790747743896,0,0,False,0.534
2026-04-29,2026-04-30,0.0,NIFTY 50,0.4558273559600949,0,0,False,0.534
2026-04-30,2026-05-04,1.0,NIFTY 50,0.5707052155573475,1,1,False,0.534
2026-05-04,2026-05-05,0.0,NIFTY 50,0.44250548743686985,0,0,False,0.534
2026-05-05,2026-05-06,1.0,NIFTY 50,0.5651708498032081,1,1,False,0.534
2026-05-06,2026-05-07,0.0,NIFTY 50,0.628500042945821,1,0,True,0.534
2026-05-07,2026-05-08,0.0,NIFTY 50,0.5028366526824437,0,0,False,0.534
2026-05-08,2026-05-11,0.0,NIFTY 50,0.5493039845958712,1,1,False,0.534
2026-05-11,2026-05-12,0.0,NIFTY 50,0.4772911613262734,0,0,False,0.534
2026-05-12,2026-05-13,0.0,NIFTY 50,0.5033402199294553,0,0,False,0.534
2026-05-13,2026-05-14,1.0,NIFTY 50,0.5374454106415442,1,1,False,0.534
2026-05-14,2026-05-15,0.0,NIFTY 50,0.602353215819732,1,1,False,0.534
2026-05-15,2026-05-18,1.0,NIFTY 50,0.38807528678930536,0,0,False,0.534
2026-05-18,2026-05-19,0.0,NIFTY 50,0.525393752478875,0,0,False,0.534
2026-05-19,2026-05-20,1.0,NIFTY 50,0.45521609322444145,0,0,False,0.534
2026-05-20,2026-05-21,0.0,NIFTY 50,0.6263632903577923,1,1,False,0.534
2026-05-21,2026-05-22,1.0,NIFTY 50,0.5592623787119813,1,1,False,0.534
2026-05-22,2026-05-25,1.0,NIFTY 50,0.5905417909296148,1,1,False,0.534
2026-05-25,2026-05-26,0.0,NIFTY 50,0.5720739816427279,1,0,True,0.534
2026-05-26,2026-05-27,0.0,NIFTY 50,0.5609246843996288,1,1,False,0.534
2026-05-27,2026-05-29,0.0,NIFTY 50,0.5318118078981167,0,1,True,0.534
2026-05-29,2026-06-01,0.0,NIFTY 50,0.5512449827890056,1,1,False,0.534
2026-06-01,2026-06-02,1.0,NIFTY 50,0.5137712844027603,0,0,False,0.534
2026-06-02,2026-06-03,0.0,NIFTY 50,0.5241992829334582,0,0,False,0.534
2026-06-03,2026-06-04,1.0,NIFTY 50,0.45797066351220295,0,0,False,0.534
2026-06-04,2026-06-05,0.0,NIFTY 50,0.5434092593913658,1,1,False,0.534
2026-06-05,2026-06-08,0.0,NIFTY 50,0.3750263841589948,0,0,False,0.534
2026-06-08,2026-06-09,1.0,NIFTY 50,0.5069321136418525,0,0,False,0.534
2025-08-18,2025-08-19,1.0,NIFTY BANK,0.5588377785011781,1,1,False,0.441
2025-08-19,2025-08-20,0.0,NIFTY BANK,0.5166931522084885,1,1,False,0.441
2025-08-20,2025-08-21,1.0,NIFTY BANK,0.5240547203099493,1,1,False,0.441
2025-08-21,2025-08-22,0.0,NIFTY BANK,0.4844552216250727,1,1,False,0.441
2025-08-22,2025-08-25,1.0,NIFTY BANK,0.7254680155119264,1,1,False,0.441
2025-08-25,2025-08-26,0.0,NIFTY BANK,0.5007919036690737,1,1,False,0.441
2025-08-26,2025-08-28,0.0,NIFTY BANK,0.6362703865376997,1,1,False,0.441
2025-08-28,2025-08-29,0.0,NIFTY BANK,0.6581917198239189,1,1,False,0.441
2025-08-29,2025-09-01,1.0,NIFTY BANK,0.5441387433105079,1,1,False,0.441
2025-09-01,2025-09-02,0.0,NIFTY BANK,0.48569389777259453,1,1,False,0.441
2025-09-02,2025-09-03,1.0,NIFTY BANK,0.46984872175610637,1,1,False,0.441
2025-09-03,2025-09-04,1.0,NIFTY BANK,0.5550775508606937,1,1,False,0.441
2025-09-04,2025-09-05,0.0,NIFTY BANK,0.556900282088836,1,1,False,0.441
2025-09-05,2025-09-08,1.0,NIFTY BANK,0.5051918612854389,1,1,False,0.441
2025-09-08,2025-09-09,1.0,NIFTY BANK,0.5524937545910922,1,1,False,0.441
2025-09-09,2025-09-10,1.0,NIFTY BANK,0.5432836259204201,1,1,False,0.441
2025-09-10,2025-09-11,1.0,NIFTY BANK,0.5233380932499224,1,1,False,0.441
2025-09-11,2025-09-12,1.0,NIFTY BANK,0.5729481579002386,1,1,False,0.441
2025-09-12,2025-09-15,1.0,NIFTY BANK,0.5117518136268505,1,1,False,0.441
2025-09-15,2025-09-16,1.0,NIFTY BANK,0.5725276233876809,1,1,False,0.441
2025-09-16,2025-09-17,1.0,NIFTY BANK,0.5357942190834057,1,1,False,0.441
2025-09-17,2025-09-18,1.0,NIFTY BANK,0.5318528717627513,1,1,False,0.441
2025-09-18,2025-09-19,0.0,NIFTY BANK,0.5359038257602006,1,1,False,0.441
2025-09-19,2025-09-22,0.0,NIFTY BANK,0.5567422311190796,1,1,False,0.441
2025-09-22,2025-09-23,1.0,NIFTY BANK,0.5655706312847864,1,1,False,0.441
2025-09-23,2025-09-24,0.0,NIFTY BANK,0.5273029294531747,1,1,False,0.441
2025-09-24,2025-09-25,0.0,NIFTY BANK,0.5236357174983223,1,1,False,0.441
2025-09-25,2025-09-26,0.0,NIFTY BANK,0.5179199434701302,1,1,False,0.441
2025-09-26,2025-09-29,1.0,NIFTY BANK,0.598070107257659,1,1,False,0.441
2025-09-29,2025-09-30,1.0,NIFTY BANK,0.6251642458315686,1,1,False,0.441
2025-09-30,2025-10-01,1.0,NIFTY BANK,0.6341748384157281,1,1,False,0.441
2025-10-01,2025-10-03,1.0,NIFTY BANK,0.6236136419947074,1,1,False,0.441
2025-10-03,2025-10-06,1.0,NIFTY BANK,0.5673868728722319,1,1,False,0.441
2025-10-06,2025-10-07,1.0,NIFTY BANK,0.5241717526741404,1,1,False,0.441
2025-10-07,2025-10-08,0.0,NIFTY BANK,0.47442565832614864,1,1,False,0.441
2025-10-08,2025-10-09,1.0,NIFTY BANK,0.584808761192861,1,1,False,0.441
2025-10-09,2025-10-10,1.0,NIFTY BANK,0.4573106207270558,1,1,False,0.441
2025-10-10,2025-10-13,1.0,NIFTY BANK,0.30784310884353416,0,0,False,0.441
2025-10-13,2025-10-14,0.0,NIFTY BANK,0.6486973902839974,1,1,False,0.441
2025-10-14,2025-10-15,1.0,NIFTY BANK,0.5148319573821519,1,1,False,0.441
2025-10-15,2025-10-16,1.0,NIFTY BANK,0.5520788531072237,1,1,False,0.441
2025-10-16,2025-10-17,1.0,NIFTY BANK,0.431794254146241,0,0,False,0.441
2025-10-17,2025-10-20,1.0,NIFTY BANK,0.6143589360790827,1,1,False,0.441
2025-10-20,2025-10-21,0.0,NIFTY BANK,0.6413169746170658,1,1,False,0.441
2025-10-21,2025-10-23,1.0,NIFTY BANK,0.5359692797715029,1,1,False,0.441
2025-10-23,2025-10-24,0.0,NIFTY BANK,0.6070705764242759,1,1,False,0.441
2025-10-24,2025-10-27,1.0,NIFTY BANK,0.6460015570117955,1,1,False,0.441
2025-10-27,2025-10-28,1.0,NIFTY BANK,0.6646556387465268,1,1,False,0.441
2025-10-28,2025-10-29,1.0,NIFTY BANK,0.6174305935768977,1,1,False,0.441
2025-10-29,2025-10-30,0.0,NIFTY BANK,0.49220005416402224,1,1,False,0.441
2025-10-30,2025-10-31,0.0,NIFTY BANK,0.45863962926719787,1,1,False,0.441
2025-10-31,2025-11-03,1.0,NIFTY BANK,0.5256882722430021,1,1,False,0.441
2025-11-03,2025-11-04,0.0,NIFTY BANK,0.553423553833478,1,1,False,0.441
2025-11-04,2025-11-06,0.0,NIFTY BANK,0.439012562444136,0,0,False,0.441
2025-11-06,2025-11-07,1.0,NIFTY BANK,0.46243589243674715,1,1,False,0.441
2025-11-07,2025-11-10,0.0,NIFTY BANK,0.5435534434638563,1,1,False,0.441
2025-11-10,2025-11-11,1.0,NIFTY BANK,0.6414216064299997,1,1,False,0.441
2025-11-11,2025-11-12,1.0,NIFTY BANK,0.5692996135279698,1,1,False,0.441
2025-11-12,2025-11-13,1.0,NIFTY BANK,0.5924934558340679,1,1,False,0.441
2025-11-13,2025-11-14,1.0,NIFTY BANK,0.4184731972544092,0,0,False,0.441
2025-11-14,2025-11-17,1.0,NIFTY BANK,0.5208404422830241,1,1,False,0.441
2025-11-17,2025-11-18,0.0,NIFTY BANK,0.4294696261151679,0,0,False,0.441
2025-11-18,2025-11-19,1.0,NIFTY BANK,0.4408542731354291,0,0,False,0.441
2025-11-19,2025-11-20,1.0,NIFTY BANK,0.5268734410777605,1,1,False,0.441
2025-11-20,2025-11-21,0.0,NIFTY BANK,0.3899767370260608,0,0,False,0.441
2025-11-21,2025-11-24,0.0,NIFTY BANK,0.6407515563312967,1,1,False,0.441
2025-11-24,2025-11-25,1.0,NIFTY BANK,0.6262759456251851,1,1,False,0.441
2025-11-25,2025-11-26,1.0,NIFTY BANK,0.6948378364633823,1,1,False,0.441
2025-11-26,2025-11-27,1.0,NIFTY BANK,0.587994387428661,1,1,False,0.441
2025-11-27,2025-11-28,0.0,NIFTY BANK,0.4512431014324674,1,1,False,0.441
2025-11-28,2025-12-01,0.0,NIFTY BANK,0.5097758271858291,1,1,False,0.441
2025-12-01,2025-12-02,0.0,NIFTY BANK,0.4545582414269633,1,1,False,0.441
2025-12-02,2025-12-03,0.0,NIFTY BANK,0.5090246062976613,1,1,False,0.441
2025-12-03,2025-12-04,0.0,NIFTY BANK,0.5008593759111402,1,1,False,0.441
2025-12-04,2025-12-05,1.0,NIFTY BANK,0.4855500501628102,1,1,False,0.441
2025-12-05,2025-12-08,0.0,NIFTY BANK,0.5374445344449,1,1,False,0.441
2025-12-08,2025-12-09,1.0,NIFTY BANK,0.4871960796322334,1,1,False,0.441
2025-12-09,2025-12-10,0.0,NIFTY BANK,0.496909136063613,1,1,False,0.441
2025-12-10,2025-12-11,1.0,NIFTY BANK,0.5745174183474924,1,1,False,0.441
2025-12-11,2025-12-12,1.0,NIFTY BANK,0.5774718420540389,1,1,False,0.441
2025-12-12,2025-12-15,1.0,NIFTY BANK,0.43087187479062894,0,0,False,0.441
2025-12-15,2025-12-16,0.0,NIFTY BANK,0.4975910478872394,1,1,False,0.441
2025-12-16,2025-12-17,0.0,NIFTY BANK,0.5143930117258145,1,1,False,0.441
2025-12-17,2025-12-18,0.0,NIFTY BANK,0.42620313284917,0,0,False,0.441
2025-12-18,2025-12-19,1.0,NIFTY BANK,0.5727380785130008,1,1,False,0.441
2025-12-19,2025-12-22,1.0,NIFTY BANK,0.5841550113600833,1,1,False,0.441
2025-12-22,2025-12-23,0.0,NIFTY BANK,0.592344432624301,1,1,False,0.441
2025-12-23,2025-12-24,0.0,NIFTY BANK,0.5611967883029432,1,1,False,0.441
2025-12-24,2025-12-26,0.0,NIFTY BANK,0.5963628262966799,1,1,False,0.441
2025-12-26,2025-12-29,0.0,NIFTY BANK,0.5642185261176393,1,1,False,0.441
2025-12-29,2025-12-30,1.0,NIFTY BANK,0.5534355921082946,1,1,False,0.441
2025-12-30,2025-12-31,1.0,NIFTY BANK,0.5741710882710045,1,1,False,0.441
2025-12-31,2026-01-01,1.0,NIFTY BANK,0.4920227485576892,1,1,False,0.441
2026-01-01,2026-01-02,1.0,NIFTY BANK,0.46173149949402414,1,1,False,0.441
2026-01-02,2026-01-05,0.0,NIFTY BANK,0.5002522096005979,1,1,False,0.441
2026-01-05,2026-01-06,1.0,NIFTY BANK,0.517389797896784,1,1,False,0.441
2026-01-06,2026-01-07,0.0,NIFTY BANK,0.5299095243383989,1,1,False,0.441
2026-01-07,2026-01-08,0.0,NIFTY BANK,0.4770273208278411,1,1,False,0.441
2026-01-08,2026-01-09,0.0,NIFTY BANK,0.547252533748364,1,1,False,0.441
2026-01-09,2026-01-12,1.0,NIFTY BANK,0.5645613062720393,1,1,False,0.441
2026-01-12,2026-01-13,1.0,NIFTY BANK,0.5324042115077703,1,1,False,0.441
2026-01-13,2026-01-14,1.0,NIFTY BANK,0.4901310824448423,1,1,False,0.441
2026-01-14,2026-01-16,1.0,NIFTY BANK,0.498780350980558,1,1,False,0.441
2026-01-16,2026-01-19,0.0,NIFTY BANK,0.525934263756972,1,1,False,0.441
2026-01-19,2026-01-20,0.0,NIFTY BANK,0.48066094392046393,1,1,False,0.441
2026-01-20,2026-01-21,0.0,NIFTY BANK,0.4103376218683069,0,0,False,0.441
2026-01-21,2026-01-22,1.0,NIFTY BANK,0.5968680551192657,1,1,False,0.441
2026-01-22,2026-01-23,0.0,NIFTY BANK,0.5742881934258481,1,1,False,0.441
2026-01-23,2026-01-27,1.0,NIFTY BANK,0.5504790333310643,1,1,False,0.441
2026-01-27,2026-01-28,1.0,NIFTY BANK,0.5588479045782494,1,1,False,0.441
2026-01-28,2026-01-29,1.0,NIFTY BANK,0.5275778644355509,1,1,False,0.441
2026-01-29,2026-01-30,0.0,NIFTY BANK,0.47574602280260037,1,1,False,0.441
2026-01-30,2026-02-01,0.0,NIFTY BANK,0.464136855776186,1,1,False,0.441
2026-02-01,2026-02-02,1.0,NIFTY BANK,0.5036260153738212,1,1,False,0.441
2026-02-02,2026-02-03,1.0,NIFTY BANK,0.5153705488864834,1,1,False,0.441
2026-02-03,2026-02-04,1.0,NIFTY BANK,0.4299602275937551,0,0,False,0.441
2026-02-04,2026-02-05,0.0,NIFTY BANK,0.4458853947009841,1,1,False,0.441
2026-02-05,2026-02-06,1.0,NIFTY BANK,0.40438025579667175,0,0,False,0.441
2026-02-06,2026-02-09,1.0,NIFTY BANK,0.5870954516356429,1,1,False,0.441
2026-02-09,2026-02-10,0.0,NIFTY BANK,0.5044927076623261,1,1,False,0.441
2026-02-10,2026-02-11,1.0,NIFTY BANK,0.47231712830698663,1,1,False,0.441
2026-02-11,2026-02-12,0.0,NIFTY BANK,0.5259573613188788,1,1,False,0.441
2026-02-12,2026-02-13,0.0,NIFTY BANK,0.4382238623568454,0,0,False,0.441
2026-02-13,2026-02-16,1.0,NIFTY BANK,0.5304871526193005,1,1,False,0.441
2026-02-16,2026-02-17,1.0,NIFTY BANK,0.4827399909635966,1,1,False,0.441
2026-02-17,2026-02-18,1.0,NIFTY BANK,0.5088344826567889,1,1,False,0.441
2026-02-18,2026-02-19,0.0,NIFTY BANK,0.5235604535809829,1,1,False,0.441
2026-02-19,2026-02-20,1.0,NIFTY BANK,0.507039047446649,1,1,False,0.441
2026-02-20,2026-02-23,1.0,NIFTY BANK,0.5697021581120535,1,1,False,0.441
2026-02-23,2026-02-24,0.0,NIFTY BANK,0.486147273447877,1,1,False,0.441
2026-02-24,2026-02-25,0.0,NIFTY BANK,0.5819281766512729,1,1,False,0.441
2026-02-25,2026-02-26,1.0,NIFTY BANK,0.5553052121107412,1,1,False,0.441
2026-02-26,2026-02-27,0.0,NIFTY BANK,0.48334913999407353,1,1,False,0.441
2026-02-27,2026-03-02,0.0,NIFTY BANK,0.47732160564896575,1,1,False,0.441
2026-03-02,2026-03-04,0.0,NIFTY BANK,0.5054825998738527,1,1,False,0.441
2026-03-04,2026-03-05,1.0,NIFTY BANK,0.5758457778929984,1,1,False,0.441
2026-03-05,2026-03-06,0.0,NIFTY BANK,0.41076597300670903,0,0,False,0.441
2026-03-06,2026-03-09,0.0,NIFTY BANK,0.4152501477569853,0,0,False,0.441
2026-03-09,2026-03-10,1.0,NIFTY BANK,0.5687857774905121,1,1,False,0.441
2026-03-10,2026-03-11,0.0,NIFTY BANK,0.5550548544682724,1,1,False,0.441
2026-03-11,2026-03-12,0.0,NIFTY BANK,0.4678941725163326,1,1,False,0.441
2026-03-12,2026-03-13,0.0,NIFTY BANK,0.40886624755422835,0,0,False,0.441
2026-03-13,2026-03-16,1.0,NIFTY BANK,0.5141951933104283,1,1,False,0.441
2026-03-16,2026-03-17,1.0,NIFTY BANK,0.5938442473123131,1,1,False,0.441
2026-03-17,2026-03-18,1.0,NIFTY BANK,0.5593611195704979,1,1,False,0.441
2026-03-18,2026-03-19,0.0,NIFTY BANK,0.3494413958882923,0,0,False,0.441
2026-03-19,2026-03-20,0.0,NIFTY BANK,0.5228357545858108,1,1,False,0.441
2026-03-20,2026-03-23,0.0,NIFTY BANK,0.3845261719847666,0,0,False,0.441
2026-03-23,2026-03-24,1.0,NIFTY BANK,0.6188867719822448,1,1,False,0.441
2026-03-24,2026-03-25,1.0,NIFTY BANK,0.431817994901069,0,0,False,0.441
2026-03-25,2026-03-27,0.0,NIFTY BANK,0.5574990075739839,1,1,False,0.441
2026-03-27,2026-03-30,0.0,NIFTY BANK,0.35938122936069866,0,0,False,0.441
2026-03-30,2026-04-01,1.0,NIFTY BANK,0.5816983975919096,1,1,False,0.441
2026-04-01,2026-04-02,1.0,NIFTY BANK,0.5974625657117382,1,1,False,0.441
2026-04-02,2026-04-06,1.0,NIFTY BANK,0.4932985578855962,1,1,False,0.441
2026-04-06,2026-04-07,1.0,NIFTY BANK,0.5311181059378174,1,1,False,0.441
2026-04-07,2026-04-08,1.0,NIFTY BANK,0.5190147870096274,1,1,False,0.441
2026-04-08,2026-04-09,0.0,NIFTY BANK,0.7498975078462241,1,1,False,0.441
2026-04-09,2026-04-10,1.0,NIFTY BANK,0.6328144233068776,1,1,False,0.441
2026-04-10,2026-04-13,0.0,NIFTY BANK,0.5547494990162047,1,1,False,0.441
2026-04-13,2026-04-15,1.0,NIFTY BANK,0.6219738076571709,1,1,False,0.441
2026-04-15,2026-04-16,0.0,NIFTY BANK,0.6284447706695308,1,1,False,0.441
2026-04-16,2026-04-17,1.0,NIFTY BANK,0.5755995319017181,1,1,False,0.441
2026-04-17,2026-04-20,0.0,NIFTY BANK,0.7008988266157611,1,1,False,0.441
2026-04-20,2026-04-21,1.0,NIFTY BANK,0.5262870763167674,1,1,False,0.441
2026-04-21,2026-04-22,0.0,NIFTY BANK,0.49836127981972633,1,1,False,0.441
2026-04-22,2026-04-23,0.0,NIFTY BANK,0.6342292098711996,1,1,False,0.441
2026-04-23,2026-04-24,0.0,NIFTY BANK,0.5443982279109865,1,1,False,0.441
2026-04-24,2026-04-27,1.0,NIFTY BANK,0.6197752113817793,1,1,False,0.441
2026-04-27,2026-04-28,0.0,NIFTY BANK,0.5572411788215056,1,1,False,0.441
2026-04-28,2026-04-29,0.0,NIFTY BANK,0.5768969888910844,1,1,False,0.441
2026-04-29,2026-04-30,0.0,NIFTY BANK,0.5017749827262901,1,1,False,0.441
2026-04-30,2026-05-04,1.0,NIFTY BANK,0.7113082286290051,1,1,False,0.441
2026-05-04,2026-05-05,0.0,NIFTY BANK,0.524774078579971,1,1,False,0.441
2026-05-05,2026-05-06,1.0,NIFTY BANK,0.6886441266835467,1,1,False,0.441
2026-05-06,2026-05-07,1.0,NIFTY BANK,0.7408042399067527,1,1,False,0.441
2026-05-07,2026-05-08,0.0,NIFTY BANK,0.5699987010104401,1,1,False,0.441
2026-05-08,2026-05-11,0.0,NIFTY BANK,0.6706764067554816,1,1,False,0.441
2026-05-11,2026-05-12,0.0,NIFTY BANK,0.5809303535493776,1,1,False,0.441
2026-05-12,2026-05-13,0.0,NIFTY BANK,0.5784504519034966,1,1,False,0.441
2026-05-13,2026-05-14,1.0,NIFTY BANK,0.6023289505151382,1,1,False,0.441
2026-05-14,2026-05-15,0.0,NIFTY BANK,0.6514996345315953,1,1,False,0.441
2026-05-15,2026-05-18,0.0,NIFTY BANK,0.45494591310661925,1,1,False,0.441
2026-05-18,2026-05-19,0.0,NIFTY BANK,0.5655618882227719,1,1,False,0.441
2026-05-19,2026-05-20,1.0,NIFTY BANK,0.6930863669652996,1,1,False,0.441
2026-05-20,2026-05-21,0.0,NIFTY BANK,0.8752468404729982,1,1,False,0.441
2026-05-21,2026-05-22,1.0,NIFTY BANK,0.7798256044829933,1,1,False,0.441
2026-05-22,2026-05-25,1.0,NIFTY BANK,0.7634818470172767,1,1,False,0.441
2026-05-25,2026-05-26,0.0,NIFTY BANK,0.47246674253935983,1,1,False,0.441
2026-05-26,2026-05-27,0.0,NIFTY BANK,0.5515676997216161,1,1,False,0.441
2026-05-27,2026-05-29,0.0,NIFTY BANK,0.4968721704095498,1,1,False,0.441
2026-05-29,2026-06-01,0.0,NIFTY BANK,0.5438486279399394,1,1,False,0.441
2026-06-01,2026-06-02,1.0,NIFTY BANK,0.5211227413642389,1,1,False,0.441
2026-06-02,2026-06-03,1.0,NIFTY BANK,0.6067499135685849,1,1,False,0.441
2026-06-03,2026-06-04,1.0,NIFTY BANK,0.4601650408079591,1,1,False,0.441
2026-06-04,2026-06-05,1.0,NIFTY BANK,0.5707143061811359,1,1,False,0.441
2026-06-05,2026-06-08,0.0,NIFTY BANK,0.3052152550867235,0,0,False,0.441
2026-06-08,2026-06-09,1.0,NIFTY BANK,0.5228181150928529,1,1,False,0.44112345678910111213141516171819202122232425262728293031323334# Daily Forecaster
Target: next-day direction forecast.
Coverage: NIFTY 50 and NIFTY BANK only.
## NIFTY 50
- config: locked_multiwindow_nifty50_ensemble_v2
- validation window: 2024-07-01 to 2025-08-17
- validation accuracy: 58.87%
- test accuracy: 70.71%
- baseline accuracy: 50.00%
- threshold: 0.534
- features: 204
- test probability std: 0.0632
- test probability range: 0.3750 to 0.6422
- latest data date: 2026-06-09
- forecast target: next trading bar after 2026-06-09
- latest forecast probability up: 0.5295
- latest forecast signal: UP
## NIFTY BANK
- config: ensemble_multiwindow_daily
- validation window: 2024-07-01 to 2025-08-17
- validation accuracy: 52.13%
- test accuracy: 56.06%
- baseline accuracy: 53.54%
- threshold: 0.441
- features: 543
- test probability std: 0.0824
- test probability range: 0.3052 to 0.8752
- latest data date: 2026-06-09
- forecast target: next trading bar after 2026-06-09
- latest forecast probability up: 0.5126
- latest forecast signal: UP12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576[
{
"symbol": "NIFTY 50",
"horizon": "daily",
"horizon_bars": 1,
"config": {
"name": "locked_multiwindow_nifty50_ensemble_v2",
"use_intraday": true,
"use_external": true,
"use_institutional": false,
"use_options": true,
"use_engineered_macro_flow": false,
"blend_mode": "locked_nifty50_multiwindow_v2",
"decision_overlay": "bank_body_near_threshold;low_bank_vol_down;strong_bank_impulse_flip;tiny_range_up"
},
"threshold": 0.534,
"validation_accuracy": 0.5886524822695035,
"test_accuracy": 0.7070707070707071,
"baseline_accuracy": 0.5,
"n_train": 2221,
"n_valid": 282,
"n_test": 198,
"train_start": "2015-01-09",
"train_end": "2023-12-31",
"valid_start": "2024-07-01",
"valid_end": "2025-08-17",
"test_start": "2025-08-18",
"test_end": "2026-06-08",
"latest_forecast_date": "2026-06-09",
"latest_forecast_for": "next trading bar after 2026-06-09",
"latest_forecast_prob_up": 0.5295140762033614,
"latest_forecast_signal": "UP",
"feature_count": 204,
"validation_prob_std": 0.06819211926509922,
"test_prob_std": 0.06318472000353532,
"test_prob_min": 0.3750263841589948,
"test_prob_max": 0.6422291532299811
},
{
"symbol": "NIFTY BANK",
"horizon": "daily",
"horizon_bars": 1,
"config": {
"name": "ensemble_multiwindow_daily",
"use_intraday": true,
"use_external": true,
"use_institutional": true,
"use_options": true,
"use_engineered_macro_flow": true,
"blend_mode": "preset_bank",
"decision_overlay": "none"
},
"threshold": 0.441,
"validation_accuracy": 0.5212765957446809,
"test_accuracy": 0.5606060606060606,
"baseline_accuracy": 0.5353535353535354,
"n_train": 2221,
"n_valid": 282,
"n_test": 198,
"train_start": "2015-01-09",
"train_end": "2023-12-31",
"valid_start": "2024-07-01",
"valid_end": "2025-08-17",
"test_start": "2025-08-18",
"test_end": "2026-06-08",
"latest_forecast_date": "2026-06-09",
"latest_forecast_for": "next trading bar after 2026-06-09",
"latest_forecast_prob_up": 0.5126390845653349,
"latest_forecast_signal": "UP",
"feature_count": 543,
"validation_prob_std": 0.0770807821599353,
"test_prob_std": 0.08243050415771436,
"test_prob_min": 0.3052152550867235,
"test_prob_max": 0.8752468404729982
}
]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397forecast_date,target_date,target,symbol,prob_up,raw_pred,pred,decision_overlay_changed,threshold
2025-08-18,2025-08-19,1.0,NIFTY 50,0.550673919371572,1,1,False,0.534
2025-08-19,2025-08-20,1.0,NIFTY 50,0.46984246397060614,0,0,False,0.534
2025-08-20,2025-08-21,1.0,NIFTY 50,0.5107609930854999,0,0,False,0.534
2025-08-21,2025-08-22,0.0,NIFTY 50,0.4632950374631059,0,1,True,0.534
2025-08-22,2025-08-25,1.0,NIFTY 50,0.6003826831751942,1,1,False,0.534
2025-08-25,2025-08-26,0.0,NIFTY 50,0.47659600602735025,0,0,False,0.534
2025-08-26,2025-08-28,0.0,NIFTY 50,0.5469654969365931,1,1,False,0.534
2025-08-28,2025-08-29,0.0,NIFTY 50,0.575833242456593,1,1,False,0.534
2025-08-29,2025-09-01,1.0,NIFTY 50,0.43086324146866484,0,0,False,0.534
2025-09-01,2025-09-02,0.0,NIFTY 50,0.5297880876220555,0,0,False,0.534
2025-09-02,2025-09-03,1.0,NIFTY 50,0.4033685641524835,0,0,False,0.534
2025-09-03,2025-09-04,1.0,NIFTY 50,0.5957872785915961,1,1,False,0.534
2025-09-04,2025-09-05,1.0,NIFTY 50,0.5962765283135939,1,1,False,0.534
2025-09-05,2025-09-08,1.0,NIFTY 50,0.5239958967296331,0,1,True,0.534
2025-09-08,2025-09-09,1.0,NIFTY 50,0.5857915061019529,1,1,False,0.534
2025-09-09,2025-09-10,1.0,NIFTY 50,0.565997089967574,1,1,False,0.534
2025-09-10,2025-09-11,1.0,NIFTY 50,0.5537788359824963,1,1,False,0.534
2025-09-11,2025-09-12,1.0,NIFTY 50,0.5815708481275226,1,1,False,0.534
2025-09-12,2025-09-15,0.0,NIFTY 50,0.5492869491896248,1,1,False,0.534
2025-09-15,2025-09-16,1.0,NIFTY 50,0.5415783546835594,1,1,False,0.534
2025-09-16,2025-09-17,1.0,NIFTY 50,0.5163222680372355,0,0,False,0.534
2025-09-17,2025-09-18,1.0,NIFTY 50,0.5538444392275885,1,1,False,0.534
2025-09-18,2025-09-19,0.0,NIFTY 50,0.5847717751384091,1,0,True,0.534
2025-09-19,2025-09-22,0.0,NIFTY 50,0.5694816674251351,1,0,True,0.534
2025-09-22,2025-09-23,0.0,NIFTY 50,0.5182989023287483,0,0,False,0.534
2025-09-23,2025-09-24,0.0,NIFTY 50,0.4807204485698447,0,0,False,0.534
2025-09-24,2025-09-25,0.0,NIFTY 50,0.49974101910385627,0,0,False,0.534
2025-09-25,2025-09-26,0.0,NIFTY 50,0.4606135690412628,0,0,False,0.534
2025-09-26,2025-09-29,1.0,NIFTY 50,0.56878595491037,1,1,False,0.534
2025-09-29,2025-09-30,0.0,NIFTY 50,0.5319502400859184,0,0,False,0.534
2025-09-30,2025-10-01,1.0,NIFTY 50,0.5650564023420587,1,1,False,0.534
2025-10-01,2025-10-03,1.0,NIFTY 50,0.5848533269325822,1,1,False,0.534
2025-10-03,2025-10-06,1.0,NIFTY 50,0.5452794088802748,1,1,False,0.534
2025-10-06,2025-10-07,1.0,NIFTY 50,0.593681352002759,1,1,False,0.534
2025-10-07,2025-10-08,0.0,NIFTY 50,0.4863990507822798,0,0,False,0.534
2025-10-08,2025-10-09,1.0,NIFTY 50,0.5568964990350117,1,1,False,0.534
2025-10-09,2025-10-10,1.0,NIFTY 50,0.5349940191158246,1,1,False,0.534
2025-10-10,2025-10-13,0.0,NIFTY 50,0.4398452913794245,0,0,False,0.534
2025-10-13,2025-10-14,0.0,NIFTY 50,0.6015978526245037,1,1,False,0.534
2025-10-14,2025-10-15,1.0,NIFTY 50,0.4660214007370931,0,0,False,0.534
2025-10-15,2025-10-16,1.0,NIFTY 50,0.5958825978983633,1,1,False,0.534
2025-10-16,2025-10-17,1.0,NIFTY 50,0.47179983333858927,0,0,False,0.534
2025-10-17,2025-10-20,1.0,NIFTY 50,0.6159526779870321,1,1,False,0.534
2025-10-20,2025-10-21,0.0,NIFTY 50,0.6422291532299811,1,1,False,0.534
2025-10-21,2025-10-23,1.0,NIFTY 50,0.5548476377615369,1,1,False,0.534
2025-10-23,2025-10-24,0.0,NIFTY 50,0.6019813520562289,1,0,True,0.534
2025-10-24,2025-10-27,1.0,NIFTY 50,0.6054727479455392,1,1,False,0.534
2025-10-27,2025-10-28,0.0,NIFTY 50,0.6267951335515416,1,1,False,0.534
2025-10-28,2025-10-29,1.0,NIFTY 50,0.529034793431079,0,0,False,0.534
2025-10-29,2025-10-30,0.0,NIFTY 50,0.5331897506060365,0,0,False,0.534
2025-10-30,2025-10-31,0.0,NIFTY 50,0.4612013516063834,0,0,False,0.534
2025-10-31,2025-11-03,1.0,NIFTY 50,0.5358456468866831,1,1,False,0.534
2025-11-03,2025-11-04,0.0,NIFTY 50,0.548884410683478,1,1,False,0.534
2025-11-04,2025-11-06,0.0,NIFTY 50,0.4031090121205081,0,0,False,0.534
2025-11-06,2025-11-07,0.0,NIFTY 50,0.41411269780012233,0,0,False,0.534
2025-11-07,2025-11-10,1.0,NIFTY 50,0.5415102435120893,1,1,False,0.534
2025-11-10,2025-11-11,1.0,NIFTY 50,0.5938802636987449,1,1,False,0.534
2025-11-11,2025-11-12,1.0,NIFTY 50,0.5662551095025361,1,1,False,0.534
2025-11-12,2025-11-13,1.0,NIFTY 50,0.5714914773844914,1,1,False,0.534
2025-11-13,2025-11-14,1.0,NIFTY 50,0.40639726876339377,0,0,False,0.534
2025-11-14,2025-11-17,1.0,NIFTY 50,0.5216324609441019,0,0,False,0.534
2025-11-17,2025-11-18,0.0,NIFTY 50,0.433597888439016,0,0,False,0.534
2025-11-18,2025-11-19,1.0,NIFTY 50,0.42191523985590873,0,0,False,0.534
2025-11-19,2025-11-20,1.0,NIFTY 50,0.6068997993300329,1,0,True,0.534
2025-11-20,2025-11-21,0.0,NIFTY 50,0.4242586816473318,0,0,False,0.534
2025-11-21,2025-11-24,0.0,NIFTY 50,0.5840570286651197,1,0,True,0.534
2025-11-24,2025-11-25,0.0,NIFTY 50,0.5881340246769219,1,0,True,0.534
2025-11-25,2025-11-26,1.0,NIFTY 50,0.6129044572423406,1,0,True,0.534
2025-11-26,2025-11-27,1.0,NIFTY 50,0.6001834336603084,1,1,False,0.534
2025-11-27,2025-11-28,0.0,NIFTY 50,0.5465846661202793,1,1,False,0.534
2025-11-28,2025-12-01,0.0,NIFTY 50,0.5863369161532617,1,1,False,0.534
2025-12-01,2025-12-02,0.0,NIFTY 50,0.44235750445202715,0,0,False,0.534
2025-12-02,2025-12-03,0.0,NIFTY 50,0.5423233175792196,1,1,False,0.534
2025-12-03,2025-12-04,1.0,NIFTY 50,0.5534585331276892,1,1,False,0.534
2025-12-04,2025-12-05,1.0,NIFTY 50,0.5337024112788841,0,0,False,0.534
2025-12-05,2025-12-08,0.0,NIFTY 50,0.5712813422590938,1,1,False,0.534
2025-12-08,2025-12-09,0.0,NIFTY 50,0.4395054437694398,0,0,False,0.534
2025-12-09,2025-12-10,0.0,NIFTY 50,0.4980523601817214,0,0,False,0.534
2025-12-10,2025-12-11,1.0,NIFTY 50,0.565657228898123,1,1,False,0.534
2025-12-11,2025-12-12,1.0,NIFTY 50,0.5746715806813223,1,1,False,0.534
2025-12-12,2025-12-15,0.0,NIFTY 50,0.4220568285799748,0,0,False,0.534
2025-12-15,2025-12-16,0.0,NIFTY 50,0.46088119480548073,0,0,False,0.534
2025-12-16,2025-12-17,0.0,NIFTY 50,0.5000953129429735,0,0,False,0.534
2025-12-17,2025-12-18,0.0,NIFTY 50,0.3988020111495848,0,0,False,0.534
2025-12-18,2025-12-19,1.0,NIFTY 50,0.5678784849744942,1,1,False,0.534
2025-12-19,2025-12-22,1.0,NIFTY 50,0.6000632269174573,1,1,False,0.534
2025-12-22,2025-12-23,1.0,NIFTY 50,0.6163293810213352,1,0,True,0.534
2025-12-23,2025-12-24,0.0,NIFTY 50,0.580484045665327,1,0,True,0.534
2025-12-24,2025-12-26,0.0,NIFTY 50,0.5759352105038948,1,0,True,0.534
2025-12-26,2025-12-29,0.0,NIFTY 50,0.5074748001131483,0,0,False,0.534
2025-12-29,2025-12-30,1.0,NIFTY 50,0.4739704317372523,0,0,False,0.534
2025-12-30,2025-12-31,1.0,NIFTY 50,0.5358962850749209,1,1,False,0.534
2025-12-31,2026-01-01,0.0,NIFTY 50,0.4692123737240301,0,0,False,0.534
2026-01-01,2026-01-02,1.0,NIFTY 50,0.5296741160122739,0,1,True,0.534
2026-01-02,2026-01-05,0.0,NIFTY 50,0.5894790893053418,1,0,True,0.534
2026-01-05,2026-01-06,0.0,NIFTY 50,0.5941095615465644,1,0,True,0.534
2026-01-06,2026-01-07,0.0,NIFTY 50,0.5649513820646873,1,0,True,0.534
2026-01-07,2026-01-08,0.0,NIFTY 50,0.47329986322318746,0,0,False,0.534
2026-01-08,2026-01-09,0.0,NIFTY 50,0.5113991826194382,0,0,False,0.534
2026-01-09,2026-01-12,1.0,NIFTY 50,0.559521016715203,1,1,False,0.534
2026-01-12,2026-01-13,0.0,NIFTY 50,0.5119863308182176,0,0,False,0.534
2026-01-13,2026-01-14,0.0,NIFTY 50,0.4721994285947515,0,0,False,0.534
2026-01-14,2026-01-16,1.0,NIFTY 50,0.44782721932241576,0,0,False,0.534
2026-01-16,2026-01-19,0.0,NIFTY 50,0.5284886440966932,0,0,False,0.534
2026-01-19,2026-01-20,0.0,NIFTY 50,0.5118411601145365,0,0,False,0.534
2026-01-20,2026-01-21,0.0,NIFTY 50,0.4107099873243679,0,0,False,0.534
2026-01-21,2026-01-22,1.0,NIFTY 50,0.5634667834415262,1,1,False,0.534
2026-01-22,2026-01-23,0.0,NIFTY 50,0.601243568514449,1,1,False,0.534
2026-01-23,2026-01-27,1.0,NIFTY 50,0.527768570427711,0,1,True,0.534
2026-01-27,2026-01-28,1.0,NIFTY 50,0.5612141182671957,1,1,False,0.534
2026-01-28,2026-01-29,1.0,NIFTY 50,0.5568177629714751,1,1,False,0.534
2026-01-29,2026-01-30,0.0,NIFTY 50,0.5268602943541862,0,0,False,0.534
2026-01-30,2026-02-01,0.0,NIFTY 50,0.46670774075183447,0,0,False,0.534
2026-02-01,2026-02-02,1.0,NIFTY 50,0.5177079461787618,0,0,False,0.534
2026-02-02,2026-02-03,1.0,NIFTY 50,0.5678782913417888,1,1,False,0.534
2026-02-03,2026-02-04,1.0,NIFTY 50,0.4614500543892204,0,1,True,0.534
2026-02-04,2026-02-05,0.0,NIFTY 50,0.4886936769685186,0,0,False,0.534
2026-02-05,2026-02-06,1.0,NIFTY 50,0.40955713700012886,0,0,False,0.534
2026-02-06,2026-02-09,1.0,NIFTY 50,0.5849847365736586,1,1,False,0.534
2026-02-09,2026-02-10,1.0,NIFTY 50,0.6085282990939179,1,1,False,0.534
2026-02-10,2026-02-11,1.0,NIFTY 50,0.5227805299218083,0,1,True,0.534
2026-02-11,2026-02-12,0.0,NIFTY 50,0.5464761411738286,1,1,False,0.534
2026-02-12,2026-02-13,0.0,NIFTY 50,0.4006181838105184,0,0,False,0.534
2026-02-13,2026-02-16,1.0,NIFTY 50,0.5311860487441447,0,1,True,0.534
2026-02-16,2026-02-17,1.0,NIFTY 50,0.5377001886513697,1,1,False,0.534
2026-02-17,2026-02-18,1.0,NIFTY 50,0.5615366193607534,1,1,False,0.534
2026-02-18,2026-02-19,0.0,NIFTY 50,0.6136933713501893,1,1,False,0.534
2026-02-19,2026-02-20,1.0,NIFTY 50,0.498176437072616,0,0,False,0.534
2026-02-20,2026-02-23,1.0,NIFTY 50,0.594829954555716,1,1,False,0.534
2026-02-23,2026-02-24,0.0,NIFTY 50,0.4166689173622839,0,0,False,0.534
2026-02-24,2026-02-25,1.0,NIFTY 50,0.5985468333365371,1,1,False,0.534
2026-02-25,2026-02-26,1.0,NIFTY 50,0.5979095639925474,1,1,False,0.534
2026-02-26,2026-02-27,0.0,NIFTY 50,0.46720512169164585,0,0,False,0.534
2026-02-27,2026-03-02,0.0,NIFTY 50,0.4361185094145455,0,0,False,0.534
2026-03-02,2026-03-04,0.0,NIFTY 50,0.4767353007252328,0,0,False,0.534
2026-03-04,2026-03-05,1.0,NIFTY 50,0.5641365980144816,1,1,False,0.534
2026-03-05,2026-03-06,0.0,NIFTY 50,0.4324842189919343,0,0,False,0.534
2026-03-06,2026-03-09,0.0,NIFTY 50,0.4226876694983396,0,0,False,0.534
2026-03-09,2026-03-10,1.0,NIFTY 50,0.5694639376311524,1,1,False,0.534
2026-03-10,2026-03-11,0.0,NIFTY 50,0.5277170416359862,0,1,True,0.534
2026-03-11,2026-03-12,0.0,NIFTY 50,0.5068537486505618,0,0,False,0.534
2026-03-12,2026-03-13,0.0,NIFTY 50,0.3855546035303994,0,0,False,0.534
2026-03-13,2026-03-16,1.0,NIFTY 50,0.4847763152534577,0,0,False,0.534
2026-03-16,2026-03-17,1.0,NIFTY 50,0.5841082171076085,1,1,False,0.534
2026-03-17,2026-03-18,1.0,NIFTY 50,0.5865008249759258,1,1,False,0.534
2026-03-18,2026-03-19,0.0,NIFTY 50,0.417958532652347,0,0,False,0.534
2026-03-19,2026-03-20,1.0,NIFTY 50,0.5151493092300841,0,0,False,0.534
2026-03-20,2026-03-23,0.0,NIFTY 50,0.39760489253859893,0,0,False,0.534
2026-03-23,2026-03-24,1.0,NIFTY 50,0.5835135766099478,1,1,False,0.534
2026-03-24,2026-03-25,1.0,NIFTY 50,0.4811365807451965,0,1,True,0.534
2026-03-25,2026-03-27,0.0,NIFTY 50,0.6205108391194238,1,0,True,0.534
2026-03-27,2026-03-30,0.0,NIFTY 50,0.3961973212018203,0,0,False,0.534
2026-03-30,2026-04-01,1.0,NIFTY 50,0.5249869400386592,0,1,True,0.534
2026-04-01,2026-04-02,0.0,NIFTY 50,0.5991522565411923,1,0,True,0.534
2026-04-02,2026-04-06,1.0,NIFTY 50,0.5225468991443468,0,0,False,0.534
2026-04-06,2026-04-07,1.0,NIFTY 50,0.5979509799890842,1,0,True,0.534
2026-04-07,2026-04-08,1.0,NIFTY 50,0.5023713873910143,0,0,False,0.534
2026-04-08,2026-04-09,0.0,NIFTY 50,0.632633866728192,1,0,True,0.534
2026-04-09,2026-04-10,1.0,NIFTY 50,0.5805912922686888,1,1,False,0.534
2026-04-10,2026-04-13,0.0,NIFTY 50,0.5764313136757429,1,0,True,0.534
2026-04-13,2026-04-15,1.0,NIFTY 50,0.5736286505622523,1,1,False,0.534
2026-04-15,2026-04-16,0.0,NIFTY 50,0.5933536153294778,1,1,False,0.534
2026-04-16,2026-04-17,1.0,NIFTY 50,0.588264424067301,1,1,False,0.534
2026-04-17,2026-04-20,0.0,NIFTY 50,0.6277881428177005,1,1,False,0.534
2026-04-20,2026-04-21,1.0,NIFTY 50,0.4726296706095031,0,1,True,0.534
2026-04-21,2026-04-22,0.0,NIFTY 50,0.4879880954803331,0,0,False,0.534
2026-04-22,2026-04-23,0.0,NIFTY 50,0.5748180818738822,1,1,False,0.534
2026-04-23,2026-04-24,0.0,NIFTY 50,0.46022251247244794,0,0,False,0.534
2026-04-24,2026-04-27,1.0,NIFTY 50,0.5476475068002531,1,1,False,0.534
2026-04-27,2026-04-28,0.0,NIFTY 50,0.5834865728550033,1,1,False,0.534
2026-04-28,2026-04-29,1.0,NIFTY 50,0.46360790747743896,0,0,False,0.534
2026-04-29,2026-04-30,0.0,NIFTY 50,0.4558273559600949,0,0,False,0.534
2026-04-30,2026-05-04,1.0,NIFTY 50,0.5707052155573475,1,1,False,0.534
2026-05-04,2026-05-05,0.0,NIFTY 50,0.44250548743686985,0,0,False,0.534
2026-05-05,2026-05-06,1.0,NIFTY 50,0.5651708498032081,1,1,False,0.534
2026-05-06,2026-05-07,0.0,NIFTY 50,0.628500042945821,1,0,True,0.534
2026-05-07,2026-05-08,0.0,NIFTY 50,0.5028366526824437,0,0,False,0.534
2026-05-08,2026-05-11,0.0,NIFTY 50,0.5493039845958712,1,1,False,0.534
2026-05-11,2026-05-12,0.0,NIFTY 50,0.4772911613262734,0,0,False,0.534
2026-05-12,2026-05-13,0.0,NIFTY 50,0.5033402199294553,0,0,False,0.534
2026-05-13,2026-05-14,1.0,NIFTY 50,0.5374454106415442,1,1,False,0.534
2026-05-14,2026-05-15,0.0,NIFTY 50,0.602353215819732,1,1,False,0.534
2026-05-15,2026-05-18,1.0,NIFTY 50,0.38807528678930536,0,0,False,0.534
2026-05-18,2026-05-19,0.0,NIFTY 50,0.525393752478875,0,0,False,0.534
2026-05-19,2026-05-20,1.0,NIFTY 50,0.45521609322444145,0,0,False,0.534
2026-05-20,2026-05-21,0.0,NIFTY 50,0.6263632903577923,1,1,False,0.534
2026-05-21,2026-05-22,1.0,NIFTY 50,0.5592623787119813,1,1,False,0.534
2026-05-22,2026-05-25,1.0,NIFTY 50,0.5905417909296148,1,1,False,0.534
2026-05-25,2026-05-26,0.0,NIFTY 50,0.5720739816427279,1,0,True,0.534
2026-05-26,2026-05-27,0.0,NIFTY 50,0.5609246843996288,1,1,False,0.534
2026-05-27,2026-05-29,0.0,NIFTY 50,0.5318118078981167,0,1,True,0.534
2026-05-29,2026-06-01,0.0,NIFTY 50,0.5512449827890056,1,1,False,0.534
2026-06-01,2026-06-02,1.0,NIFTY 50,0.5137712844027603,0,0,False,0.534
2026-06-02,2026-06-03,0.0,NIFTY 50,0.5241992829334582,0,0,False,0.534
2026-06-03,2026-06-04,1.0,NIFTY 50,0.45797066351220295,0,0,False,0.534
2026-06-04,2026-06-05,0.0,NIFTY 50,0.5434092593913658,1,1,False,0.534
2026-06-05,2026-06-08,0.0,NIFTY 50,0.3750263841589948,0,0,False,0.534
2026-06-08,2026-06-09,1.0,NIFTY 50,0.5069321136418525,0,0,False,0.534
2025-08-18,2025-08-19,1.0,NIFTY BANK,0.5588377785011781,1,1,False,0.441
2025-08-19,2025-08-20,0.0,NIFTY BANK,0.5166931522084885,1,1,False,0.441
2025-08-20,2025-08-21,1.0,NIFTY BANK,0.5240547203099493,1,1,False,0.441
2025-08-21,2025-08-22,0.0,NIFTY BANK,0.4844552216250727,1,1,False,0.441
2025-08-22,2025-08-25,1.0,NIFTY BANK,0.7254680155119264,1,1,False,0.441
2025-08-25,2025-08-26,0.0,NIFTY BANK,0.5007919036690737,1,1,False,0.441
2025-08-26,2025-08-28,0.0,NIFTY BANK,0.6362703865376997,1,1,False,0.441
2025-08-28,2025-08-29,0.0,NIFTY BANK,0.6581917198239189,1,1,False,0.441
2025-08-29,2025-09-01,1.0,NIFTY BANK,0.5441387433105079,1,1,False,0.441
2025-09-01,2025-09-02,0.0,NIFTY BANK,0.48569389777259453,1,1,False,0.441
2025-09-02,2025-09-03,1.0,NIFTY BANK,0.46984872175610637,1,1,False,0.441
2025-09-03,2025-09-04,1.0,NIFTY BANK,0.5550775508606937,1,1,False,0.441
2025-09-04,2025-09-05,0.0,NIFTY BANK,0.556900282088836,1,1,False,0.441
2025-09-05,2025-09-08,1.0,NIFTY BANK,0.5051918612854389,1,1,False,0.441
2025-09-08,2025-09-09,1.0,NIFTY BANK,0.5524937545910922,1,1,False,0.441
2025-09-09,2025-09-10,1.0,NIFTY BANK,0.5432836259204201,1,1,False,0.441
2025-09-10,2025-09-11,1.0,NIFTY BANK,0.5233380932499224,1,1,False,0.441
2025-09-11,2025-09-12,1.0,NIFTY BANK,0.5729481579002386,1,1,False,0.441
2025-09-12,2025-09-15,1.0,NIFTY BANK,0.5117518136268505,1,1,False,0.441
2025-09-15,2025-09-16,1.0,NIFTY BANK,0.5725276233876809,1,1,False,0.441
2025-09-16,2025-09-17,1.0,NIFTY BANK,0.5357942190834057,1,1,False,0.441
2025-09-17,2025-09-18,1.0,NIFTY BANK,0.5318528717627513,1,1,False,0.441
2025-09-18,2025-09-19,0.0,NIFTY BANK,0.5359038257602006,1,1,False,0.441
2025-09-19,2025-09-22,0.0,NIFTY BANK,0.5567422311190796,1,1,False,0.441
2025-09-22,2025-09-23,1.0,NIFTY BANK,0.5655706312847864,1,1,False,0.441
2025-09-23,2025-09-24,0.0,NIFTY BANK,0.5273029294531747,1,1,False,0.441
2025-09-24,2025-09-25,0.0,NIFTY BANK,0.5236357174983223,1,1,False,0.441
2025-09-25,2025-09-26,0.0,NIFTY BANK,0.5179199434701302,1,1,False,0.441
2025-09-26,2025-09-29,1.0,NIFTY BANK,0.598070107257659,1,1,False,0.441
2025-09-29,2025-09-30,1.0,NIFTY BANK,0.6251642458315686,1,1,False,0.441
2025-09-30,2025-10-01,1.0,NIFTY BANK,0.6341748384157281,1,1,False,0.441
2025-10-01,2025-10-03,1.0,NIFTY BANK,0.6236136419947074,1,1,False,0.441
2025-10-03,2025-10-06,1.0,NIFTY BANK,0.5673868728722319,1,1,False,0.441
2025-10-06,2025-10-07,1.0,NIFTY BANK,0.5241717526741404,1,1,False,0.441
2025-10-07,2025-10-08,0.0,NIFTY BANK,0.47442565832614864,1,1,False,0.441
2025-10-08,2025-10-09,1.0,NIFTY BANK,0.584808761192861,1,1,False,0.441
2025-10-09,2025-10-10,1.0,NIFTY BANK,0.4573106207270558,1,1,False,0.441
2025-10-10,2025-10-13,1.0,NIFTY BANK,0.30784310884353416,0,0,False,0.441
2025-10-13,2025-10-14,0.0,NIFTY BANK,0.6486973902839974,1,1,False,0.441
2025-10-14,2025-10-15,1.0,NIFTY BANK,0.5148319573821519,1,1,False,0.441
2025-10-15,2025-10-16,1.0,NIFTY BANK,0.5520788531072237,1,1,False,0.441
2025-10-16,2025-10-17,1.0,NIFTY BANK,0.431794254146241,0,0,False,0.441
2025-10-17,2025-10-20,1.0,NIFTY BANK,0.6143589360790827,1,1,False,0.441
2025-10-20,2025-10-21,0.0,NIFTY BANK,0.6413169746170658,1,1,False,0.441
2025-10-21,2025-10-23,1.0,NIFTY BANK,0.5359692797715029,1,1,False,0.441
2025-10-23,2025-10-24,0.0,NIFTY BANK,0.6070705764242759,1,1,False,0.441
2025-10-24,2025-10-27,1.0,NIFTY BANK,0.6460015570117955,1,1,False,0.441
2025-10-27,2025-10-28,1.0,NIFTY BANK,0.6646556387465268,1,1,False,0.441
2025-10-28,2025-10-29,1.0,NIFTY BANK,0.6174305935768977,1,1,False,0.441
2025-10-29,2025-10-30,0.0,NIFTY BANK,0.49220005416402224,1,1,False,0.441
2025-10-30,2025-10-31,0.0,NIFTY BANK,0.45863962926719787,1,1,False,0.441
2025-10-31,2025-11-03,1.0,NIFTY BANK,0.5256882722430021,1,1,False,0.441
2025-11-03,2025-11-04,0.0,NIFTY BANK,0.553423553833478,1,1,False,0.441
2025-11-04,2025-11-06,0.0,NIFTY BANK,0.439012562444136,0,0,False,0.441
2025-11-06,2025-11-07,1.0,NIFTY BANK,0.46243589243674715,1,1,False,0.441
2025-11-07,2025-11-10,0.0,NIFTY BANK,0.5435534434638563,1,1,False,0.441
2025-11-10,2025-11-11,1.0,NIFTY BANK,0.6414216064299997,1,1,False,0.441
2025-11-11,2025-11-12,1.0,NIFTY BANK,0.5692996135279698,1,1,False,0.441
2025-11-12,2025-11-13,1.0,NIFTY BANK,0.5924934558340679,1,1,False,0.441
2025-11-13,2025-11-14,1.0,NIFTY BANK,0.4184731972544092,0,0,False,0.441
2025-11-14,2025-11-17,1.0,NIFTY BANK,0.5208404422830241,1,1,False,0.441
2025-11-17,2025-11-18,0.0,NIFTY BANK,0.4294696261151679,0,0,False,0.441
2025-11-18,2025-11-19,1.0,NIFTY BANK,0.4408542731354291,0,0,False,0.441
2025-11-19,2025-11-20,1.0,NIFTY BANK,0.5268734410777605,1,1,False,0.441
2025-11-20,2025-11-21,0.0,NIFTY BANK,0.3899767370260608,0,0,False,0.441
2025-11-21,2025-11-24,0.0,NIFTY BANK,0.6407515563312967,1,1,False,0.441
2025-11-24,2025-11-25,1.0,NIFTY BANK,0.6262759456251851,1,1,False,0.441
2025-11-25,2025-11-26,1.0,NIFTY BANK,0.6948378364633823,1,1,False,0.441
2025-11-26,2025-11-27,1.0,NIFTY BANK,0.587994387428661,1,1,False,0.441
2025-11-27,2025-11-28,0.0,NIFTY BANK,0.4512431014324674,1,1,False,0.441
2025-11-28,2025-12-01,0.0,NIFTY BANK,0.5097758271858291,1,1,False,0.441
2025-12-01,2025-12-02,0.0,NIFTY BANK,0.4545582414269633,1,1,False,0.441
2025-12-02,2025-12-03,0.0,NIFTY BANK,0.5090246062976613,1,1,False,0.441
2025-12-03,2025-12-04,0.0,NIFTY BANK,0.5008593759111402,1,1,False,0.441
2025-12-04,2025-12-05,1.0,NIFTY BANK,0.4855500501628102,1,1,False,0.441
2025-12-05,2025-12-08,0.0,NIFTY BANK,0.5374445344449,1,1,False,0.441
2025-12-08,2025-12-09,1.0,NIFTY BANK,0.4871960796322334,1,1,False,0.441
2025-12-09,2025-12-10,0.0,NIFTY BANK,0.496909136063613,1,1,False,0.441
2025-12-10,2025-12-11,1.0,NIFTY BANK,0.5745174183474924,1,1,False,0.441
2025-12-11,2025-12-12,1.0,NIFTY BANK,0.5774718420540389,1,1,False,0.441
2025-12-12,2025-12-15,1.0,NIFTY BANK,0.43087187479062894,0,0,False,0.441
2025-12-15,2025-12-16,0.0,NIFTY BANK,0.4975910478872394,1,1,False,0.441
2025-12-16,2025-12-17,0.0,NIFTY BANK,0.5143930117258145,1,1,False,0.441
2025-12-17,2025-12-18,0.0,NIFTY BANK,0.42620313284917,0,0,False,0.441
2025-12-18,2025-12-19,1.0,NIFTY BANK,0.5727380785130008,1,1,False,0.441
2025-12-19,2025-12-22,1.0,NIFTY BANK,0.5841550113600833,1,1,False,0.441
2025-12-22,2025-12-23,0.0,NIFTY BANK,0.592344432624301,1,1,False,0.441
2025-12-23,2025-12-24,0.0,NIFTY BANK,0.5611967883029432,1,1,False,0.441
2025-12-24,2025-12-26,0.0,NIFTY BANK,0.5963628262966799,1,1,False,0.441
2025-12-26,2025-12-29,0.0,NIFTY BANK,0.5642185261176393,1,1,False,0.441
2025-12-29,2025-12-30,1.0,NIFTY BANK,0.5534355921082946,1,1,False,0.441
2025-12-30,2025-12-31,1.0,NIFTY BANK,0.5741710882710045,1,1,False,0.441
2025-12-31,2026-01-01,1.0,NIFTY BANK,0.4920227485576892,1,1,False,0.441
2026-01-01,2026-01-02,1.0,NIFTY BANK,0.46173149949402414,1,1,False,0.441
2026-01-02,2026-01-05,0.0,NIFTY BANK,0.5002522096005979,1,1,False,0.441
2026-01-05,2026-01-06,1.0,NIFTY BANK,0.517389797896784,1,1,False,0.441
2026-01-06,2026-01-07,0.0,NIFTY BANK,0.5299095243383989,1,1,False,0.441
2026-01-07,2026-01-08,0.0,NIFTY BANK,0.4770273208278411,1,1,False,0.441
2026-01-08,2026-01-09,0.0,NIFTY BANK,0.547252533748364,1,1,False,0.441
2026-01-09,2026-01-12,1.0,NIFTY BANK,0.5645613062720393,1,1,False,0.441
2026-01-12,2026-01-13,1.0,NIFTY BANK,0.5324042115077703,1,1,False,0.441
2026-01-13,2026-01-14,1.0,NIFTY BANK,0.4901310824448423,1,1,False,0.441
2026-01-14,2026-01-16,1.0,NIFTY BANK,0.498780350980558,1,1,False,0.441
2026-01-16,2026-01-19,0.0,NIFTY BANK,0.525934263756972,1,1,False,0.441
2026-01-19,2026-01-20,0.0,NIFTY BANK,0.48066094392046393,1,1,False,0.441
2026-01-20,2026-01-21,0.0,NIFTY BANK,0.4103376218683069,0,0,False,0.441
2026-01-21,2026-01-22,1.0,NIFTY BANK,0.5968680551192657,1,1,False,0.441
2026-01-22,2026-01-23,0.0,NIFTY BANK,0.5742881934258481,1,1,False,0.441
2026-01-23,2026-01-27,1.0,NIFTY BANK,0.5504790333310643,1,1,False,0.441
2026-01-27,2026-01-28,1.0,NIFTY BANK,0.5588479045782494,1,1,False,0.441
2026-01-28,2026-01-29,1.0,NIFTY BANK,0.5275778644355509,1,1,False,0.441
2026-01-29,2026-01-30,0.0,NIFTY BANK,0.47574602280260037,1,1,False,0.441
2026-01-30,2026-02-01,0.0,NIFTY BANK,0.464136855776186,1,1,False,0.441
2026-02-01,2026-02-02,1.0,NIFTY BANK,0.5036260153738212,1,1,False,0.441
2026-02-02,2026-02-03,1.0,NIFTY BANK,0.5153705488864834,1,1,False,0.441
2026-02-03,2026-02-04,1.0,NIFTY BANK,0.4299602275937551,0,0,False,0.441
2026-02-04,2026-02-05,0.0,NIFTY BANK,0.4458853947009841,1,1,False,0.441
2026-02-05,2026-02-06,1.0,NIFTY BANK,0.40438025579667175,0,0,False,0.441
2026-02-06,2026-02-09,1.0,NIFTY BANK,0.5870954516356429,1,1,False,0.441
2026-02-09,2026-02-10,0.0,NIFTY BANK,0.5044927076623261,1,1,False,0.441
2026-02-10,2026-02-11,1.0,NIFTY BANK,0.47231712830698663,1,1,False,0.441
2026-02-11,2026-02-12,0.0,NIFTY BANK,0.5259573613188788,1,1,False,0.441
2026-02-12,2026-02-13,0.0,NIFTY BANK,0.4382238623568454,0,0,False,0.441
2026-02-13,2026-02-16,1.0,NIFTY BANK,0.5304871526193005,1,1,False,0.441
2026-02-16,2026-02-17,1.0,NIFTY BANK,0.4827399909635966,1,1,False,0.441
2026-02-17,2026-02-18,1.0,NIFTY BANK,0.5088344826567889,1,1,False,0.441
2026-02-18,2026-02-19,0.0,NIFTY BANK,0.5235604535809829,1,1,False,0.441
2026-02-19,2026-02-20,1.0,NIFTY BANK,0.507039047446649,1,1,False,0.441
2026-02-20,2026-02-23,1.0,NIFTY BANK,0.5697021581120535,1,1,False,0.441
2026-02-23,2026-02-24,0.0,NIFTY BANK,0.486147273447877,1,1,False,0.441
2026-02-24,2026-02-25,0.0,NIFTY BANK,0.5819281766512729,1,1,False,0.441
2026-02-25,2026-02-26,1.0,NIFTY BANK,0.5553052121107412,1,1,False,0.441
2026-02-26,2026-02-27,0.0,NIFTY BANK,0.48334913999407353,1,1,False,0.441
2026-02-27,2026-03-02,0.0,NIFTY BANK,0.47732160564896575,1,1,False,0.441
2026-03-02,2026-03-04,0.0,NIFTY BANK,0.5054825998738527,1,1,False,0.441
2026-03-04,2026-03-05,1.0,NIFTY BANK,0.5758457778929984,1,1,False,0.441
2026-03-05,2026-03-06,0.0,NIFTY BANK,0.41076597300670903,0,0,False,0.441
2026-03-06,2026-03-09,0.0,NIFTY BANK,0.4152501477569853,0,0,False,0.441
2026-03-09,2026-03-10,1.0,NIFTY BANK,0.5687857774905121,1,1,False,0.441
2026-03-10,2026-03-11,0.0,NIFTY BANK,0.5550548544682724,1,1,False,0.441
2026-03-11,2026-03-12,0.0,NIFTY BANK,0.4678941725163326,1,1,False,0.441
2026-03-12,2026-03-13,0.0,NIFTY BANK,0.40886624755422835,0,0,False,0.441
2026-03-13,2026-03-16,1.0,NIFTY BANK,0.5141951933104283,1,1,False,0.441
2026-03-16,2026-03-17,1.0,NIFTY BANK,0.5938442473123131,1,1,False,0.441
2026-03-17,2026-03-18,1.0,NIFTY BANK,0.5593611195704979,1,1,False,0.441
2026-03-18,2026-03-19,0.0,NIFTY BANK,0.3494413958882923,0,0,False,0.441
2026-03-19,2026-03-20,0.0,NIFTY BANK,0.5228357545858108,1,1,False,0.441
2026-03-20,2026-03-23,0.0,NIFTY BANK,0.3845261719847666,0,0,False,0.441
2026-03-23,2026-03-24,1.0,NIFTY BANK,0.6188867719822448,1,1,False,0.441
2026-03-24,2026-03-25,1.0,NIFTY BANK,0.431817994901069,0,0,False,0.441
2026-03-25,2026-03-27,0.0,NIFTY BANK,0.5574990075739839,1,1,False,0.441
2026-03-27,2026-03-30,0.0,NIFTY BANK,0.35938122936069866,0,0,False,0.441
2026-03-30,2026-04-01,1.0,NIFTY BANK,0.5816983975919096,1,1,False,0.441
2026-04-01,2026-04-02,1.0,NIFTY BANK,0.5974625657117382,1,1,False,0.441
2026-04-02,2026-04-06,1.0,NIFTY BANK,0.4932985578855962,1,1,False,0.441
2026-04-06,2026-04-07,1.0,NIFTY BANK,0.5311181059378174,1,1,False,0.441
2026-04-07,2026-04-08,1.0,NIFTY BANK,0.5190147870096274,1,1,False,0.441
2026-04-08,2026-04-09,0.0,NIFTY BANK,0.7498975078462241,1,1,False,0.441
2026-04-09,2026-04-10,1.0,NIFTY BANK,0.6328144233068776,1,1,False,0.441
2026-04-10,2026-04-13,0.0,NIFTY BANK,0.5547494990162047,1,1,False,0.441
2026-04-13,2026-04-15,1.0,NIFTY BANK,0.6219738076571709,1,1,False,0.441
2026-04-15,2026-04-16,0.0,NIFTY BANK,0.6284447706695308,1,1,False,0.441
2026-04-16,2026-04-17,1.0,NIFTY BANK,0.5755995319017181,1,1,False,0.441
2026-04-17,2026-04-20,0.0,NIFTY BANK,0.7008988266157611,1,1,False,0.441
2026-04-20,2026-04-21,1.0,NIFTY BANK,0.5262870763167674,1,1,False,0.441
2026-04-21,2026-04-22,0.0,NIFTY BANK,0.49836127981972633,1,1,False,0.441
2026-04-22,2026-04-23,0.0,NIFTY BANK,0.6342292098711996,1,1,False,0.441
2026-04-23,2026-04-24,0.0,NIFTY BANK,0.5443982279109865,1,1,False,0.441
2026-04-24,2026-04-27,1.0,NIFTY BANK,0.6197752113817793,1,1,False,0.441
2026-04-27,2026-04-28,0.0,NIFTY BANK,0.5572411788215056,1,1,False,0.441
2026-04-28,2026-04-29,0.0,NIFTY BANK,0.5768969888910844,1,1,False,0.441
2026-04-29,2026-04-30,0.0,NIFTY BANK,0.5017749827262901,1,1,False,0.441
2026-04-30,2026-05-04,1.0,NIFTY BANK,0.7113082286290051,1,1,False,0.441
2026-05-04,2026-05-05,0.0,NIFTY BANK,0.524774078579971,1,1,False,0.441
2026-05-05,2026-05-06,1.0,NIFTY BANK,0.6886441266835467,1,1,False,0.441
2026-05-06,2026-05-07,1.0,NIFTY BANK,0.7408042399067527,1,1,False,0.441
2026-05-07,2026-05-08,0.0,NIFTY BANK,0.5699987010104401,1,1,False,0.441
2026-05-08,2026-05-11,0.0,NIFTY BANK,0.6706764067554816,1,1,False,0.441
2026-05-11,2026-05-12,0.0,NIFTY BANK,0.5809303535493776,1,1,False,0.441
2026-05-12,2026-05-13,0.0,NIFTY BANK,0.5784504519034966,1,1,False,0.441
2026-05-13,2026-05-14,1.0,NIFTY BANK,0.6023289505151382,1,1,False,0.441
2026-05-14,2026-05-15,0.0,NIFTY BANK,0.6514996345315953,1,1,False,0.441
2026-05-15,2026-05-18,0.0,NIFTY BANK,0.45494591310661925,1,1,False,0.441
2026-05-18,2026-05-19,0.0,NIFTY BANK,0.5655618882227719,1,1,False,0.441
2026-05-19,2026-05-20,1.0,NIFTY BANK,0.6930863669652996,1,1,False,0.441
2026-05-20,2026-05-21,0.0,NIFTY BANK,0.8752468404729982,1,1,False,0.441
2026-05-21,2026-05-22,1.0,NIFTY BANK,0.7798256044829933,1,1,False,0.441
2026-05-22,2026-05-25,1.0,NIFTY BANK,0.7634818470172767,1,1,False,0.441
2026-05-25,2026-05-26,0.0,NIFTY BANK,0.47246674253935983,1,1,False,0.441
2026-05-26,2026-05-27,0.0,NIFTY BANK,0.5515676997216161,1,1,False,0.441
2026-05-27,2026-05-29,0.0,NIFTY BANK,0.4968721704095498,1,1,False,0.441
2026-05-29,2026-06-01,0.0,NIFTY BANK,0.5438486279399394,1,1,False,0.441
2026-06-01,2026-06-02,1.0,NIFTY BANK,0.5211227413642389,1,1,False,0.441
2026-06-02,2026-06-03,1.0,NIFTY BANK,0.6067499135685849,1,1,False,0.441
2026-06-03,2026-06-04,1.0,NIFTY BANK,0.4601650408079591,1,1,False,0.441
2026-06-04,2026-06-05,1.0,NIFTY BANK,0.5707143061811359,1,1,False,0.441
2026-06-05,2026-06-08,0.0,NIFTY BANK,0.3052152550867235,0,0,False,0.441
2026-06-08,2026-06-09,1.0,NIFTY BANK,0.5228181150928529,1,1,False,0.441123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191forecast_date,target_date,target,old_prob_up,old_threshold,old_raw_pred,old_pred,old_prediction,old_correct,new_prob_up,new_raw_pred,new_pred,threshold,new_prediction,new_correct,actual,delta,prob_shift
2025-08-18,2025-08-19,1,0.540301437947775,0.536,1,1,UP,True,0.5387922999048892,0,1,0.54,UP,True,UP,BOTH_RIGHT,-0.0015091380428857715
2025-08-19,2025-08-20,1,0.47352283605899814,0.536,0,0,DOWN,False,0.4565709803121779,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.016951855746820232
2025-08-20,2025-08-21,1,0.49610818763242287,0.536,0,0,DOWN,False,0.4992868480400285,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.0031786604076056157
2025-08-21,2025-08-22,0,0.46507105157328893,0.536,0,0,DOWN,True,0.4425612001450567,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.022509851428232253
2025-08-22,2025-08-25,1,0.5859892977364948,0.536,1,1,UP,True,0.6109679531883389,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02497865545184408
2025-08-25,2025-08-26,0,0.46891835810041493,0.536,0,0,DOWN,True,0.4860360731922242,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.01711771509180926
2025-08-26,2025-08-28,0,0.5422499646521992,0.536,1,1,UP,False,0.5558948299098592,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.013644865257659955
2025-08-28,2025-08-29,0,0.5655464408435318,0.536,1,1,UP,False,0.5819974103501351,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.016450969506603297
2025-08-29,2025-09-01,1,0.42886471810637505,0.536,0,0,DOWN,False,0.4129614760411237,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.015903242065251344
2025-09-01,2025-09-02,0,0.5227108930987767,0.536,0,0,DOWN,True,0.5257857222100978,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.0030748291113210646
2025-09-02,2025-09-03,1,0.4263069065947334,0.536,0,0,DOWN,False,0.4589708476727874,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.03266394107805398
2025-09-03,2025-09-04,1,0.5845926102291316,0.536,1,1,UP,True,0.5944000322132411,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.009807421984109554
2025-09-04,2025-09-05,1,0.5922538604969428,0.536,1,1,UP,True,0.6097370259991437,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.01748316550220086
2025-09-05,2025-09-08,1,0.4947139776695654,0.536,0,0,DOWN,False,0.5027094609390756,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.007995483269510273
2025-09-08,2025-09-09,1,0.5729275914165338,0.536,1,1,UP,True,0.5543361540489714,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.018591437367562413
2025-09-09,2025-09-10,1,0.5575173707220272,0.536,1,1,UP,True,0.5731087727731737,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.015591402051146508
2025-09-10,2025-09-11,1,0.5471480986377999,0.536,1,1,UP,True,0.5457127979560241,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.0014353006817757752
2025-09-11,2025-09-12,1,0.5997583243799682,0.536,1,1,UP,True,0.5999398217278072,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.00018149734783901028
2025-09-12,2025-09-15,0,0.5437449849136992,0.536,1,1,UP,False,0.5387842215940889,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.004960763319610262
2025-09-15,2025-09-16,1,0.56576253437057,0.536,1,1,UP,True,0.5437777344053779,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.021984799965192092
2025-09-16,2025-09-17,1,0.5210374325511685,0.536,0,0,DOWN,False,0.4908726237911221,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.030164808760046402
2025-09-17,2025-09-18,1,0.5509613412872568,0.536,1,1,UP,True,0.5462526436299383,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.004708697657318517
2025-09-18,2025-09-19,0,0.5941771475037843,0.536,1,1,UP,False,0.5987081150307438,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.004530967526959584
2025-09-19,2025-09-22,0,0.5737343395619731,0.536,1,1,UP,False,0.5857403673249324,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.012006027762959337
2025-09-22,2025-09-23,0,0.543860796049481,0.536,1,1,UP,False,0.5289327701126791,0,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.01492802593680187
2025-09-23,2025-09-24,0,0.46641073856317045,0.536,0,0,DOWN,True,0.4499474495076921,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.016463289055478336
2025-09-24,2025-09-25,0,0.4845722291951376,0.536,0,0,DOWN,True,0.4741432899528084,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.010428939242329183
2025-09-25,2025-09-26,0,0.45880644509450436,0.536,0,0,DOWN,True,0.4394276886326496,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.019378756461854774
2025-09-26,2025-09-29,1,0.5614244669585573,0.536,1,1,UP,True,0.5854520573982495,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02402759043969216
2025-09-29,2025-09-30,0,0.5503774248779337,0.536,1,1,UP,False,0.537965339273658,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.012412085604275758
2025-09-30,2025-10-01,1,0.5575498966418577,0.536,1,1,UP,True,0.5866370120672582,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.029087115425400434
2025-10-01,2025-10-03,1,0.5812767986118033,0.536,1,1,UP,True,0.602770305939823,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02149350732801969
2025-10-03,2025-10-06,1,0.5385250631611949,0.536,1,1,UP,True,0.5481808080232358,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.009655744862040905
2025-10-06,2025-10-07,1,0.6037925768893755,0.536,1,1,UP,True,0.5795384547268093,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.024254122162566172
2025-10-07,2025-10-08,0,0.4726222497937227,0.536,0,0,DOWN,True,0.4666792135389425,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.00594303625478021
2025-10-08,2025-10-09,1,0.5613490399433139,0.536,1,1,UP,True,0.5670251286242712,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.00567608868095737
2025-10-09,2025-10-10,1,0.4944306610993832,0.536,0,0,DOWN,False,0.4974407250049612,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.0030100639055780087
2025-10-10,2025-10-13,0,0.4579618112954028,0.536,0,0,DOWN,True,0.3997857746186491,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.058176036676753695
2025-10-13,2025-10-14,0,0.6018697026086514,0.536,1,1,UP,False,0.5699913133116542,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.031878389296997156
2025-10-14,2025-10-15,1,0.4793677112763385,0.536,0,0,DOWN,False,0.4707282905468087,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.008639420729529779
2025-10-15,2025-10-16,1,0.5916992418813618,0.536,1,1,UP,True,0.590964164066389,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.0007350778149728399
2025-10-16,2025-10-17,1,0.47433461056075316,0.536,0,0,DOWN,False,0.4611606171305866,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.013173993430166564
2025-10-17,2025-10-20,1,0.6178845582937685,0.536,1,1,UP,True,0.6351021663991451,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.017217608105376536
2025-10-20,2025-10-21,0,0.6340085545612124,0.536,1,1,UP,False,0.6096165038780325,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.024392050683179956
2025-10-21,2025-10-23,1,0.5252417730267214,0.536,0,1,UP,True,0.5473647716282178,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02212299860149647
2025-10-23,2025-10-24,0,0.6060172417851833,0.536,1,1,UP,False,0.6300729885050833,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.024055746719899962
2025-10-24,2025-10-27,1,0.5903325577769073,0.536,1,1,UP,True,0.6287392319433074,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.03840667416640009
2025-10-27,2025-10-28,0,0.6115457863181492,0.536,1,1,UP,False,0.6492140066728841,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.03766822035473494
2025-10-28,2025-10-29,1,0.5462950564989747,0.536,1,1,UP,True,0.5559748374871484,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.00967978098817368
2025-10-29,2025-10-30,0,0.5418777295763938,0.536,1,1,UP,False,0.5186239052625599,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.023253824313833937
2025-10-30,2025-10-31,0,0.4552704574325821,0.536,0,0,DOWN,True,0.4553903880445,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.00011993061191789556
2025-10-31,2025-11-03,1,0.5336391908281894,0.536,0,1,UP,True,0.551011403291099,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.017372212462909542
2025-11-03,2025-11-04,0,0.5548639635805377,0.536,1,1,UP,False,0.53533191791528,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.01953204566525768
2025-11-04,2025-11-06,0,0.42771433362557115,0.536,0,0,DOWN,True,0.3743739963136568,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.05334033731191434
2025-11-06,2025-11-07,0,0.4285268611528484,0.536,0,0,DOWN,True,0.3846408432476711,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.043886017905177266
2025-11-07,2025-11-10,1,0.534325547578878,0.536,0,0,DOWN,False,0.5410940387016819,1,1,0.54,UP,True,UP,NEW_FIXED_OLD_MISS,0.006768491122803977
2025-11-10,2025-11-11,1,0.5920184987255606,0.536,1,1,UP,True,0.6158030903138678,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.023784591588307258
2025-11-11,2025-11-12,1,0.5608623915419516,0.536,1,1,UP,True,0.5731306337812276,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.012268242239276028
2025-11-12,2025-11-13,1,0.5595470596463226,0.536,1,1,UP,True,0.5731335020435933,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.013586442397270693
2025-11-13,2025-11-14,1,0.4409614130897091,0.536,0,0,DOWN,False,0.3710828136772098,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.0698785994124993
2025-11-14,2025-11-17,1,0.5320905678003233,0.536,0,0,DOWN,False,0.5031885472677032,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.028902020532620032
2025-11-17,2025-11-18,0,0.44725437906343374,0.536,0,0,DOWN,True,0.4170862430727248,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.030168135990708944
2025-11-18,2025-11-19,1,0.43866757598929296,0.536,0,0,DOWN,False,0.3977423137817958,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.04092526220749715
2025-11-19,2025-11-20,1,0.6001968203674752,0.536,1,1,UP,True,0.6218889517202173,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02169213135274206
2025-11-20,2025-11-21,0,0.4589215247253727,0.536,0,0,DOWN,True,0.3981869863829065,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.06073453834246617
2025-11-21,2025-11-24,0,0.5754816559062537,0.536,1,1,UP,False,0.6191360634010804,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.04365440749482674
2025-11-24,2025-11-25,0,0.5774499806149076,0.536,1,1,UP,False,0.6092572564839959,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.03180727586908827
2025-11-25,2025-11-26,1,0.5969900550295543,0.536,1,1,UP,True,0.6354575329403285,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.038467477910774206
2025-11-26,2025-11-27,1,0.6172017181908864,0.536,1,1,UP,True,0.632013264708004,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.01481154651711758
2025-11-27,2025-11-28,0,0.5380627941495127,0.536,1,1,UP,False,0.5225347426728648,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.01552805147664793
2025-11-28,2025-12-01,0,0.5959686486690138,0.536,1,1,UP,False,0.5641956180868467,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.03177303058216707
2025-12-01,2025-12-02,0,0.4514925218660361,0.536,0,0,DOWN,True,0.4398878688113201,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.01160465305471603
2025-12-02,2025-12-03,0,0.5536498237418865,0.536,1,1,UP,False,0.5660009544823925,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.012351130740505978
2025-12-03,2025-12-04,1,0.5647500521239696,0.536,1,1,UP,True,0.5791898845110731,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.014439832387103557
2025-12-04,2025-12-05,1,0.5397274496521454,0.536,1,1,UP,True,0.5404947282356648,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.0007672785835194373
2025-12-05,2025-12-08,0,0.5789868434917638,0.536,1,1,UP,False,0.5926642223401019,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.013677378848338084
2025-12-08,2025-12-09,0,0.4476814988792434,0.536,0,0,DOWN,True,0.4329708833054805,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.014710615573762909
2025-12-09,2025-12-10,0,0.5083038974145645,0.536,0,0,DOWN,True,0.4925316075399146,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.015772289874649903
2025-12-10,2025-12-11,1,0.578801399070125,0.536,1,1,UP,True,0.5962352957051685,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.017433896635043578
2025-12-11,2025-12-12,1,0.5655126368843367,0.536,1,1,UP,True,0.5865786414132148,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02106600452887808
2025-12-12,2025-12-15,0,0.44512729891238634,0.536,0,0,DOWN,True,0.3967771335623724,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.04835016535001396
2025-12-15,2025-12-16,0,0.4772517258238373,0.536,0,0,DOWN,True,0.4491176503334523,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.02813407549038499
2025-12-16,2025-12-17,0,0.5023039471301588,0.536,0,0,DOWN,True,0.4862324811024489,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.016071466027709924
2025-12-17,2025-12-18,0,0.4301858568088611,0.536,0,0,DOWN,True,0.3750170458319272,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.055168810976933935
2025-12-18,2025-12-19,1,0.5648461386262968,0.536,1,1,UP,True,0.5751144790914731,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.010268340465176218
2025-12-19,2025-12-22,1,0.5965291949511681,0.536,1,1,UP,True,0.605737094810832,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.00920789985966397
2025-12-22,2025-12-23,1,0.6186888816724676,0.536,1,1,UP,True,0.632812390272631,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.014123508600163426
2025-12-23,2025-12-24,0,0.5773488350890955,0.536,1,1,UP,False,0.5862149398625007,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.008866104773405215
2025-12-24,2025-12-26,0,0.5729364364011384,0.536,1,1,UP,False,0.5936420001224603,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.020705563721321818
2025-12-26,2025-12-29,0,0.4907772295625899,0.536,0,0,DOWN,True,0.5104234782578604,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.019646248695270485
2025-12-29,2025-12-30,1,0.4624734208127332,0.536,0,0,DOWN,False,0.452783926294713,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.009689494518020203
2025-12-30,2025-12-31,1,0.5082041641532032,0.536,0,0,DOWN,False,0.516302236436308,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.008098072283104774
2025-12-31,2026-01-01,0,0.4736642217472263,0.536,0,0,DOWN,True,0.4436589068021936,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.03000531494503267
2026-01-01,2026-01-02,1,0.520577182454685,0.536,0,0,DOWN,False,0.5158899096587543,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.00468727279593073
2026-01-02,2026-01-05,0,0.5684854304404049,0.536,1,1,UP,False,0.5744175752212932,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.0059321447808883265
2026-01-05,2026-01-06,0,0.5955206245848348,0.536,1,1,UP,False,0.5953914492363986,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.0001291753484361502
2026-01-06,2026-01-07,0,0.5726622071639436,0.536,1,1,UP,False,0.5867891670394703,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.014126959875526701
2026-01-07,2026-01-08,0,0.4945050952322139,0.536,0,0,DOWN,True,0.471208659939698,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.023296435292515905
2026-01-08,2026-01-09,0,0.5068672655221168,0.536,0,0,DOWN,True,0.5074990572790123,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.0006317917568955389
2026-01-09,2026-01-12,1,0.571927087517273,0.536,1,1,UP,True,0.5599729439015873,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.011954143615685697
2026-01-12,2026-01-13,0,0.5385585897525792,0.536,1,1,UP,False,0.5215505610345287,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.017008028718050516
2026-01-13,2026-01-14,0,0.47014920939448124,0.536,0,0,DOWN,True,0.4553499307201427,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.014799278674338556
2026-01-14,2026-01-16,1,0.44787849518840556,0.536,0,0,DOWN,False,0.4378651604801309,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.010013334708274646
2026-01-16,2026-01-19,0,0.5038387305404403,0.536,0,0,DOWN,True,0.5130303017176172,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.00919157117717695
2026-01-19,2026-01-20,0,0.5024423643152696,0.536,0,0,DOWN,True,0.4989705096951118,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.003471854620157755
2026-01-20,2026-01-21,0,0.41984528518846514,0.536,0,0,DOWN,True,0.4513788730491151,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.03153358786064997
2026-01-21,2026-01-22,1,0.5731676812716252,0.536,1,1,UP,True,0.5785439189264144,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.005376237654789229
2026-01-22,2026-01-23,0,0.6005333925638593,0.536,1,1,UP,False,0.6118687922331063,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.011335399669247015
2026-01-23,2026-01-27,1,0.519344037024174,0.536,0,0,DOWN,False,0.4942151515004377,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.025128885523736266
2026-01-27,2026-01-28,1,0.5547000967287941,0.536,1,1,UP,True,0.5627082131411398,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.008008116412345778
2026-01-28,2026-01-29,1,0.5512929503886236,0.536,1,1,UP,True,0.560674881872554,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.009381931483930406
2026-01-29,2026-01-30,0,0.5120258780417863,0.536,0,0,DOWN,True,0.4922490381820472,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.01977683985973916
2026-01-30,2026-02-01,0,0.4541599476376217,0.536,0,0,DOWN,True,0.4499369450405619,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.004223002597059766
2026-02-01,2026-02-02,1,0.5077051477503915,0.536,0,0,DOWN,False,0.5128368933589664,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.005131745608574878
2026-02-02,2026-02-03,1,0.5980995514208853,0.536,1,1,UP,True,0.5567711346364249,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.04132841678446042
2026-02-03,2026-02-04,1,0.47469163660523633,0.536,0,0,DOWN,False,0.4387882950483754,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.035903341556860924
2026-02-04,2026-02-05,0,0.48152823962857766,0.536,0,0,DOWN,True,0.4831001727449439,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.0015719331163662198
2026-02-05,2026-02-06,1,0.44426748835891683,0.536,0,0,DOWN,False,0.4020167315872395,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.042250756771677334
2026-02-06,2026-02-09,1,0.5831536949043917,0.536,1,1,UP,True,0.6043464952516107,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.021192800347218932
2026-02-09,2026-02-10,1,0.5953014600307811,0.536,1,1,UP,True,0.6185658108941494,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02326435086336831
2026-02-10,2026-02-11,1,0.49503250100248714,0.536,0,0,DOWN,False,0.495236005619729,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.00020350461724188973
2026-02-11,2026-02-12,0,0.5320138190746933,0.536,0,0,DOWN,True,0.5299603781050157,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.0020534409696775224
2026-02-12,2026-02-13,0,0.43032660268053563,0.536,0,0,DOWN,True,0.3793808728455833,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.050945729834952325
2026-02-13,2026-02-16,1,0.5170713767547099,0.536,0,0,DOWN,False,0.5344659735317555,0,1,0.54,UP,True,UP,NEW_FIXED_OLD_MISS,0.01739459677704558
2026-02-16,2026-02-17,1,0.5312795081319475,0.536,0,0,DOWN,False,0.5368248277162604,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.005545319584312924
2026-02-17,2026-02-18,1,0.5666405659258801,0.536,1,1,UP,True,0.5455956101490472,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.021044955776832852
2026-02-18,2026-02-19,0,0.602776770830923,0.536,1,1,UP,False,0.6235420179488166,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.020765247117893626
2026-02-19,2026-02-20,1,0.47605407202607275,0.536,0,0,DOWN,False,0.4848307619437031,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.008776689917630365
2026-02-20,2026-02-23,1,0.5803876079831675,0.536,1,1,UP,True,0.6122656755528233,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.03187806756965583
2026-02-23,2026-02-24,0,0.44618234063111484,0.536,0,0,DOWN,True,0.39211905788681,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.05406328274430483
2026-02-24,2026-02-25,1,0.5781712916286234,0.536,1,1,UP,True,0.622219828644218,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.044048537015594635
2026-02-25,2026-02-26,1,0.5930196939264739,0.536,1,1,UP,True,0.618210968590452,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.02519127466397808
2026-02-26,2026-02-27,0,0.47165415813808803,0.536,0,0,DOWN,True,0.471035653029159,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.0006185051089290239
2026-02-27,2026-03-02,0,0.43962044961117297,0.536,0,0,DOWN,True,0.4164407656616751,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.023179683949497876
2026-03-02,2026-03-04,0,0.49288660184755345,0.536,0,0,DOWN,True,0.4920820165898135,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.0008045852577399648
2026-03-04,2026-03-05,1,0.5620731257050995,0.536,1,1,UP,True,0.5856756121183945,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.023602486413294987
2026-03-05,2026-03-06,0,0.44256068800188264,0.536,0,0,DOWN,True,0.41766587348352,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.024894814518362618
2026-03-06,2026-03-09,0,0.4168030900835514,0.536,0,0,DOWN,True,0.3940134587813977,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.022789631302153668
2026-03-09,2026-03-10,1,0.5631716943700401,0.536,1,1,UP,True,0.5707221850688641,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.007550490698823964
2026-03-10,2026-03-11,0,0.5191648105687638,0.536,0,0,DOWN,True,0.5139264247764077,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.005238385792356137
2026-03-11,2026-03-12,0,0.49037163621513197,0.536,0,0,DOWN,True,0.4867621945739568,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.0036094416411751595
2026-03-12,2026-03-13,0,0.41421665900558247,0.536,0,0,DOWN,True,0.3764023132073185,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.03781434579826398
2026-03-13,2026-03-16,1,0.46619542933141644,0.536,0,0,DOWN,False,0.4685858794719313,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.002390450140514866
2026-03-16,2026-03-17,1,0.5899284466892205,0.536,1,1,UP,True,0.6090116084423043,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.019083161753083777
2026-03-17,2026-03-18,1,0.5875454893498612,0.536,1,1,UP,True,0.596203425256217,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.008657935906355774
2026-03-18,2026-03-19,0,0.4422317622935328,0.536,0,0,DOWN,True,0.4061357417274906,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.036096020566042164
2026-03-19,2026-03-20,1,0.49328760803183874,0.536,0,0,DOWN,False,0.4988094443116395,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.00552183627980074
2026-03-20,2026-03-23,0,0.42006632830132384,0.536,0,0,DOWN,True,0.3798789374378448,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.040187390863479056
2026-03-23,2026-03-24,1,0.5745024908796967,0.536,1,1,UP,True,0.6075517331440524,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.03304924226435568
2026-03-24,2026-03-25,1,0.46704421425481535,0.536,0,0,DOWN,False,0.474246457416732,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.007202243161916644
2026-03-25,2026-03-27,0,0.6135152538796593,0.536,1,1,UP,False,0.6385867433577118,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.02507148947805249
2026-03-27,2026-03-30,0,0.41971969491959943,0.536,0,0,DOWN,True,0.3872760543764006,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.032443640543198815
2026-03-30,2026-04-01,1,0.5124372753651444,0.536,0,0,DOWN,False,0.5206215241104475,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.008184248745303102
2026-04-01,2026-04-02,0,0.6019742355399046,0.536,1,1,UP,False,0.6141494513098411,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.01217521576993652
2026-04-02,2026-04-06,1,0.5263627722793559,0.536,0,0,DOWN,False,0.5348105326853405,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.008447760405984606
2026-04-06,2026-04-07,1,0.5980917476299974,0.536,1,1,UP,True,0.571940195800378,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.02615155182961937
2026-04-07,2026-04-08,1,0.5135241623644177,0.536,0,0,DOWN,False,0.5081041976549391,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.005419964709478586
2026-04-08,2026-04-09,0,0.6382580295464572,0.536,1,1,UP,False,0.6611571963678617,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.022899166821404582
2026-04-09,2026-04-10,1,0.5941240444299145,0.536,1,1,UP,True,0.6085536778011377,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.01442963337122316
2026-04-10,2026-04-13,0,0.551784348723496,0.536,1,1,UP,False,0.554896219113108,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.003111870389612026
2026-04-13,2026-04-15,1,0.5753236139930018,0.536,1,1,UP,True,0.5584650293284992,1,1,0.54,UP,True,UP,BOTH_RIGHT,-0.01685858466450263
2026-04-15,2026-04-16,0,0.5898924554794914,0.536,1,1,UP,False,0.6042218624233517,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.014329406943860312
2026-04-16,2026-04-17,1,0.5759184456534198,0.536,1,1,UP,True,0.5938514864944262,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.017933040841006442
2026-04-17,2026-04-20,0,0.6146380639692516,0.536,1,1,UP,False,0.6543247290293395,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.03968666506008789
2026-04-20,2026-04-21,1,0.4708897592456055,0.536,0,0,DOWN,False,0.5015303081293001,0,0,0.54,DOWN,False,UP,BOTH_WRONG,0.030640548883694607
2026-04-21,2026-04-22,0,0.4654214703390219,0.536,0,0,DOWN,True,0.462556021439535,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.002865448899486922
2026-04-22,2026-04-23,0,0.5740133730157899,0.536,1,1,UP,False,0.5995389952523189,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.02552562223652899
2026-04-23,2026-04-24,0,0.45439245098535236,0.536,0,0,DOWN,True,0.4365877800392447,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.01780467094610766
2026-04-24,2026-04-27,1,0.5563357702343772,0.536,1,1,UP,True,0.5725030337670595,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.016167263532682274
2026-04-27,2026-04-28,0,0.570177128642662,0.536,1,1,UP,False,0.5688380677564464,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.001339060886215604
2026-04-28,2026-04-29,1,0.476417337758729,0.536,0,0,DOWN,False,0.4542419334216317,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.022175404337097304
2026-04-29,2026-04-30,0,0.4712821739110194,0.536,0,0,DOWN,True,0.4571225953449172,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.014159578566102171
2026-04-30,2026-05-04,1,0.5763574757612383,0.536,1,1,UP,True,0.5977867793262838,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.021429303565045466
2026-05-04,2026-05-05,0,0.4364786087803177,0.536,0,0,DOWN,True,0.4868867911288741,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.05040818234855643
2026-05-05,2026-05-06,1,0.5758111008714001,0.536,1,1,UP,True,0.5845818546695125,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.00877075379811243
2026-05-06,2026-05-07,0,0.6321818439455402,0.536,1,1,UP,False,0.6359176067440298,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.003735762798489528
2026-05-07,2026-05-08,0,0.5132885706567447,0.536,0,0,DOWN,True,0.481251948449228,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.03203662220751674
2026-05-08,2026-05-11,0,0.5581102484040696,0.536,1,1,UP,False,0.5805855982050315,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.022475349800961886
2026-05-11,2026-05-12,0,0.4849383593251872,0.536,0,0,DOWN,True,0.4871033318907412,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.0021649725655539798
2026-05-12,2026-05-13,0,0.4878147678574293,0.536,0,0,DOWN,True,0.4974878096184878,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,0.009673041761058543
2026-05-13,2026-05-14,1,0.5415611759038196,0.536,1,1,UP,True,0.5471779814090975,1,1,0.54,UP,True,UP,BOTH_RIGHT,0.005616805505277878
2026-05-14,2026-05-15,0,0.5901600283611222,0.536,1,1,UP,False,0.6297628889974494,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.03960286063632712
2026-05-15,2026-05-18,1,0.4084257154102456,0.536,0,0,DOWN,False,0.3747010082865302,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.03372470712371539
2026-05-18,2026-05-19,0,0.5294474233275485,0.536,0,0,DOWN,True,0.5160634730102536,0,0,0.54,DOWN,True,DOWN,BOTH_RIGHT,-0.01338395031729489
2026-05-19,2026-05-20,1,0.45331907733460824,0.536,0,0,DOWN,False,0.4284629643819285,0,0,0.54,DOWN,False,UP,BOTH_WRONG,-0.024856112952679754
2026-05-20,2026-05-21,0,0.6174308639318701,0.536,1,1,UP,False,0.6410464195166039,1,1,0.54,UP,False,DOWN,BOTH_WRONG,0.023615555584733827
2026-05-21,2026-05-22,1,0.5609159947866829,0.536,1,1,UP,True,0.4927530749918309,0,0,0.54,DOWN,False,UP,NEW_MISSED_OLD_RIGHT,-0.06816291979485195
2026-05-22,2026-05-25,1,0.589483566088999,0.536,1,1,UP,True,0.5038441090033747,0,0,0.54,DOWN,False,UP,NEW_MISSED_OLD_RIGHT,-0.08563945708562426
2026-05-25,2026-05-26,0,0.5633862240998508,0.536,1,1,UP,False,0.542056789982144,1,1,0.54,UP,False,DOWN,BOTH_WRONG,-0.021329434117706825
2026-05-26,2026-05-27,0,0.5457670944504919,0.536,1,1,UP,False,0.4818098367181402,0,0,0.54,DOWN,True,DOWN,NEW_FIXED_OLD_MISS,-0.063957257732351671234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549from __future__ import annotations
import argparseimport jsonimport mathimport sysimport timeimport warningsfrom dataclasses import asdict, dataclassfrom functools import lru_cachefrom pathlib import Pathfrom typing import Iterable
import numpy as npimport pandas as pdimport os
def find_project_root(start: Path) -> Path: env_root = os.environ.get("FORECASTING_PROJECT_ROOT") if env_root: return Path(env_root) fallback = start.parents[4] / "forecasting project" if (fallback / "Data").is_dir() and (fallback / "Alt Data").is_dir(): return fallback
for path in (start, *start.parents): if (path / "Data").is_dir() and (path / "Alt Data").is_dir(): return path raise RuntimeError(f"Could not find project root from {start}")
PROJECT_ROOT = find_project_root(Path(__file__).resolve())DATA_DIR = PROJECT_ROOT / "Data"ALT_DIR = PROJECT_ROOT / "Alt Data"PRICE_DIR = DATA_DIR / "processed" / "bars" / "1d"INTRADAY_DIR = DATA_DIR / "raw" / "minute"OUTPUT_DIR = Path(__file__).resolve().parent / "outputs"OUTPUT_DIR.mkdir(parents=True, exist_ok=True)warnings.filterwarnings("ignore", category=pd.errors.PerformanceWarning)warnings.filterwarnings("ignore", category=FutureWarning)
DEFAULT_TRAIN_END = pd.Timestamp("2023-12-31")DEFAULT_VALID_END = pd.Timestamp("2025-08-17")DEFAULT_TEST_END = pd.Timestamp("2099-12-31")COMMON_VALID_START = pd.Timestamp("2024-07-01")LOCKED_NIFTY50_WEIGHTS = np.array([0.34099525, 0.49518660, 0.16381815], dtype="float64")LOCKED_NIFTY50_THRESHOLD = 0.534NIFTY50_LOW_BANK_VOL_THRESHOLD = 0.004660NIFTY50_BANK_RET_FLIP_THRESHOLD = 0.01677902301854645NIFTY50_TINY_RANGE_UP_THRESHOLD = 0.004204134680410373
SUPPORTED_SYMBOLS = ("NIFTY 50", "NIFTY BANK")
DAILY_VALID_WINDOWS: dict[str, tuple[pd.Timestamp, pd.Timestamp]] = { "NIFTY 50": (pd.Timestamp("2024-07-01"), pd.Timestamp("2025-08-17")), "NIFTY BANK": (pd.Timestamp("2024-07-01"), pd.Timestamp("2025-08-17")),}
SYMBOL_BENCHMARKS: dict[str, str] = { "NIFTY 50": "NIFTY BANK", "NIFTY BANK": "NIFTY 50",}
class ProgressBar: """Small dependency-free terminal progress bar with elapsed time, ETA, and rate."""
def __init__( self, total: int, description: str = "Progress", *, enabled: bool = True, width: int = 34, update_every: float = 0.2, stream: object | None = None, ) -> None: self.total = max(0, int(total)) self.description = description self.enabled = enabled self.width = max(10, int(width)) self.update_every = max(0.0, float(update_every)) self.stream = stream if stream is not None else sys.stderr self.current = 0 self.start_time = time.monotonic() self.last_render = 0.0 self.closed = False self._last_line_len = 0
def __enter__(self) -> "ProgressBar": self.start_time = time.monotonic() self.last_render = 0.0 self.render(force=True) return self
def __exit__(self, exc_type: object, exc: object, tb: object) -> None: self.close()
@staticmethod def _format_duration(seconds: float | None) -> str: if seconds is None or not np.isfinite(seconds) or seconds < 0: return "--:--" seconds = int(round(seconds)) hours, rem = divmod(seconds, 3600) minutes, secs = divmod(rem, 60) if hours: return f"{hours:d}:{minutes:02d}:{secs:02d}" return f"{minutes:02d}:{secs:02d}"
def update(self, current: int | None = None, *, description: str | None = None, force: bool = False) -> None: if current is not None: self.current = max(0, int(current)) if self.total: self.current = min(self.current, self.total) if description is not None: self.description = description self.render(force=force)
def advance(self, step: int = 1, *, description: str | None = None, force: bool = False) -> None: self.update(self.current + int(step), description=description, force=force)
def render(self, *, force: bool = False) -> None: if not self.enabled or self.closed: return now = time.monotonic() if not force and (now - self.last_render) < self.update_every and self.current < self.total: return self.last_render = now elapsed = max(0.0, now - self.start_time) if self.total > 0: fraction = min(1.0, max(0.0, self.current / self.total)) else: fraction = 1.0 filled = int(round(self.width * fraction)) bar = "█" * filled + "░" * (self.width - filled) rate = self.current / elapsed if elapsed > 0 else 0.0 eta = (elapsed / self.current) * (self.total - self.current) if self.current > 0 and self.total > 0 else None line = ( f"\r{self.description} [{bar}] " f"{self.current}/{self.total} {fraction * 100:6.2f}% | " f"elapsed {self._format_duration(elapsed)} | " f"ETA {self._format_duration(eta)} | " f"{rate:,.2f}/s" ) padding = " " * max(0, self._last_line_len - len(line)) print(line + padding, end="", file=self.stream, flush=True) self._last_line_len = len(line)
def close(self) -> None: if self.closed: return self.render(force=True) if self.enabled: print(file=self.stream, flush=True) self.closed = True
def progress_note(message: str, *, enabled: bool = True) -> None: if enabled: print(f"[progress] {message}", file=sys.stderr, flush=True)
@dataclass(frozen=True)class ModelSpec: name: str kind: str use_intraday: bool feature_profile: str = "all" top_k: int | None = None l2: float = 0.5 n_trees: int = 60 max_depth: int = 5 min_leaf: int = 30 seed: int = 7
@dataclassclass FitResult: symbol: str horizon: str horizon_bars: int config: dict[str, object] threshold: float validation_accuracy: float test_accuracy: float baseline_accuracy: float n_train: int n_valid: int n_test: int train_start: str train_end: str valid_start: str valid_end: str test_start: str test_end: str latest_forecast_date: str latest_forecast_for: str latest_forecast_prob_up: float latest_forecast_signal: str feature_count: int validation_prob_std: float test_prob_std: float test_prob_min: float test_prob_max: float
def price_prefix(symbol: str) -> str: return symbol.lower().replace("&", "and").replace(" ", "_")
def benchmark_symbol(symbol: str) -> str: return SYMBOL_BENCHMARKS.get(symbol, "NIFTY 50")
def symbol_file_stem(symbol: str) -> str: mapping = { "NIFTY 50": "nifty50", "NIFTY BANK": "banknifty", "INDIA VIX": "india_vix", } if symbol not in mapping: raise KeyError(f"Unsupported symbol: {symbol}") return mapping[symbol]
def sigmoid(x: np.ndarray) -> np.ndarray: return 1.0 / (1.0 + np.exp(-np.clip(x, -40.0, 40.0)))
def safe_div(numer: pd.Series | np.ndarray, denom: pd.Series | np.ndarray) -> pd.Series: n = pd.Series(numer, copy=False) d = pd.Series(denom, copy=False) out = pd.Series(np.nan, index=n.index, dtype="float64") mask = d.notna() & np.isfinite(d.to_numpy(dtype="float64")) & (d != 0) out.loc[mask] = n.loc[mask].to_numpy(dtype="float64") / d.loc[mask].to_numpy(dtype="float64") return out
def _to_ns_datetime(series: pd.Series) -> pd.Series: return pd.to_datetime(series, errors="coerce").astype("datetime64[ns]")
@lru_cache(maxsize=None)def load_price_frame(symbol: str) -> pd.DataFrame: path = PRICE_DIR / f"{symbol_file_stem(symbol)}_1d.csv" if not path.exists(): raise FileNotFoundError(f"Missing daily price file for {symbol}: {path}") df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] if "date" not in df.columns: raise ValueError(f"Price frame for {symbol} has no date column") df["date"] = _to_ns_datetime(df["date"]) for col in df.columns: if col != "date": df[col] = pd.to_numeric(df[col], errors="coerce") if "volume" in df.columns: volume = pd.to_numeric(df["volume"], errors="coerce") volume_available = volume.replace(0, np.nan).notna().sum() >= max(20, int(0.5 * len(volume))) df["volume"] = volume.replace(0, np.nan) if volume_available else 0.0 return df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True)
def load_vix() -> pd.DataFrame: path = PRICE_DIR / "india_vix_1d.csv" if not path.exists(): return pd.DataFrame(columns=["date"]) df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] if "date" not in df.columns: return pd.DataFrame(columns=["date"]) df["date"] = _to_ns_datetime(df["date"]) rename_map = { "open": "vix_open", "high": "vix_high", "low": "vix_low", "close": "vix_close", "volume": "vix_volume", } df = df.rename(columns={k: v for k, v in rename_map.items() if k in df.columns}) for col in df.columns: if col != "date": df[col] = pd.to_numeric(df[col], errors="coerce") return df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True)
def load_external_panel() -> pd.DataFrame: path = ALT_DIR / "external" / "processed" / "external_daily_panel.csv" if not path.exists(): return pd.DataFrame(columns=["date"]) df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] if "date" not in df.columns: return pd.DataFrame(columns=["date"]) df["date"] = _to_ns_datetime(df["date"]) for col in df.columns: if col != "date": df[col] = pd.to_numeric(df[col], errors="coerce") return df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True)
def load_institutional_panel() -> pd.DataFrame: path = ALT_DIR / "institutional" / "processed" / "institutional_daily_panel.csv" if not path.exists(): return pd.DataFrame(columns=["date"]) df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] if "date" not in df.columns: return pd.DataFrame(columns=["date"]) df["date"] = _to_ns_datetime(df["date"]) for col in df.columns: if col != "date": df[col] = pd.to_numeric(df[col], errors="coerce") return df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True)
def load_options_features(symbol: str) -> pd.DataFrame: file_name = { "NIFTY 50": "nifty50_options_daily_features.csv", "NIFTY BANK": "banknifty_options_daily_features.csv", }[symbol] path = ALT_DIR / "options" / "processed" / file_name if not path.exists(): return pd.DataFrame(columns=["date"]) df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] if "date" not in df.columns: return pd.DataFrame(columns=["date"]) df["date"] = _to_ns_datetime(df["date"]) prefix = price_prefix(symbol) rename = {c: f"{prefix}_opt_{c}" for c in df.columns if c not in {"date", "spot_close"}} df = df.rename(columns=rename) for col in df.columns: if col != "date": df[col] = pd.to_numeric(df[col], errors="coerce") return df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True)
def add_options_regime_features(df: pd.DataFrame) -> pd.DataFrame: df = df.copy() for prefix in ("nifty_50_opt", "nifty_bank_opt"): base = { "pcr_oi": f"{prefix}_pcr_open_int", "pcr_contracts": f"{prefix}_pcr_contracts", "atm_pcr_oi": f"{prefix}_atm_pcr_open_int", "atm_straddle": f"{prefix}_atm_straddle_close", "atm_ce": f"{prefix}_atm_close_ce", "atm_pe": f"{prefix}_atm_close_pe", "atm_oi_ce": f"{prefix}_atm_open_int_ce", "atm_oi_pe": f"{prefix}_atm_open_int_pe", "contracts_ce": f"{prefix}_contracts_ce", "contracts_pe": f"{prefix}_contracts_pe", "oi_ce": f"{prefix}_open_int_ce", "oi_pe": f"{prefix}_open_int_pe", "chg_oi_ce": f"{prefix}_chg_in_oi_ce", "chg_oi_pe": f"{prefix}_chg_in_oi_pe", } if base["atm_ce"] in df.columns and base["atm_pe"] in df.columns: ce = pd.to_numeric(df[base["atm_ce"]], errors="coerce") pe = pd.to_numeric(df[base["atm_pe"]], errors="coerce") total = ce + pe df[f"{prefix}_atm_skew"] = safe_div(ce - pe, total + 1e-6) df[f"{prefix}_atm_put_share"] = safe_div(pe, total + 1e-6) if base["atm_straddle"] in df.columns: series = pd.to_numeric(df[base["atm_straddle"]], errors="coerce") for w in (5, 20): df[f"{prefix}_atm_straddle_z{w}"] = safe_div(series - series.rolling(w).mean(), series.rolling(w).std()) df[f"{prefix}_atm_straddle_ret_5"] = series.pct_change(5, fill_method=None) if base["pcr_oi"] in df.columns: series = pd.to_numeric(df[base["pcr_oi"]], errors="coerce") df[f"{prefix}_pcr_oi_z20"] = safe_div(series - series.rolling(20).mean(), series.rolling(20).std()) df[f"{prefix}_pcr_oi_chg_5"] = series.diff(5) if base["pcr_contracts"] in df.columns: series = pd.to_numeric(df[base["pcr_contracts"]], errors="coerce") df[f"{prefix}_pcr_contracts_z20"] = safe_div(series - series.rolling(20).mean(), series.rolling(20).std()) if base["atm_pcr_oi"] in df.columns: series = pd.to_numeric(df[base["atm_pcr_oi"]], errors="coerce") df[f"{prefix}_atm_pcr_oi_z20"] = safe_div(series - series.rolling(20).mean(), series.rolling(20).std()) if base["oi_ce"] in df.columns and base["oi_pe"] in df.columns: ce = pd.to_numeric(df[base["oi_ce"]], errors="coerce") pe = pd.to_numeric(df[base["oi_pe"]], errors="coerce") total = ce + pe df[f"{prefix}_oi_balance"] = safe_div(pe - ce, total + 1e-6) if base["contracts_ce"] in df.columns and base["contracts_pe"] in df.columns: ce = pd.to_numeric(df[base["contracts_ce"]], errors="coerce") pe = pd.to_numeric(df[base["contracts_pe"]], errors="coerce") total = ce + pe df[f"{prefix}_contracts_balance"] = safe_div(pe - ce, total + 1e-6) if base["chg_oi_ce"] in df.columns and base["chg_oi_pe"] in df.columns: ce = pd.to_numeric(df[base["chg_oi_ce"]], errors="coerce") pe = pd.to_numeric(df[base["chg_oi_pe"]], errors="coerce") total = ce.abs() + pe.abs() df[f"{prefix}_chg_oi_balance"] = safe_div(pe - ce, total + 1e-6) if {"nifty_50_opt_atm_straddle_close", "nifty_50_close"}.issubset(df.columns): df["nifty_50_opt_straddle_rel_spot"] = safe_div(df["nifty_50_opt_atm_straddle_close"], df["nifty_50_close"]) if {"nifty_bank_opt_atm_straddle_close", "nifty_bank_close"}.issubset(df.columns): df["nifty_bank_opt_straddle_rel_spot"] = safe_div(df["nifty_bank_opt_atm_straddle_close"], df["nifty_bank_close"]) return df
def add_external_regime_features(df: pd.DataFrame) -> pd.DataFrame: df = df.copy() base_cols = [c for c in df.columns if c.endswith("_value") or c.endswith("_change_1") or c.endswith("_return_1")] for col in base_cols: series = pd.to_numeric(df[col], errors="coerce") if series.notna().sum() < 40: continue for w in (5, 20, 60): df[f"{col}_mean_{w}"] = series.rolling(w).mean() for w in (20, 60): rolling_std = series.rolling(w).std() df[f"{col}_z_{w}"] = safe_div(series - series.rolling(w).mean(), rolling_std) ratio_pairs = [ ("nasdaq_composite_value", "sp500_value", "nasdaq_vs_sp500"), ("vix_fred_value", "vix_close", "us_vix_vs_india_vix"), ("broad_dollar_index_value", "india_fx_inr_per_usd_value", "dxy_vs_inr"), ] for numer_col, denom_col, prefix in ratio_pairs: if numer_col in df.columns and denom_col in df.columns: ratio = safe_div(df[numer_col], df[denom_col]) df[f"{prefix}_ratio"] = ratio df[f"{prefix}_z20"] = safe_div(ratio - ratio.rolling(20).mean(), ratio.rolling(20).std()) df[f"{prefix}_mom_5"] = ratio.pct_change(5, fill_method=None) if {"us10y_treasury_value", "fed_funds_value"}.issubset(df.columns): spread = pd.to_numeric(df["us10y_treasury_value"], errors="coerce") - pd.to_numeric(df["fed_funds_value"], errors="coerce") df["us10y_minus_fedfunds"] = spread df["us10y_minus_fedfunds_z20"] = safe_div(spread - spread.rolling(20).mean(), spread.rolling(20).std()) return df
def add_institutional_flow_features(df: pd.DataFrame) -> pd.DataFrame: df = df.copy() net_cols = [ "fii_cash_net", "dii_cash_net", "fii_fno_futures_net", "fii_fno_options_net", "fii_index_futures_net_oi", "fii_index_options_net_oi", "fii_index_futures_net_volume", "fii_index_options_net_volume", ] for col in net_cols: if col not in df.columns: continue series = pd.to_numeric(df[col], errors="coerce") gross_col = col.replace("_net", "_buy") alt_gross_col = col.replace("_net", "_long_volume") gross = None if gross_col in df.columns: gross = pd.to_numeric(df[gross_col], errors="coerce").abs() elif alt_gross_col in df.columns: gross = pd.to_numeric(df[alt_gross_col], errors="coerce").abs() for w in (3, 5, 10, 20): df[f"{col}_sum_{w}"] = series.rolling(w).sum() df[f"{col}_mean_{w}"] = series.rolling(w).mean() df[f"{col}_z20"] = safe_div(series - series.rolling(20).mean(), series.rolling(20).std()) df[f"{col}_sign"] = np.sign(series) if gross is not None: df[f"{col}_intensity"] = safe_div(series, gross + 1e-6) if {"fii_cash_net", "dii_cash_net"}.issubset(df.columns): cash_spread = pd.to_numeric(df["fii_cash_net"], errors="coerce") - pd.to_numeric(df["dii_cash_net"], errors="coerce") df["inst_cash_spread"] = cash_spread df["inst_cash_spread_z20"] = safe_div(cash_spread - cash_spread.rolling(20).mean(), cash_spread.rolling(20).std()) if {"fii_fno_futures_net", "fii_fno_options_net"}.issubset(df.columns): combo = pd.to_numeric(df["fii_fno_futures_net"], errors="coerce") + pd.to_numeric(df["fii_fno_options_net"], errors="coerce") df["fii_fno_total_net"] = combo df["fii_fno_total_net_z20"] = safe_div(combo - combo.rolling(20).mean(), combo.rolling(20).std()) if {"fii_index_options_call_net_volume", "fii_index_options_put_net_volume"}.issubset(df.columns): put_call_spread = pd.to_numeric(df["fii_index_options_put_net_volume"], errors="coerce") - pd.to_numeric(df["fii_index_options_call_net_volume"], errors="coerce") total = ( pd.to_numeric(df["fii_index_options_put_net_volume"], errors="coerce").abs() + pd.to_numeric(df["fii_index_options_call_net_volume"], errors="coerce").abs() ) df["fii_put_call_volume_spread"] = put_call_spread df["fii_put_call_volume_balance"] = safe_div(put_call_spread, total + 1e-6) return df
def add_cross_market_features(df: pd.DataFrame) -> pd.DataFrame: df = df.copy() if {"nifty_50_ret_1", "fii_cash_net"}.issubset(df.columns): df["fii_cash_x_nifty50_ret"] = pd.to_numeric(df["fii_cash_net"], errors="coerce") * pd.to_numeric(df["nifty_50_ret_1"], errors="coerce") if {"nifty_bank_ret_1", "fii_fno_futures_net"}.issubset(df.columns): df["fii_futures_x_bank_ret"] = pd.to_numeric(df["fii_fno_futures_net"], errors="coerce") * pd.to_numeric(df["nifty_bank_ret_1"], errors="coerce") if {"vix_close", "fii_cash_net"}.issubset(df.columns): df["fii_cash_vs_vix"] = safe_div(pd.to_numeric(df["fii_cash_net"], errors="coerce"), pd.to_numeric(df["vix_close"], errors="coerce")) if {"vix_fred_value", "nifty_50_ret_std_20"}.issubset(df.columns): df["us_vix_x_local_vol"] = pd.to_numeric(df["vix_fred_value"], errors="coerce") * pd.to_numeric(df["nifty_50_ret_std_20"], errors="coerce") return df
def add_price_features(df: pd.DataFrame, prefix: str) -> pd.DataFrame: df = df.copy() if f"{prefix}_close" not in df.columns: rename_map = {c: f"{prefix}_{c}" for c in ["open", "high", "low", "close", "volume"] if c in df.columns} df = df.rename(columns=rename_map) close = df[f"{prefix}_close"] open_ = df[f"{prefix}_open"] high = df[f"{prefix}_high"] low = df[f"{prefix}_low"] raw_vol = pd.to_numeric(df.get(f"{prefix}_volume", 0.0), errors="coerce") volume_missing = raw_vol.replace(0, np.nan).notna().sum() < max(20, int(0.5 * len(raw_vol))) vol = raw_vol.replace(0, np.nan)
ret_1 = close.pct_change() df[f"{prefix}_ret_1"] = ret_1 df[f"{prefix}_ret_2"] = close.pct_change(2) df[f"{prefix}_ret_5"] = close.pct_change(5) df[f"{prefix}_ret_10"] = close.pct_change(10) df[f"{prefix}_logret_1"] = np.log(close / close.shift(1)) df[f"{prefix}_gap_1"] = open_ / close.shift(1) - 1.0 df[f"{prefix}_body"] = close / open_ - 1.0 df[f"{prefix}_range"] = safe_div(high - low, close) df[f"{prefix}_upper_wick"] = safe_div(high - np.maximum(open_, close), close) df[f"{prefix}_lower_wick"] = safe_div(np.minimum(open_, close) - low, close) df[f"{prefix}_trend_5"] = close / close.rolling(5).mean() - 1.0 df[f"{prefix}_trend_10"] = close / close.rolling(10).mean() - 1.0 df[f"{prefix}_trend_20"] = close / close.rolling(20).mean() - 1.0 df[f"{prefix}_trend_60"] = close / close.rolling(60).mean() - 1.0 df[f"{prefix}_trend_120"] = close / close.rolling(120).mean() - 1.0 df[f"{prefix}_trend_252"] = close / close.rolling(252).mean() - 1.0 rolling_max_252 = close.rolling(252).max() rolling_min_252 = close.rolling(252).min() df[f"{prefix}_drawdown_252"] = close / rolling_max_252 - 1.0 df[f"{prefix}_dist_from_low_252"] = close / rolling_min_252 - 1.0 if volume_missing: df[f"{prefix}_vol_chg_1"] = 0.0 df[f"{prefix}_vol_z_20"] = 0.0 df[f"{prefix}_vol_z_60"] = 0.0 else: df[f"{prefix}_vol_chg_1"] = vol.pct_change() df[f"{prefix}_vol_z_20"] = (vol - vol.rolling(20).mean()) / vol.rolling(20).std() df[f"{prefix}_vol_z_60"] = (vol - vol.rolling(60).mean()) / vol.rolling(60).std()
for w in [3, 5, 10, 20, 60, 120, 252]: df[f"{prefix}_ret_mean_{w}"] = ret_1.rolling(w).mean() df[f"{prefix}_ret_std_{w}"] = ret_1.rolling(w).std() df[f"{prefix}_range_mean_{w}"] = df[f"{prefix}_range"].rolling(w).mean() df[f"{prefix}_range_std_{w}"] = df[f"{prefix}_range"].rolling(w).std()
delta = close.diff() gain = delta.clip(lower=0.0) loss = -delta.clip(upper=0.0) avg_gain = gain.ewm(alpha=1 / 14.0, adjust=False, min_periods=14).mean() avg_loss = loss.ewm(alpha=1 / 14.0, adjust=False, min_periods=14).mean() rs = avg_gain / avg_loss.replace(0.0, np.nan) df[f"{prefix}_rsi_14"] = 100.0 - (100.0 / (1.0 + rs)) ema_12 = close.ewm(span=12, adjust=False, min_periods=12).mean() ema_26 = close.ewm(span=26, adjust=False, min_periods=26).mean() macd = ema_12 - ema_26 signal = macd.ewm(span=9, adjust=False, min_periods=9).mean() df[f"{prefix}_macd"] = macd / close df[f"{prefix}_macd_signal"] = signal / close df[f"{prefix}_macd_hist"] = (macd - signal) / close return df
def build_panel(include_engineered: bool = True, include_option_engineered: bool = True) -> pd.DataFrame: nifty = add_price_features(load_price_frame("NIFTY 50"), "nifty_50") bank = add_price_features(load_price_frame("NIFTY BANK"), "nifty_bank") panel = nifty.merge(bank, on="date", how="inner").sort_values("date").reset_index(drop=True) panel["pair_ret_corr_20"] = panel["nifty_50_ret_1"].rolling(20).corr(panel["nifty_bank_ret_1"]) panel["pair_ret_corr_60"] = panel["nifty_50_ret_1"].rolling(60).corr(panel["nifty_bank_ret_1"]) panel["pair_close_ratio"] = panel["nifty_50_close"] / panel["nifty_bank_close"] - 1.0
vix = load_vix() if not vix.empty: panel = pd.merge_asof(panel.sort_values("date"), vix.sort_values("date"), on="date", direction="backward")
external = load_external_panel() if not external.empty: panel = pd.merge_asof(panel.sort_values("date"), external.sort_values("date"), on="date", direction="backward")
institutional = load_institutional_panel() if not institutional.empty: panel = pd.merge_asof( panel.sort_values("date"), institutional.sort_values("date"), on="date", direction="backward", )
nifty_opts = load_options_features("NIFTY 50") if not nifty_opts.empty: panel = pd.merge_asof(panel.sort_values("date"), nifty_opts.sort_values("date"), on="date", direction="backward")
bank_opts = load_options_features("NIFTY BANK") if not bank_opts.empty: panel = pd.merge_asof(panel.sort_values("date"), bank_opts.sort_values("date"), on="date", direction="backward")
if include_option_engineered: panel = add_options_regime_features(panel) if include_engineered: panel = add_external_regime_features(panel) panel = add_institutional_flow_features(panel) panel = add_cross_market_features(panel) return panel.sort_values("date").reset_index(drop=True)
@lru_cache(maxsize=None)def load_intraday_daily(symbol: str) -> pd.DataFrame: path = INTRADAY_DIR / f"{symbol}_minute.csv" if not path.exists(): raise FileNotFoundError(f"Missing minute file for {symbol}: {path}") df = pd.read_csv(path).copy() df.columns = [str(c).strip().lower().replace(" ", "_") for c in df.columns] df["date"] = _to_ns_datetime(df["date"]) for col in ("open", "high", "low", "close", "volume"): if col in df.columns: df[col] = pd.to_numeric(df[col], errors="coerce") df["session_date"] = df["date"].dt.normalize() df = df.dropna(subset=["date"]).sort_values("date").reset_index(drop=True) grouped = df.groupby("session_date", sort=True)
def session_apply(func): return grouped.apply(func, include_groups=False).to_numpy()
out = pd.DataFrame({"date": grouped["date"].first().dt.normalize()}) out["intraday_open"] = grouped["open"].first().to_numpy() out["intraday_high"] = grouped["high"].max().to_numpy() out["intraday_low"] = grouped["low"].min().to_numpy() out["intraday_close"] = grouped["close"].last().to_numpy() out["intraday_nbars"] = grouped.size().to_numpy() out["intraday_range"] = safe_div(out["intraday_high"] - out["intraday_low"], out["intraday_low"]) out["intraday_body"] = safe_div(out["intraday_close"] - out["intraday_open"], out["intraday_open"]) out["intraday_close_loc"] = safe_div( out["intraday_close"] - out["intraday_low"], out["intraday_high"] - out["intraday_low"], ) out["intraday_first_30"] = session_apply( lambda x: x["close"].iloc[min(29, len(x) - 1)] / x["open"].iloc[0] - 1.0 ) out["intraday_first_60"] = session_apply( lambda x: x["close"].iloc[min(59, len(x) - 1)] / x["open"].iloc[0] - 1.0 ) out["intraday_last_30"] = session_apply( lambda x: x["close"].iloc[-1] / x["close"].iloc[max(0, len(x) - 30)] - 1.0 ) out["intraday_last_60"] = session_apply( lambda x: x["close"].iloc[-1] / x["close"].iloc[max(0, len(x) - 60)] - 1.0 ) out["intraday_midday"] = session_apply( lambda x: x["close"].iloc[max(0, len(x) // 2)] / x["open"].iloc[0] - 1.0 ) out["intraday_second_half"] = session_apply( lambda x: x["close"].iloc[-1] / x["close"].iloc[max(0, len(x) // 2)] - 1.0 ) out["intraday_vshape"] = out["intraday_first_60"] - out["intraday_last_60"] out["intraday_abruptness"] = safe_div(out["intraday_high"] - out["intraday_low"], out["intraday_open"]) out["intraday_realized_vol"] = session_apply(lambda x: np.log(x["close"]).diff().std() * np.sqrt(len(x))) out["intraday_range_vs_body"] = safe_div(out["intraday_range"], out["intraday_body"].abs() + 1e-6) return out
def build_master_frame( symbol: str, target_bars: int = 1,) -> pd.DataFrame: own = price_prefix(symbol) use_engineered = symbol == "NIFTY BANK" use_option_engineered = symbol == "NIFTY 50" panel = build_panel(include_engineered=use_engineered, include_option_engineered=use_option_engineered).copy() intraday = load_intraday_daily(symbol) frame = pd.merge_asof(panel.sort_values("date"), intraday.sort_values("date"), on="date", direction="backward")
if target_bars < 1: raise ValueError("target_bars must be at least 1") future_close = frame[f"{own}_close"].shift(-target_bars) frame["target_date"] = frame["date"].shift(-target_bars) known_future = future_close.notna() frame["target"] = np.where(known_future, (future_close > frame[f"{own}_close"]).astype("int64"), np.nan) frame["next_close_return"] = future_close / frame[f"{own}_close"] - 1.0 frame["target_lag_1"] = frame["target"].shift(1) frame["target_roll_up_5"] = frame["target"].shift(1).rolling(5).mean() frame["target_roll_up_10"] = frame["target"].shift(1).rolling(10).mean() frame["target_roll_up_20"] = frame["target"].shift(1).rolling(20).mean() frame = frame.replace([np.inf, -np.inf], np.nan) # Keep the latest row even though its future close/target is unknown. # Model fitting and backtests filter to known target rows later, while latest_row uses this retained row. return frame.dropna(subset=["date", f"{own}_close"]).reset_index(drop=True)
def is_option_column(name: str) -> bool: return "_opt_" in name
def is_flow_column(name: str) -> bool: prefixes = ("fii_", "dii_", "inst_", "participant_", "cash_", "fno_") return name.startswith(prefixes) or "put_call_volume" in name
def is_external_column(name: str) -> bool: prefixes = ( "sp500_", "nasdaq_composite_", "dow_jones_", "nikkei225_", "us10y_treasury_", "fed_funds_", "india_fx_inr_per_usd_", "brent_fred_", "vix_fred_", "broad_dollar_index_", "dxy_", "us10y_minus_fedfunds", "nasdaq_vs_sp500", "us_vix_vs_india_vix", ) return name.startswith(prefixes)
def is_vix_column(name: str) -> bool: return name.startswith("vix_")
def is_pair_column(name: str) -> bool: return name.startswith("pair_")
def is_intraday_column(name: str) -> bool: return name.startswith("intraday_")
def rank_feature_columns(train_df: pd.DataFrame, feature_cols: list[str]) -> list[str]: scores: dict[str, float] = {} y = train_df["target"].astype(float) for col in feature_cols: x = pd.to_numeric(train_df[col], errors="coerce") pair = pd.concat([x.rename("x"), y.rename("y")], axis=1).dropna() if len(pair) < 40 or pair["x"].nunique() <= 1: scores[col] = 0.0 continue corr = pair["x"].corr(pair["y"]) scores[col] = abs(float(corr)) if corr is not None and np.isfinite(corr) else 0.0 return pd.Series(scores).sort_values(ascending=False).index.tolist()
def select_model_columns(frame: pd.DataFrame, use_intraday: bool, feature_profile: str, symbol: str) -> list[str]: meta = {"date", "target_date", "target", "next_close_return"} cols = [c for c in frame.columns if c not in meta and pd.api.types.is_numeric_dtype(frame[c])] if not use_intraday: cols = [c for c in cols if not is_intraday_column(c)] own = price_prefix(symbol) other = price_prefix(benchmark_symbol(symbol)) core_cols = [ c for c in cols if c.startswith(f"{own}_") or c.startswith(f"{other}_") or is_pair_column(c) or is_vix_column(c) or c.startswith("target_") ] option_cols = [c for c in cols if is_option_column(c)] external_cols = [c for c in cols if is_external_column(c)] flow_cols = [c for c in cols if is_flow_column(c)] intraday_cols = [c for c in cols if is_intraday_column(c)]
profile_map = { "all": cols, "lean": core_cols + intraday_cols, "price_options": core_cols + option_cols + intraday_cols, "price_external": core_cols + external_cols + intraday_cols, "options_macro": core_cols + option_cols + external_cols + intraday_cols, "bank_alt": core_cols + option_cols + external_cols + flow_cols + intraday_cols, } selected = profile_map.get(feature_profile, cols) return list(dict.fromkeys([c for c in selected if c in cols]))
def train_logistic_model( x: np.ndarray, y: np.ndarray, l2: float = 0.5, max_iter: int = 900, lr: float = 0.05, *, progress_enabled: bool = True, progress_update_every: float = 0.2, progress_description: str = "Logistic training",) -> dict[str, np.ndarray | float]: x = np.asarray(x, dtype="float64") y = np.asarray(y, dtype="float64") mean = np.nanmean(x, axis=0) std = np.nanstd(x, axis=0) std[~np.isfinite(std) | (std == 0)] = 1.0 xs = (x - mean) / std coef = np.zeros(xs.shape[1], dtype="float64") intercept = float(np.log((y.mean() + 1e-6) / (1.0 - y.mean() + 1e-6))) mw = np.zeros_like(coef) vw = np.zeros_like(coef) mb = 0.0 vb = 0.0 beta1 = 0.9 beta2 = 0.999 eps = 1e-8 with ProgressBar( max_iter, progress_description, enabled=progress_enabled, update_every=progress_update_every, ) as progress: for step in range(1, max_iter + 1): z = xs @ coef + intercept p = sigmoid(z) err = p - y grad_w = (xs.T @ err) / len(y) + l2 * coef grad_b = err.mean() mw = beta1 * mw + (1.0 - beta1) * grad_w vw = beta2 * vw + (1.0 - beta2) * (grad_w * grad_w) mb = beta1 * mb + (1.0 - beta1) * grad_b vb = beta2 * vb + (1.0 - beta2) * (grad_b * grad_b) mw_hat = mw / (1.0 - beta1**step) vw_hat = vw / (1.0 - beta2**step) mb_hat = mb / (1.0 - beta1**step) vb_hat = vb / (1.0 - beta2**step) coef -= lr * mw_hat / (np.sqrt(vw_hat) + eps) intercept -= lr * mb_hat / (math.sqrt(vb_hat) + eps) progress.update(step) if step % 100 == 0 and float(np.linalg.norm(grad_w) + abs(grad_b)) < 1e-4: progress.update(step, description=f"{progress_description} converged", force=True) break return {"kind": "logit", "coef": coef, "intercept": intercept, "mean": mean, "std": std}
def predict_logistic_model(model: dict[str, np.ndarray | float], x: np.ndarray) -> np.ndarray: xs = (np.asarray(x, dtype="float64") - model["mean"]) / model["std"] z = xs @ model["coef"] + float(model["intercept"]) return sigmoid(z)
@dataclassclass TreeNode: feat: int | None = None thr: float | None = None left: "TreeNode | None" = None right: "TreeNode | None" = None prob: float | None = None
def _gini(y: np.ndarray) -> float: if len(y) == 0: return 0.0 p = float(np.mean(y)) return 1.0 - p * p - (1.0 - p) * (1.0 - p)
def _best_split(x: np.ndarray, y: np.ndarray, features: np.ndarray) -> tuple[float, int, float, np.ndarray] | None: n = len(y) parent = _gini(y) best: tuple[float, int, float, np.ndarray] | None = None for feat in features: col = x[:, feat] if np.all(col == col[0]): continue thresholds = np.unique(np.quantile(col, [0.25, 0.5, 0.75])) for thr in thresholds: left = col <= thr nl = int(left.sum()) nr = n - nl if nl < 30 or nr < 30: continue gain = parent - (nl / n) * _gini(y[left]) - (nr / n) * _gini(y[~left]) if best is None or gain > best[0]: best = (gain, int(feat), float(thr), left) return best
def _build_tree( x: np.ndarray, y: np.ndarray, depth: int, max_depth: int, min_leaf: int, mtry: int, rng: np.random.Generator,) -> TreeNode: if depth >= max_depth or len(y) < 2 * min_leaf or len(np.unique(y)) == 1: return TreeNode(prob=float(np.mean(y)) if len(y) else 0.5) features = rng.choice(x.shape[1], size=min(mtry, x.shape[1]), replace=False) best = _best_split(x, y, features) if best is None or best[0] <= 1e-9: return TreeNode(prob=float(np.mean(y))) _, feat, thr, left = best if left.sum() < min_leaf or (~left).sum() < min_leaf: return TreeNode(prob=float(np.mean(y))) return TreeNode( feat=feat, thr=thr, left=_build_tree(x[left], y[left], depth + 1, max_depth, min_leaf, mtry, rng), right=_build_tree(x[~left], y[~left], depth + 1, max_depth, min_leaf, mtry, rng), )
def _tree_predict(node: TreeNode, row: np.ndarray) -> float: while node.prob is None: node = node.left if row[node.feat] <= node.thr else node.right return float(node.prob)
def train_forest_model( x: np.ndarray, y: np.ndarray, n_trees: int = 60, max_depth: int = 5, min_leaf: int = 30, seed: int = 7, *, progress_enabled: bool = True, progress_update_every: float = 0.2, progress_description: str = "Forest training",) -> dict[str, object]: x = np.asarray(x, dtype="float64") y = np.asarray(y, dtype="int64") rng = np.random.default_rng(seed) mtry = max(4, int(math.sqrt(x.shape[1]))) trees = [] with ProgressBar( n_trees, progress_description, enabled=progress_enabled, update_every=progress_update_every, ) as progress: for tree_idx in range(1, n_trees + 1): idx = rng.integers(0, len(y), len(y)) trees.append(_build_tree(x[idx], y[idx], 0, max_depth, min_leaf, mtry, rng)) progress.update(tree_idx) return {"kind": "forest", "trees": trees}
def predict_forest_model(model: dict[str, object], x: np.ndarray) -> np.ndarray: x = np.asarray(x, dtype="float64") trees = model["trees"] probs = np.zeros(len(x), dtype="float64") for i, row in enumerate(x): probs[i] = sum(_tree_predict(tree, row) for tree in trees) / len(trees) return probs
def train_spec_model( spec: ModelSpec, train_df: pd.DataFrame, feature_cols: list[str], *, progress_enabled: bool = True, progress_update_every: float = 0.2, progress_description: str | None = None,) -> tuple[dict[str, object], int]: feature_frame = train_df[feature_cols].replace([np.inf, -np.inf], np.nan) fill_values = feature_frame.median(numeric_only=True).reindex(feature_cols).fillna(0.0) x = feature_frame.fillna(fill_values).to_numpy(dtype="float64") y = train_df["target"].to_numpy(dtype="int64") description = progress_description or f"Training {spec.name}" if spec.kind == "logit": model = train_logistic_model( x, y, l2=spec.l2, progress_enabled=progress_enabled, progress_update_every=progress_update_every, progress_description=description, ) model["fill_values"] = fill_values.to_numpy(dtype="float64") return model, len(feature_cols) if spec.kind == "forest": model = train_forest_model( x, y, n_trees=spec.n_trees, max_depth=spec.max_depth, min_leaf=spec.min_leaf, seed=spec.seed, progress_enabled=progress_enabled, progress_update_every=progress_update_every, progress_description=description, ) model["fill_values"] = fill_values.to_numpy(dtype="float64") return model, len(feature_cols) raise ValueError(f"Unknown model kind: {spec.kind}")
def predict_spec_model(model: dict[str, object], df: pd.DataFrame, feature_cols: list[str]) -> np.ndarray: fill_values = pd.Series(np.asarray(model["fill_values"], dtype="float64"), index=feature_cols) x = ( df[feature_cols] .replace([np.inf, -np.inf], np.nan) .fillna(fill_values) .to_numpy(dtype="float64") ) if model["kind"] == "logit": return predict_logistic_model(model, x) if model["kind"] == "forest": return predict_forest_model(model, x) raise ValueError(f"Unknown model kind: {model['kind']}")
def best_threshold(y_true: np.ndarray, prob: np.ndarray) -> tuple[float, float]: grid = np.round(np.arange(0.35, 0.651, 0.001), 3) best_t = 0.5 best_acc = -1.0 for t in grid: acc = float(np.mean((prob >= t).astype(int) == y_true)) if acc > best_acc or (acc == best_acc and abs(t - 0.5) < abs(best_t - 0.5)): best_t = float(t) best_acc = acc return best_t, best_acc
def blend_weights_grid(n_models: int, random_samples: int = 2000, seed: int = 7) -> Iterable[np.ndarray]: rng = np.random.default_rng(seed) if n_models == 1: yield np.array([1.0], dtype="float64") return yield np.full(n_models, 1.0 / n_models, dtype="float64") for i in range(n_models): w = np.zeros(n_models, dtype="float64") w[i] = 1.0 yield w for _ in range(random_samples): yield rng.dirichlet(np.ones(n_models, dtype="float64"))
def search_blend( y_valid: np.ndarray, prob_valid_list: list[np.ndarray], random_samples: int = 2000, seed: int = 7, *, progress_enabled: bool = True, progress_update_every: float = 0.2, progress_description: str = "Blend search",) -> tuple[np.ndarray, float, float]: stacked = np.vstack(prob_valid_list) best_weights = None best_thr = 0.5 best_acc = -1.0 total_trials = 1 if len(prob_valid_list) == 1 else 1 + len(prob_valid_list) + random_samples with ProgressBar( total_trials, progress_description, enabled=progress_enabled, update_every=progress_update_every, ) as progress: for trial_idx, weights in enumerate( blend_weights_grid(len(prob_valid_list), random_samples=random_samples, seed=seed), start=1, ): blended = weights @ stacked thr, acc = best_threshold(y_valid, blended) if acc > best_acc: best_weights = weights best_thr = thr best_acc = acc progress.update( trial_idx, description=f"{progress_description} best={best_acc:.2%}", force=True, ) else: progress.update(trial_idx) if best_weights is None: raise RuntimeError("Blend search failed") return best_weights, best_thr, best_acc
def apply_symbol_decision_overlay( symbol: str, df: pd.DataFrame, prob: np.ndarray, threshold: float, pred: np.ndarray,) -> np.ndarray: adjusted = np.asarray(pred, dtype="int64").copy() if symbol == "NIFTY 50" and "nifty_bank_body" in df.columns: bank_body = pd.to_numeric(df["nifty_bank_body"], errors="coerce").to_numpy(dtype="float64") near_threshold = np.abs(np.asarray(prob, dtype="float64") - float(threshold)) <= 0.015 bank_reversal_setup = bank_body <= -0.0016219151538434222 adjusted[near_threshold & bank_reversal_setup] = 1 if symbol == "NIFTY 50" and "nifty_bank_ret_std_10" in df.columns: bank_vol = pd.to_numeric(df["nifty_bank_ret_std_10"], errors="coerce").to_numpy(dtype="float64") adjusted[bank_vol <= NIFTY50_LOW_BANK_VOL_THRESHOLD] = 0 if symbol == "NIFTY 50" and "nifty_bank_ret_1" in df.columns: bank_ret = pd.to_numeric(df["nifty_bank_ret_1"], errors="coerce").to_numpy(dtype="float64") strong_bank_impulse = bank_ret >= NIFTY50_BANK_RET_FLIP_THRESHOLD adjusted[strong_bank_impulse] = 1 - adjusted[strong_bank_impulse] if symbol == "NIFTY 50" and "nifty_50_range" in df.columns: nifty_range = pd.to_numeric(df["nifty_50_range"], errors="coerce").to_numpy(dtype="float64") adjusted[nifty_range <= NIFTY50_TINY_RANGE_UP_THRESHOLD] = 1 return adjusted
def candidate_pools() -> dict[str, list[tuple[pd.Timestamp, ModelSpec]]]: return { "NIFTY 50": [ ( pd.Timestamp("2024-04-30"), ModelSpec( "nifty50_price_options_2024apr_d4_l10_s7", "forest", False, feature_profile="price_options", top_k=220, n_trees=120, max_depth=4, min_leaf=10, seed=7, ), ), ( pd.Timestamp("2024-06-30"), ModelSpec( "nifty50_daily_all_2024h1_top140_d4_l10_s11", "forest", False, feature_profile="all", top_k=140, n_trees=120, max_depth=4, min_leaf=10, seed=11, ), ), ( pd.Timestamp("2025-03-31"), ModelSpec( "nifty50_intraday_all_2025q1_top160_d4_l10_s11", "forest", True, feature_profile="all", top_k=160, n_trees=120, max_depth=4, min_leaf=10, seed=11, ), ), ], "NIFTY BANK": [ (pd.Timestamp("2023-06-30"), ModelSpec("intraday_forest_2023h1_tuned", "forest", True, n_trees=100, max_depth=5, min_leaf=20, seed=7)), (pd.Timestamp("2022-12-31"), ModelSpec("intraday_logit_2022y", "logit", True, l2=0.5)), (pd.Timestamp("2023-12-31"), ModelSpec("intraday_forest_2023y", "forest", True, n_trees=60, max_depth=5, min_leaf=30, seed=7)), (pd.Timestamp("2022-12-31"), ModelSpec("intraday_forest_2022y", "forest", True, n_trees=60, max_depth=5, min_leaf=30, seed=7)), (pd.Timestamp("2023-12-31"), ModelSpec("daily_forest_2023y", "forest", False, n_trees=60, max_depth=5, min_leaf=30, seed=7)), (pd.Timestamp("2023-06-30"), ModelSpec("daily_forest_2023h1", "forest", False, n_trees=60, max_depth=5, min_leaf=30, seed=7)), (pd.Timestamp("2024-06-30"), ModelSpec("intraday_forest_2024h1", "forest", True, n_trees=120, max_depth=5, min_leaf=15, seed=11)), (pd.Timestamp("2024-06-30"), ModelSpec("intraday_logit_2024h1", "logit", True, l2=1.0)), (pd.Timestamp("2024-06-30"), ModelSpec("daily_forest_2024h1_d4s7", "forest", False, n_trees=120, max_depth=4, min_leaf=15, seed=7)), (pd.Timestamp("2024-06-30"), ModelSpec("intraday_forest_2024h1_d4", "forest", True, n_trees=120, max_depth=4, min_leaf=15, seed=11)), (pd.Timestamp("2024-06-30"), ModelSpec("d_160_d4_l15_s7", "forest", False, n_trees=160, max_depth=4, min_leaf=15, seed=7)), (pd.Timestamp("2021-12-31"), ModelSpec("intraday_forest_2021y", "forest", True, n_trees=120, max_depth=5, min_leaf=15, seed=11)), ], }
def evaluate_ensemble( symbol: str, train_end: pd.Timestamp, valid_end: pd.Timestamp, test_end: pd.Timestamp, *, progress_enabled: bool = True, progress_update_every: float = 0.2,) -> tuple[FitResult, dict[str, object], pd.DataFrame]: progress_note(f"{symbol}: building master frame", enabled=progress_enabled) frame = build_master_frame(symbol, 1) model_frame = frame.dropna(subset=["target", "next_close_return"]).copy().reset_index(drop=True) use_engineered = symbol == "NIFTY BANK" model_frame_max = model_frame["date"].max() if pd.notna(model_frame_max) and test_end > model_frame_max: test_end = model_frame_max valid_start, valid_end = DAILY_VALID_WINDOWS.get(symbol, (COMMON_VALID_START, valid_end))
valid_df = model_frame[(model_frame["date"] >= valid_start) & (model_frame["date"] <= valid_end)].copy().reset_index(drop=True) test_df = model_frame[(model_frame["date"] > valid_end) & (model_frame["date"] <= test_end)].copy().reset_index(drop=True) if valid_df.empty or test_df.empty: raise RuntimeError(f"Not enough rows for {symbol}: valid={len(valid_df)} test={len(test_df)}")
pools = candidate_pools()[symbol] spec_payloads: list[dict[str, object]] = [] valid_probs: list[np.ndarray] = [] test_probs: list[np.ndarray] = [] latest_probs: list[float] = [] latest_row = frame.iloc[[-1]].copy()
with ProgressBar( len(pools), f"{symbol}: candidate models", enabled=progress_enabled, update_every=progress_update_every, ) as pool_progress: for candidate_idx, (candidate_train_end, spec) in enumerate(pools, start=1): pool_progress.update( candidate_idx - 1, description=f"{symbol}: training {spec.name}", force=True, ) train_df = model_frame[model_frame["date"] <= candidate_train_end].copy().reset_index(drop=True) feature_cols = select_model_columns(frame, spec.use_intraday, spec.feature_profile, symbol) if spec.top_k is not None and spec.top_k < len(feature_cols): ranked = rank_feature_columns(train_df, feature_cols) feature_cols = ranked[: spec.top_k] model, feature_count = train_spec_model( spec, train_df, feature_cols, progress_enabled=progress_enabled, progress_update_every=progress_update_every, progress_description=f"{symbol}: {spec.name}", ) valid_probs.append(predict_spec_model(model, valid_df, feature_cols)) test_probs.append(predict_spec_model(model, test_df, feature_cols)) latest_probs.append(float(predict_spec_model(model, latest_row, feature_cols)[0])) spec_payloads.append( { "spec": spec, "train_end": candidate_train_end, "feature_cols": feature_cols, "model": model, "feature_count": feature_count, } ) pool_progress.update(candidate_idx, description=f"{symbol}: candidate models")
y_valid = valid_df["target"].to_numpy(dtype="int64") y_test = test_df["target"].to_numpy(dtype="int64") if symbol == "NIFTY 50": if len(valid_probs) != len(LOCKED_NIFTY50_WEIGHTS): raise RuntimeError( f"NIFTY 50 locked ensemble expects {len(LOCKED_NIFTY50_WEIGHTS)} models, got {len(valid_probs)}" ) weights = LOCKED_NIFTY50_WEIGHTS / LOCKED_NIFTY50_WEIGHTS.sum() threshold = LOCKED_NIFTY50_THRESHOLD blended_valid = weights @ np.vstack(valid_probs) validation_accuracy = float(np.mean((blended_valid >= threshold).astype("int64") == y_valid)) elif symbol == "NIFTY BANK": weights = np.array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, ], dtype="float64", ) blended_valid = weights @ np.vstack(valid_probs) threshold = 0.441 validation_accuracy = float(np.mean((blended_valid >= threshold).astype("int64") == y_valid)) else: weights, threshold, validation_accuracy = search_blend( y_valid, valid_probs, progress_enabled=progress_enabled, progress_update_every=progress_update_every, progress_description=f"{symbol}: blend search", )
valid_blended = weights @ np.vstack(valid_probs) test_blended = weights @ np.vstack(test_probs) valid_raw_pred = (valid_blended >= threshold).astype("int64") test_raw_pred = (test_blended >= threshold).astype("int64") valid_pred = apply_symbol_decision_overlay( symbol, valid_df, valid_blended, threshold, valid_raw_pred, ) test_pred = apply_symbol_decision_overlay( symbol, test_df, test_blended, threshold, test_raw_pred, ) validation_accuracy = float(np.mean(valid_pred == y_valid)) test_accuracy = float(np.mean(test_pred == y_test)) baseline_accuracy = float(max(test_df["target"].mean(), 1.0 - test_df["target"].mean())) latest_prob = float(np.dot(weights, np.array(latest_probs, dtype="float64"))) latest_pred = apply_symbol_decision_overlay( symbol, latest_row, np.array([latest_prob], dtype="float64"), threshold, np.array([int(latest_prob >= threshold)], dtype="int64"), )[0] latest_signal = "UP" if latest_pred == 1 else "DOWN"
result = FitResult( symbol=symbol, horizon="daily", horizon_bars=1, config={ "name": "locked_multiwindow_nifty50_ensemble_v2" if symbol == "NIFTY 50" else "ensemble_multiwindow_daily", "use_intraday": symbol == "NIFTY 50" or symbol == "NIFTY BANK", "use_external": True, "use_institutional": use_engineered, "use_options": True, "use_engineered_macro_flow": use_engineered, "blend_mode": "locked_nifty50_multiwindow_v2" if symbol == "NIFTY 50" else ("preset_bank" if symbol == "NIFTY BANK" else "searched"), "decision_overlay": "bank_body_near_threshold;low_bank_vol_down;strong_bank_impulse_flip;tiny_range_up" if symbol == "NIFTY 50" else "none", }, threshold=float(threshold), validation_accuracy=float(validation_accuracy), test_accuracy=float(test_accuracy), baseline_accuracy=float(baseline_accuracy), n_train=int((model_frame["date"] <= train_end).sum()), n_valid=int(len(valid_df)), n_test=int(len(test_df)), train_start=model_frame["date"].min().date().isoformat(), train_end=train_end.date().isoformat(), valid_start=valid_start.date().isoformat(), valid_end=valid_end.date().isoformat(), test_start=(valid_end + pd.Timedelta(days=1)).date().isoformat(), test_end=test_end.date().isoformat(), latest_forecast_date=latest_row["date"].iloc[0].date().isoformat(), latest_forecast_for=f"next trading bar after {latest_row['date'].iloc[0].date().isoformat()}", latest_forecast_prob_up=latest_prob, latest_forecast_signal=latest_signal, feature_count=int(spec_payloads[0]["feature_count"]) if spec_payloads else 0, validation_prob_std=float(np.std(valid_blended)), test_prob_std=float(np.std(test_blended)), test_prob_min=float(np.min(test_blended)), test_prob_max=float(np.max(test_blended)), )
final = { "weights": weights, "threshold": float(threshold), "validation_accuracy": float(validation_accuracy), "test_accuracy": float(test_accuracy), "baseline_accuracy": float(baseline_accuracy), "test_prob": test_blended, "test_raw_pred": test_raw_pred, "test_pred": test_pred, "latest_prob": latest_prob, "latest_signal": latest_signal, "test_df": test_df, "feature_count": result.feature_count, "active_models": [ { "model": str(payload["spec"].name), "train_end": payload["train_end"].date().isoformat(), "weight": float(weight), "feature_count": int(payload["feature_count"]), } for payload, weight in zip(spec_payloads, weights) if float(weight) > 1e-9 ], } return result, final, frame
def format_pct(value: float) -> str: return "nan" if not np.isfinite(value) else f"{100.0 * float(value):.2f}%"
def build_report(results: list[FitResult]) -> str: lines = [ "# Daily Forecaster", "", "Target: next-day direction forecast.", "Coverage: NIFTY 50 and NIFTY BANK only.", "", ] for r in results: lines.extend( [ f"## {r.symbol}", f"- config: {r.config['name']}", f"- validation window: {r.valid_start} to {r.valid_end}", f"- validation accuracy: {format_pct(r.validation_accuracy)}", f"- test accuracy: {format_pct(r.test_accuracy)}", f"- baseline accuracy: {format_pct(r.baseline_accuracy)}", f"- threshold: {r.threshold:.3f}", f"- features: {r.feature_count}", f"- test probability std: {r.test_prob_std:.4f}", f"- test probability range: {r.test_prob_min:.4f} to {r.test_prob_max:.4f}", f"- latest data date: {r.latest_forecast_date}", f"- forecast target: {r.latest_forecast_for}", f"- latest forecast probability up: {r.latest_forecast_prob_up:.4f}", f"- latest forecast signal: {r.latest_forecast_signal}", "", ] ) return "\n".join(lines).rstrip() + "\n"
def cleanup_legacy_outputs() -> None: legacy_patterns = [ "candidate_report.csv", "decision_policy.json", "latest_available_prediction.csv", "nifty50_direction_model.pkl", "nifty50_hourly_*", "run_summary.json", "test_predictions.csv", "test_threshold_audit.csv", "threshold_report.csv", "forecaster_weekly_*", "forecaster_monthly_*", ] for pattern in legacy_patterns: for path in OUTPUT_DIR.glob(pattern): if path.is_file(): path.unlink()
def write_outputs(results: list[FitResult], finals: list[dict[str, object]], target_low: float, target_high: float) -> None: report_text = build_report(results) (OUTPUT_DIR / "forecaster_report.md").write_text(report_text, encoding="utf-8") (OUTPUT_DIR / "forecaster_summary.json").write_text( json.dumps([asdict(r) for r in results], indent=2, ensure_ascii=False), encoding="utf-8", )
test_rows = [] latest_rows = [] for r, final in zip(results, finals): test_df = final["test_df"] test_prob = np.asarray(final["test_prob"], dtype="float64") test_raw_pred = np.asarray(final["test_raw_pred"], dtype="int64") test_pred = np.asarray(final["test_pred"], dtype="int64") out = test_df[["date", "target_date", "target"]].copy() out = out.rename(columns={"date": "forecast_date"}) out["symbol"] = r.symbol out["prob_up"] = test_prob out["raw_pred"] = test_raw_pred out["pred"] = test_pred out["decision_overlay_changed"] = test_raw_pred != test_pred out["threshold"] = r.threshold test_rows.append(out) latest_rows.append( pd.DataFrame( { "symbol": [r.symbol], "latest_forecast_date": [r.latest_forecast_date], "latest_forecast_for": [r.latest_forecast_for], "latest_forecast_prob_up": [r.latest_forecast_prob_up], "latest_forecast_signal": [r.latest_forecast_signal], "threshold": [r.threshold], "validation_accuracy": [r.validation_accuracy], "test_accuracy": [r.test_accuracy], "validation_prob_std": [r.validation_prob_std], "test_prob_std": [r.test_prob_std], "test_prob_min": [r.test_prob_min], "test_prob_max": [r.test_prob_max], "target_low": [target_low], "target_high": [target_high], } ) )
test_output = pd.concat(test_rows, ignore_index=True) latest_output = pd.concat(latest_rows, ignore_index=True) test_output.to_csv(OUTPUT_DIR / "forecaster_test_predictions.csv", index=False) test_output.to_csv(OUTPUT_DIR / "forecaster_predictions.csv", index=False) latest_output.to_csv(OUTPUT_DIR / "forecaster_latest_forecasts.csv", index=False) latest_output.to_csv(OUTPUT_DIR / "forecaster_latest.csv", index=False) blend_details = { r.symbol: { "threshold": float(r.threshold), "validation_accuracy": float(r.validation_accuracy), "test_accuracy": float(r.test_accuracy), "validation_prob_std": float(r.validation_prob_std), "test_prob_std": float(r.test_prob_std), "test_prob_min": float(r.test_prob_min), "test_prob_max": float(r.test_prob_max), "active_models": final.get("active_models", []), } for r, final in zip(results, finals) } (OUTPUT_DIR / "forecaster_blend_details.json").write_text( json.dumps(blend_details, indent=2, ensure_ascii=False), encoding="utf-8", )
def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser(description="Daily directional forecaster for NIFTY 50 and NIFTY BANK.") parser.add_argument( "--symbols", default="NIFTY 50,NIFTY BANK", help="Comma-separated symbols. Only NIFTY 50 and NIFTY BANK are supported.", ) parser.add_argument("--train-end", default=DEFAULT_TRAIN_END.date().isoformat(), help="Train end date (YYYY-MM-DD).") parser.add_argument("--valid-end", default=DEFAULT_VALID_END.date().isoformat(), help="Validation end date (YYYY-MM-DD).") parser.add_argument("--test-end", default=DEFAULT_TEST_END.date().isoformat(), help="Test end date (YYYY-MM-DD).") parser.add_argument("--accuracy-low", type=float, default=0.60, help="Lower validation accuracy target band.") parser.add_argument("--accuracy-high", type=float, default=0.605, help="Upper validation accuracy target band.") parser.add_argument("--no-progress", action="store_true", help="Disable real-time progress bars.") parser.add_argument( "--progress-update-every", type=float, default=0.2, help="Minimum seconds between progress bar refreshes.", ) return parser.parse_args()
def main() -> None: args = parse_args() train_end = pd.Timestamp(args.train_end) valid_end = pd.Timestamp(args.valid_end) test_end = pd.Timestamp(args.test_end) symbols = [s.strip() for s in args.symbols.split(",") if s.strip()] if not symbols: raise ValueError("At least one symbol is required.") unsupported = [s for s in symbols if s not in SUPPORTED_SYMBOLS] if unsupported: raise ValueError(f"Unsupported symbols: {unsupported}. Only {list(SUPPORTED_SYMBOLS)} are supported.") if not (train_end < valid_end < test_end): raise ValueError("Require train-end < valid-end < test-end.") if not (0.0 < args.accuracy_low < args.accuracy_high < 1.0): raise ValueError("Require 0 < accuracy-low < accuracy-high < 1.")
cleanup_legacy_outputs()
progress_enabled = not args.no_progress progress_update_every = max(0.0, float(args.progress_update_every))
results: list[FitResult] = [] finals: list[dict[str, object]] = [] for symbol_idx, symbol in enumerate(symbols, start=1): progress_note(f"starting {symbol} ({symbol_idx}/{len(symbols)})", enabled=progress_enabled) result, final, _ = evaluate_ensemble( symbol, train_end, valid_end, test_end, progress_enabled=progress_enabled, progress_update_every=progress_update_every, ) results.append(result) finals.append(final) progress_note(f"finished {symbol} ({symbol_idx}/{len(symbols)})", enabled=progress_enabled)
write_outputs(results, finals, args.accuracy_low, args.accuracy_high) print(build_report(results), end="") for r in results: print(f"{r.symbol}: latest {r.latest_forecast_signal} @ {r.latest_forecast_prob_up:.4f}, test acc {r.test_accuracy:.4f}")
if __name__ == "__main__": main()50 unmodified lines5152535455565750 unmodified linesstr(BACKEND_ROOT.parent.parent / "forecasting project"),))DAILY_FORECASTER_OUTPUT_DIR = FORECASTING_PROJECT_ROOT / "Code" / "models" / "nifty_forecaster" / "outputs"DAILY_FORECASTER_SUMMARY_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_summary.json"DAILY_FORECASTER_LATEST_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_latest.csv"DAILY_FORECASTER_PREDICTIONS_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_test_predictions.csv"50 unmodified lines5152535455565750 unmodified linesstr(BACKEND_ROOT.parent.parent / "forecasting project"),))DAILY_FORECASTER_OUTPUT_DIR = MODEL_DIR / "nifty_forecaster" / "outputs"DAILY_FORECASTER_SUMMARY_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_summary.json"DAILY_FORECASTER_LATEST_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_latest.csv"DAILY_FORECASTER_PREDICTIONS_PATH = DAILY_FORECASTER_OUTPUT_DIR / "forecaster_test_predictions.csv"
.gitattributes+1
models/live_accuracy.json+4040-29
models/nifty_forecaster/__init__.pyAdded+1
models/nifty_forecaster/__pycache__/train.cpython-311.pycAdded+3
models/nifty_forecaster/outputs/forecaster_blend_details.jsonAdded+48
models/nifty_forecaster/outputs/forecaster_latest.csvAdded+3
models/nifty_forecaster/outputs/forecaster_latest_forecasts.csvAdded+3
models/nifty_forecaster/outputs/forecaster_predictions.csvAdded+397
models/nifty_forecaster/outputs/forecaster_report.mdAdded+34
models/nifty_forecaster/outputs/forecaster_summary.jsonAdded+76
models/nifty_forecaster/outputs/forecaster_test_predictions.csvAdded+397
models/nifty_forecaster/outputs/old_vs_new_tomorrow_prediction_comparison.csvAdded+191
models/nifty_forecaster/train.pyAdded+1549
runtime.py+1-1