Files
mt5-tools/__pycache__/view_set_comparator.cpython-314.pyc
T

65 lines
11 KiB
Plaintext
Raw Normal View History

2026-04-12 18:25:46 +10:00
+
ŹUŰi $ăóđRt^RIt^RIt^RIHt^RIt^RIt]PP^]PP]PP] 444^RI
HtHtHtHtRtR#)um
view_set_comparator.py
======================
EA Settings Comparator page — migrated from main dashboard.
N)Údatetime)Úparse_set_fileÚbuild_comparison_dfÚexport_set_fileÚ
create_zipc ó6a$a%a&€\P!RRR7\P!R4R\P9d/\PR&R\P9d/\PR&R\P9d/\PR&R\P9d/\PR&R\P9d/\PR&\P!.RAO4wrpV;_uu_4\P
!R \
\^^ 44^R
7pR R R 4T;_uu_4\P!R RR7\P!R
RR7'd2RBFp/\PV&K \P!4R R R 4\P!4\P!\X^44p\V4EFKpWV^,,;_uu_4\P!RV^, 2R.RV 2R7pVVP4pVPp \W‰4wr«p V
\PR,V &V \PR,V &V \PR,V &V\PR,V &V \PR,9d)V
P!4\PR,V &\P"!RV R\%V
4 R24R R R 4EKN \PR,p
\%V
4^Ed&\P!4\
V
P'44p\P!^4wrpV;_uu_4\P
!RV4o%R R R 4V;_uu_4\P(!R^^d^
4o$R R R 4V;_uu_4\P*!RRR7pR R R 4VUu.uF]pV\PR,V,\PR,V,\PR,V,3NK_ pp\-V4pVPUu.uFpVR8wgK VNK ppVV,P/^R7^8„VR&X'dVVR,,P!4MVP!4pVP1R.R7pV
P3S%/4o&V$V%V&3R lp\P!R!\%V4 R"\5VVR,,P6^,4 R#24VP8P;V^R7p^#p\\%V4V,^(,R$4pR\P<P?RR%R&7/pVF'p\P<P?VR'R&7VV&K) \P@!VR(RVVR)7\P!4\PB!R*4\P
!R+VR,R-7pV'E\PR,P3V/4p\PR,P3V.4p \PR,P3V/4p \DPF!V Uu.uFpRVR.VP3VR/4/NK up4p\PH!VR0RR1R\P<P?RRR27R.\P<P?R.4/R3V 2R47p\K\MVR,VR.,PO\P444\PR,V&\P!^4wrV;_uu_4\SV\PR,V,WĽ\PR,V,4p \PT!R5V 2V VR6R7R87R R R 4T;_uu_4.p!Vp\SV\PR,P3VV
V,4\PR,V,\PR,V,\PR,V,4p"V!PWVV"34 \YV!4p#\PT!R9V#R:\ZP\!4P_R;4 R<2R=R>R87R R R 4R #R #\%V
4^8Xd\P`!R?4R #\P`!R@4R # +'giEL¨;i +'giELB;i +'giEK;i +'giELB;i +'giEL*;i +'giEL;iuupiuupiuupi +'giELé;i +'giR #;i)Cz•
<style>
[data-testid="stDataFrame"] {
margin-left: auto;
margin-right: auto;
}
</style>
T)Úunsafe_allow_htmluâš™ EA Settings ComparatorÚea_filesÚea_rawÚea_orderÚea_bytesÚ ea_editedzNumber of files)ÚindexNz<br>uđź—‘ Clear AllÚ secondary)ÚtypezFile ÚsetÚ
ea_upload_)rÚkeyuâś“ u — z paramszSource file for comparisonz!Highlight % variation from sourcezShow different rows onlyF)ÚvalueÚ Parameter)ÚaxisÚ_diff)Úcolumnscó<R.\V4,pVR,pS PVR4p\VP4wrEVR8XdKW,pVS 8XdRW&K#VR8XgVR8Xd
Wc8wdRW&K=\ V4p\ V4pV^8XdV^8wdRW&KhKj\ W‡,
V, 4^d,p V S
8”dRW&KV ^8”dRW& V# Yc8wdRY&K¸;i)Úrz(background-color: rgba(100,100,255,0.15)z%background-color: rgba(255,180,0,0.2)z'background-color: rgba(255,100,100,0.2)z&background-color: rgba(255,180,0,0.15))ÚlenÚgetÚ enumeraterÚfloatÚabs)
ÚrowÚstylesÚparamÚsrc_vÚcolÚcell_vÚsvÚcvÚpct_diffÚ
pct_thresholdÚ source_fileÚ source_valss
& €€€Ú+C:\Users\pc\MT5Tools\view_set_comparator.pyÚ style_cellsÚrender.<locals>.style_cellsas ř€ŘTśC ›H•_Ő% —__ U¨BÓ/# C§IˇIÖ.‘ŘŘťŘ%Ř JFŘR”< 5¨B¤;ŘŘ$K™ ŮđLÜuv›Q”wŘ ś7Ř(QF$'¨­°2Ą~Ó#6¸Ő#<Ř# 3Ř(QFś\Ř(PF*ń+/đ4MřđLŘŘ$Kś ň'úsÂ(C.Â/*C.Ă C.Ă. Dz**u parameters** — z rows differ across filesiĐÚmedium)ÚwidthÚsmallÚcontent)r1Ú
hide_indexÚheightÚ
column_configz
Edit & ExportzSelect file to editÚ ea_edit_sel)rÚValuerÚstretchi)ÚdisabledÚ
ea_editor_)r1r4r5r6ru ⬇ Export zapplication/octet-streamÚea_export_single)ÚlabelÚdataÚ file_nameÚmimeru⬇ Export All as ZIPÚ ea_settings_z%Y%m%dz.zipzapplication/zipÚ
ea_export_allz"Upload at least 2 files to comparez+Upload .set files above to begin comparison)érCé)r r
r r r
)1ÚstÚmarkdownÚtitleÚ
session_staterÚ selectboxÚlistÚrangeÚbuttonÚrerunÚdividerÚminÚ
file_uploaderÚreadÚnamerÚcopyÚsuccessrÚkeysÚsliderÚtogglerÚnuniqueÚdroprÚintÚshapeÚstyleÚapplyr6Ú
TextColumnÚ dataframeÚ subheaderÚpdÚ DataFrameÚ data_editorÚdictÚzipÚastypeÚstrrÚdownload_buttonÚappendrrÚtodayÚstrftimeÚinfo)'Úcol1Úcol2Úcol3Ún_filesrÚ upload_colsÚuploadedÚ
file_bytesÚfnameÚparamsÚ raw_linesÚorderÚ
files_dataÚ filenamesÚshow_diff_onlyÚfnÚ
files_listÚdfÚ
value_colsÚ
df_displayr.ÚstyledÚ
row_heightÚtable_hÚ
col_configÚ edit_fileÚ
edited_paramsÚedit_dfÚeditedÚ export_bytesÚ all_exportsÚfbÚ zip_bytesr*r+r,s' @@@r-ÚrenderrŹs4ú€Ü‡K‚Kđđ ő‡H‚HĐ
ś"×*ČB¬B×,<Ń,<¸ZŃ,HŘś"×*ČB¬B×,<Ń,<¸XŃ,FŘś"×*ČB¬B×,<Ń,<¸ZŃ,HŘś"×*ČB¬B×,<Ń,<¸ZŃ,HŘś"×*ČB¬B×,<Ń,<¸[Ń,Iô—zz˘)Ó€Dß
ŠÜ—,’,Đ0´$´u¸QŔł|Ó2DČAÔN÷
ç
ŠÜ
Ź Š F¨dŐ
Ź9Š9Đ%¨K× RŘ(*”× Ń  ÓSä ŹHŠHŚJ÷
ô‡J‚J„LÜ—*’*śS ¨!›_Ó-€KÜ
7Ź^Ř