Files
Brent Neale 4f911b2072 Add Phase 2 backtesting pipeline: IS/OOS split, param sweep, generalization scoring
Externalize hardcoded params in S4F (5 params) and S3 (9 params) as class
attributes for sweep compatibility. Add unified backtest runner with IS/OOS
validation and generalization scores, plus parameter grid sweep (90 combos)
with OOS validation. S7/S9/S9_Filtered pass generalization; S4F/S3 confirm
defaults are near-optimal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 10:25:08 +10:00

9.6 KiB

1timestampstrategy_idpairsignal_directionentry_pricesl_pricetp1_pricetp2_pricetp3_pricelot_sizeconfluence_scoresessionspread_at_entryatr_at_entryadx_at_entryrsi_at_entryema_50_valueema_200_valuevwap_deviationnews_within_60minmacd_hist_at_entrystoch_k_at_entrydistance_from_ema50_pipscandle_body_ratiohour_of_dayday_of_weekentry_patternexit_priceexit_reasonexit_timepnl_pipspnl_dollarshold_time_minuteswin
22023-01-02 08:30:00+00:004EUR_AUDSHORT1.56976999999999991.57368284708815481.56450072936776771.56450072936776771.5645007293677677263981.363LONDON2.00.00183642354407739635.78124107690493454.6951395717002461.56962641867467821.57242319327553915.114063290690982False3.6439637981815686e-0666.880963622269023.8358132532168020.833827893175099480ribbon_trend_context1.5645007293677677TP32023-01-02 15:45:00+00:0052.692708318398251390.9892803974085435True
32023-01-03 08:00:00+00:004EUR_AUDSHORT1.567071.5708921551386211.56193676729206831.56193676729206831.5619367672920683273884.383LONDON2.00.001791077569310537820.00385687360559253.170947031050221.5666574923935291.56902757866671056.8333333333314705False4.461575988483346e-0547.286496833216216.5250760647095340.911392405063272181ribbon_trend_context1.570892155138621SL2023-01-03 08:15:00+00:00-38.22155138621053-1046.82859040504115False
42023-01-05 13:30:00+00:004EUR_AUDSHORT1.555461.55945505244018961.55006742133971591.55006742133971591.5500674213397159259410.943OVERLAP2.00.001877526220094752328.89361032335662655.391821568150321.5542998330217471.55649827991455216.605641962451614False6.1502697073818e-0562.69740089358554514.0016697825307010.6657458563536056133ribbon_trend_context1.5594550524401896SL2023-01-05 14:15:00+00:00-39.950524401894945-1036.360308858850745False
52023-01-06 15:15:00+00:004EUR_AUDSHORT1.554241.55893159340550611.5478026098917411.5478026098917411.547802609891741218688.323OVERLAP2.00.002225796702753048431.71815424820147240.692187497653941.55683825166528741.5568991034047415-22.96382790728302False-0.0003728215495176918457.530890084886245-23.5825166528735860.08029197080287298154ribbon_trend_context1.547802609891741TP32023-01-06 16:30:00+00:0064.373904026227461407.782092333692275True
62023-02-13 09:45:00+00:004EUR_AUDSHORT1.542581.5453126882763761.53908096758543641.53908096758543641.5390809675854364380604.893LONDON2.00.001246344138187915538.327576628174450.288193326939391.54318244850527121.54426422582412310.733430042237924False-7.908871387097844e-0563.84192629226148-3.62448505271117940.4879227053140915490ribbon_trend_context1.5390809675854364TP32023-02-13 12:45:00+00:0034.9903250649707761331.7488822417447180True
72023-02-14 13:00:00+00:004EUR_AUDSHORT1.540761.54336715796935021.53744926304597461.53744926304597461.5374492630459746404038.433OVERLAP2.00.001183578984675134441.1566719977818442.0319422599174861.54189293405691671.542138670666426-16.52739820042326False-0.000489296506018774614.01749367823414-8.9293405691681650.7483870967741113131ribbon_trend_context1.5433671579693502SL2023-02-14 13:30:00+00:00-26.071579693502933-1053.392012698280730False
82023-02-14 15:15:00+00:004EUR_AUDSHORT1.540121.54547954235677931.5326806864648311.5326806864648311.532680686464831194579.693OVERLAP2.00.002559771178389647432.517719479129145.0057209661739041.54183870979340591.5420978254757558-16.623861326243716False-6.376968418346247e-0535.59942829389414-14.787097934059190.08510638297880047151ribbon_trend_context1.5454795423567793SL2023-02-15 04:15:00+00:00-53.59542356779378-1042.8580903240008780False
92023-03-01 08:15:00+00:004EUR_AUDLONG1.573761.57048152237527351.57807771643708961.57807771643708961.5780777164370896314911.253LONDON2.00.00151923881236321437.9601311586178962.468698011269621.57103191019337851.571358276420130613.530274386825969False0.000625239851644923381.2797867311152824.8808980662151850.940944881889813782ribbon_trend_context1.5780777164370896TP32023-03-01 13:15:00+00:0043.1771657419855051359.6975235265834300True
102023-03-14 12:00:00+00:004EUR_AUDLONG1.608441.60490330995010621.61314503507484091.61314503507484091.6131450350748409295764.253LONDON2.00.001648345024946950623.69902025833894448.733157135096581.6086226149060311.60823912979293082.1630808365458165False2.0288956657681058e-0520.40811617135474-4.2261490603090480.1714285714284264121ribbon_trend_context1.6049033099501062SL2023-03-14 12:30:00+00:00-35.366900498938755-1046.026480089324730False
112023-03-27 13:45:00+00:004EUR_AUDLONG1.621331.61775652648755351.62609021026866961.62609021026866961.6260902102686696289792.613OVERLAP2.00.001666736756223237545.7534661386048251.2047073772628851.62006587374517431.61895107892341962.5538828703131067False0.0001330171725605418445.9108561150413310.2412625482561910.7666666666667448130ribbon_trend_context1.6177565264875535SL2023-03-28 02:30:00+00:00-35.734735124464116-1035.5662159377132765False
122023-03-28 13:15:00+00:004EUR_AUDLONG1.621421.61896471185391971.6245029322191211.6245029322191211.624502932219121417552.033OVERLAP2.00.00110764407304024645.06368282874170552.776560856841171.62040619400036181.6200348542976424-1.8364641917090196False-2.0337950989537815e-0553.746978762282337.7380599963827730.58115183246068131ribbon_trend_context1.6189647118539197SL2023-03-28 14:15:00+00:00-24.55288146080425-1025.210549630818260False
132023-04-17 08:45:00+00:004EUR_AUDLONG1.637111.6345568444148871.64033973337766971.64033973337766971.6403397333776697397530.983LONDON2.00.001156577792556543635.1015629590499245.62342723063191.6373806171395881.6359327063969196-17.297423309041715False0.0001087180459571625343.666671122360896-5.1061713958788780.847222222222157980ribbon_trend_context1.634556844414887SL2023-04-17 13:15:00+00:00-25.531555851130427-1014.9584418424613270False
142023-05-10 14:00:00+00:004EUR_AUDSHORT1.620751.62435792168110061.61593811747834911.61593811747834911.6159381174783491278500.743OVERLAP2.00.00168396084055029331.77133231193986552.770412957281491.62078032591182561.623633101415440814.678864054764595False2.917236519656163e-0584.343602606718762.09674088174294230.3174603174602727142ribbon_trend_context1.6243579216811006SL2023-05-10 14:45:00+00:00-36.0792168110069-1004.808858048586145False
152023-06-08 13:00:00+00:004EUR_AUDSHORT1.605091.60776836638365131.60167245042452281.60167245042452281.6016724504245228371405.793OVERLAP2.00.001219183191825714825.65064112869191647.997904747912251.60578240740412451.60681880484764422.4536576548972455False1.3650195885799897e-0551.99323421007665-4.5240740412455520.47967479674783536133ribbon_trend_context1.6077683663836513SL2023-06-09 01:15:00+00:00-26.783663836513757-994.7607826294824735False
162023-06-13 13:45:00+00:004EUR_AUDSHORT1.592651.59626802285028681.58782296572456971.58782296572456971.5878229657245697272196.53OVERLAP2.00.00168901142514339123.49416895547635850.394913566361641.59328272220826571.59526147408182033.7125139748694913False2.041218658729567e-0564.78486141407399-3.9272220826580550.12804878048770663131ribbon_trend_context1.59356TIME2023-06-14 04:45:00+00:00-9.100000000001884-247.6988150000513900False
172023-06-16 15:00:00+00:004EUR_AUDSHORT1.59021.5936480634670641.58562790479940421.58562790479940421.5856279047994042284895.043OVERLAP2.00.00160403173353194530.96390696202183438.671354383307911.5920502134137661.5917767575739807-23.44751181402982False-0.000480277420931413117.44284619782568-16.102134137658820.30555555555557695154ribbon_trend_context1.593648063467064SL2023-06-19 00:30:00+00:00-34.48063467063944-982.33617937172113450False
182023-07-12 12:15:00+00:004EUR_AUDLONG1.647041.64431597437129121.65052603844306331.65052603844306331.6505260384430633357013.093LONDON2.00.00124201281435443329.21287290890693852.300041556723691.64582758852719731.6455807921842247-9.068134233549685False-0.0002564143235539704637.182024147524789.7241147280269220.7105263157895044122ribbon_trend_context1.6443159743712912SL2023-07-12 12:30:00+00:00-27.240256287088815-972.512806944550615False
192023-07-27 14:00:00+00:004EUR_AUDSHORT1.632651.63723525788638251.62637211317042631.62637211317042631.6263721131704263209974.63OVERLAP2.00.002172628943191207242.3187772914272746.358533868312211.6344906582016531.6360712899111252-4.854571282819631False-0.000748250280743820247.547704099090275-16.0065820165300470.8289473684210238143ribbon_trend_context1.6372352578863825SL2023-07-27 18:30:00+00:00-45.85257886382532-962.7876905900176270False
202023-08-16 13:30:00+00:004EUR_AUDLONG1.690091.6867543829082281.6944934256376581.6944934256376581.694493425637658285752.173OVERLAP2.00.001547808545885995831.1270743823218346.173238278379231.69025449581501651.687568743765026-4.5750204700767405False0.0001590677305705104360.10427086029028-4.0449581501644790.6056910569105612132ribbon_trend_context1.694493425637658TP32023-08-16 23:30:00+00:0044.0342579175740741258.2884754286472600True
212023-08-30 14:00:00+00:004EUR_AUDSHORT1.678521.682063841906241.67380423714064031.67380423714064031.6738042371406403272512.923OVERLAP2.00.001651920953119915542.4019797382667742.126024695333241.68039427652354561.6808206631864726-16.672692306063386False-0.000350436658188610967.97097927630999-16.3427652354553030.3082191780822772142ribbon_trend_context1.68206384190624SL2023-08-30 14:15:00+00:00-35.438419062399085-965.742705887803615False