From fc6961efcfeb5f8628e3f03840ff3d4dc45796a3 Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Wed, 4 Mar 2026 15:28:09 +0100 Subject: [PATCH] feat(scripts): InpPrecision --- Scripts/MyScripts/Market_Scanner_Pro.mq5 | 31 +++++++++++++----------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/Scripts/MyScripts/Market_Scanner_Pro.mq5 b/Scripts/MyScripts/Market_Scanner_Pro.mq5 index 9641ab9..6ff7be6 100644 --- a/Scripts/MyScripts/Market_Scanner_Pro.mq5 +++ b/Scripts/MyScripts/Market_Scanner_Pro.mq5 @@ -67,6 +67,9 @@ input double InpBBMult = 2.0; input double InpKCMult = 1.5; input int InpSqueezeMom = 12; +input group "Output Settings" +input int InpPrecision = 3; // Decimal places for CSV Output + //--- QuantData Struct (Updated Layout) struct QuantData { @@ -302,24 +305,24 @@ void OnStart() // L1 results[i].alpha_str, results[i].beta_str, - DoubleToString(results[i].vhf, 2), - DoubleToString(results[i].r2, 2), + DoubleToString(results[i].vhf, InpPrecision), + DoubleToString(results[i].r2, InpPrecision), results[i].zone, // L2 - DoubleToString(results[i].v_score_week, 2), // New - DoubleToString(results[i].v_score_day, 2), // Renamed from v_score - DoubleToString(results[i].autocorr, 2), - DoubleToString(results[i].vol_regime, 2), + DoubleToString(results[i].v_score_week, InpPrecision), // New + DoubleToString(results[i].v_score_day, InpPrecision), // Renamed from v_score + DoubleToString(results[i].autocorr, InpPrecision), + DoubleToString(results[i].vol_regime, InpPrecision), results[i].sqz, - DoubleToString(results[i].sqz_mom, 2), - DoubleToString(results[i].m15_vhf, 2), - DoubleToString(results[i].m15_r2, 2), - DoubleToString(results[i].dist_pdh, 2), - DoubleToString(results[i].dist_pdl, 2), + DoubleToString(results[i].sqz_mom, InpPrecision), + DoubleToString(results[i].m15_vhf, InpPrecision), + DoubleToString(results[i].m15_r2, InpPrecision), + DoubleToString(results[i].dist_pdh, InpPrecision), + DoubleToString(results[i].dist_pdl, InpPrecision), // L3 - DoubleToString(results[i].velocity, 2), - DoubleToString(results[i].vol_thrust, 2), - DoubleToString(results[i].cost_atr, 2), + DoubleToString(results[i].velocity, InpPrecision), + DoubleToString(results[i].vol_thrust, InpPrecision), + DoubleToString(results[i].cost_atr, InpPrecision), // Composite results[i].absorption, results[i].mtf_align,