Simulaatio (JSON)
{"start_time": 1753012800000, "end_time": 1760227200000, "window_size": 3, "pattern_id": "two_bullish", "pattern_name": "Two Bullish Candles", "trades_executed": 18, "commission": 0.001, "short_term_return": 0.37843, "long_return": 0.437083, "short_return": -0.437083, "base_start_price": 748.76, "base_end_price": 1076.03, "window_candles": [{"time": 1752969600000, "open": 733.2, "high": 750.89, "low": 731.5, "close": 748.76}, {"time": 1753012800000, "open": 748.76, "high": 761.29, "low": 743.55, "close": 756.82}], "context_before": [{"time": 1752969600000, "open": 733.2, "high": 750.89, "low": 731.5, "close": 748.76}], "context_after": [{"time": 1760270400000, "open": 1230.11, "high": 1319.8, "low": 1220.0, "close": 1302.65}, {"time": 1760313600000, "open": 1302.65, "high": 1375.11, "low": 1266.0, "close": 1294.2}, {"time": 1760356800000, "open": 1294.2, "high": 1304.98, "low": 1251.28, "close": 1294.55}, {"time": 1760400000000, "open": 1294.54, "high": 1318.26, "low": 1164.6, "close": 1170.35}, {"time": 1760443200000, "open": 1170.35, "high": 1250.65, "low": 1143.01, "close": 1208.52}, {"time": 1760486400000, "open": 1208.55, "high": 1222.76, "low": 1176.14, "close": 1185.02}, {"time": 1760529600000, "open": 1185.01, "high": 1191.29, "low": 1148.92, "close": 1162.57}, {"time": 1760572800000, "open": 1162.57, "high": 1195.0, "low": 1158.69, "close": 1181.67}, {"time": 1760616000000, "open": 1181.68, "high": 1191.27, "low": 1122.31, "close": 1144.83}, {"time": 1760659200000, "open": 1144.83, "high": 1156.3, "low": 1021.0, "close": 1072.28}, {"time": 1760702400000, "open": 1072.28, "high": 1077.31, "low": 1060.0, "close": 1076.03}], "trade_size": 1000.0, "comparison": [], "entry_context": {"time": 1753012800000, "price": 756.82, "trigger": "two_bullish", "orientation": "long", "summary": "First trade opened LONG after 2 bullish candles closed above their opens.", "notes": ["Entry price: 756.82", "Observed streak: 2 candles", "Commission per side: 0.001", "Total trades: 18", "Win rate so far: 83.33%", "Exit rule: first_close_above_entry"]}, "exit_context": {"time": 1760227200000, "price": 1230.12, "trigger": "target_hit", "summary": "Closed 18 trades; final exit reason: target_hit. Aggregate return: 37.84%.", "notes": ["Last trade direction: long", "Bars held: 1", "Trade P&L: 8.17%", "Average trade return: 2.10%", "Average holding: 4.39 bars", "Exit mix: Target Hit 17/18 (94.4%) \u00b7 Max Bars 1/18 (5.6%)"], "projections": {"trade_count": 18, "wins": 15, "losses": 3}}, "trades": [{"direction": "long", "entry_index": 1, "exit_index": 2, "entry_time": 1753012800000, "exit_time": 1753056000000, "entry_price": 756.82, "exit_price": 768.98, "gross_return": 0.016067, "net_return": 0.014067, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1752969600000, "open": 733.2, "high": 750.89, "low": 731.5, "close": 748.76}, {"time": 1753012800000, "open": 748.76, "high": 761.29, "low": 743.55, "close": 756.82}], "exit_window": [{"time": 1752969600000, "open": 733.2, "high": 750.89, "low": 731.5, "close": 748.76}, {"time": 1753012800000, "open": 748.76, "high": 761.29, "low": 743.55, "close": 756.82}, {"time": 1753056000000, "open": 756.82, "high": 778.69, "low": 746.06, "close": 768.98}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 6, "exit_index": 15, "entry_time": 1753228800000, "exit_time": 1753617600000, "entry_price": 808.46, "exit_price": 844.0, "gross_return": 0.04396, "net_return": 0.04196, "bars_held": 9, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1753142400000, "open": 766.22, "high": 772.0, "low": 745.0, "close": 765.57}, {"time": 1753185600000, "open": 765.58, "high": 788.35, "low": 755.72, "close": 786.68}, {"time": 1753228800000, "open": 786.69, "high": 808.81, "low": 785.07, "close": 808.46}], "exit_window": [{"time": 1753531200000, "open": 781.7, "high": 798.0, "low": 778.51, "close": 793.29}, {"time": 1753574400000, "open": 793.3, "high": 799.4, "low": 791.04, "close": 796.7}, {"time": 1753617600000, "open": 796.71, "high": 847.12, "low": 793.4, "close": 844.0}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 22, "exit_index": 40, "entry_time": 1753920000000, "exit_time": 1754697600000, "entry_price": 800.59, "exit_price": 811.59, "gross_return": 0.01374, "net_return": 0.01174, "bars_held": 18, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1753833600000, "open": 805.11, "high": 811.64, "low": 786.23, "close": 788.52}, {"time": 1753876800000, "open": 788.52, "high": 795.83, "low": 766.21, "close": 793.51}, {"time": 1753920000000, "open": 793.51, "high": 814.8, "low": 791.14, "close": 800.59}], "exit_window": [{"time": 1754611200000, "open": 788.67, "high": 793.0, "low": 780.74, "close": 789.22}, {"time": 1754654400000, "open": 789.23, "high": 798.5, "low": 781.7, "close": 793.5}, {"time": 1754697600000, "open": 793.5, "high": 819.44, "low": 792.81, "close": 811.59}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 43, "exit_index": 47, "entry_time": 1754827200000, "exit_time": 1755000000000, "entry_price": 807.22, "exit_price": 832.47, "gross_return": 0.03128, "net_return": 0.02928, "bars_held": 4, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1754740800000, "open": 811.6, "high": 815.5, "low": 797.9, "close": 798.83}, {"time": 1754784000000, "open": 798.83, "high": 815.5, "low": 793.68, "close": 798.98}, {"time": 1754827200000, "open": 798.97, "high": 807.33, "low": 795.33, "close": 807.22}], "exit_window": [{"time": 1754913600000, "open": 796.22, "high": 812.41, "low": 792.0, "close": 805.09}, {"time": 1754956800000, "open": 805.09, "high": 815.0, "low": 797.73, "close": 803.19}, {"time": 1755000000000, "open": 803.19, "high": 839.9, "low": 800.0, "close": 832.47}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 56, "exit_index": 63, "entry_time": 1755388800000, "exit_time": 1755691200000, "entry_price": 861.55, "exit_price": 869.05, "gross_return": 0.008705, "net_return": 0.006705, "bars_held": 7, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1755302400000, "open": 827.8, "high": 837.0, "low": 826.0, "close": 826.45}, {"time": 1755345600000, "open": 826.46, "high": 839.79, "low": 825.06, "close": 838.71}, {"time": 1755388800000, "open": 838.71, "high": 864.0, "low": 838.04, "close": 861.55}], "exit_window": [{"time": 1755604800000, "open": 846.46, "high": 847.85, "low": 823.0, "close": 824.11}, {"time": 1755648000000, "open": 824.1, "high": 837.32, "low": 818.57, "close": 831.03}, {"time": 1755691200000, "open": 831.03, "high": 881.02, "low": 818.88, "close": 869.05}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 67, "exit_index": 91, "entry_time": 1755864000000, "exit_time": 1756900800000, "entry_price": 900.21, "exit_price": 854.76, "gross_return": -0.050488, "net_return": -0.052488, "bars_held": 24, "entry_pattern": "two_bullish_candles", "exit_reason": "max_bars", "entry_window": [{"time": 1755777600000, "open": 851.24, "high": 856.88, "low": 833.46, "close": 839.49}, {"time": 1755820800000, "open": 839.49, "high": 855.18, "low": 839.23, "close": 848.99}, {"time": 1755864000000, "open": 849.0, "high": 900.71, "low": 842.7, "close": 900.21}], "exit_window": [{"time": 1756814400000, "open": 847.7, "high": 853.96, "low": 840.71, "close": 851.8}, {"time": 1756857600000, "open": 851.8, "high": 855.21, "low": 848.91, "close": 854.01}, {"time": 1756900800000, "open": 854.01, "high": 864.06, "low": 852.1, "close": 854.76}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 99, "exit_index": 102, "entry_time": 1757246400000, "exit_time": 1757376000000, "entry_price": 880.05, "exit_price": 880.22, "gross_return": 0.000193, "net_return": -0.001807, "bars_held": 3, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1757160000000, "open": 861.07, "high": 865.0, "low": 856.59, "close": 860.85}, {"time": 1757203200000, "open": 860.86, "high": 874.44, "low": 860.55, "close": 873.64}, {"time": 1757246400000, "open": 873.63, "high": 884.05, "low": 869.51, "close": 880.05}], "exit_window": [{"time": 1757289600000, "open": 880.05, "high": 885.85, "low": 870.01, "close": 878.72}, {"time": 1757332800000, "open": 878.72, "high": 882.92, "low": 876.1, "close": 878.08}, {"time": 1757376000000, "open": 878.08, "high": 884.83, "low": 872.0, "close": 880.22}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 105, "exit_index": 106, "entry_time": 1757505600000, "exit_time": 1757548800000, "entry_price": 893.77, "exit_price": 899.07, "gross_return": 0.00593, "net_return": 0.00393, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1757419200000, "open": 880.22, "high": 883.53, "low": 871.38, "close": 880.01}, {"time": 1757462400000, "open": 880.0, "high": 885.76, "low": 877.04, "close": 884.68}, {"time": 1757505600000, "open": 884.67, "high": 907.38, "low": 884.36, "close": 893.77}], "exit_window": [{"time": 1757462400000, "open": 880.0, "high": 885.76, "low": 877.04, "close": 884.68}, {"time": 1757505600000, "open": 884.67, "high": 907.38, "low": 884.36, "close": 893.77}, {"time": 1757548800000, "open": 893.77, "high": 902.37, "low": 888.38, "close": 899.07}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 108, "exit_index": 109, "entry_time": 1757635200000, "exit_time": 1757678400000, "entry_price": 905.44, "exit_price": 924.8, "gross_return": 0.021382, "net_return": 0.019382, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1757548800000, "open": 893.77, "high": 902.37, "low": 888.38, "close": 899.07}, {"time": 1757592000000, "open": 899.08, "high": 904.53, "low": 891.27, "close": 902.77}, {"time": 1757635200000, "open": 902.77, "high": 909.69, "low": 901.41, "close": 905.44}], "exit_window": [{"time": 1757592000000, "open": 899.08, "high": 904.53, "low": 891.27, "close": 902.77}, {"time": 1757635200000, "open": 902.77, "high": 909.69, "low": 901.41, "close": 905.44}, {"time": 1757678400000, "open": 905.45, "high": 929.9, "low": 904.0, "close": 924.8}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 117, "exit_index": 119, "entry_time": 1758024000000, "exit_time": 1758110400000, "entry_price": 955.65, "exit_price": 989.98, "gross_return": 0.035923, "net_return": 0.033923, "bars_held": 2, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1757937600000, "open": 920.11, "high": 923.16, "low": 912.27, "close": 919.68}, {"time": 1757980800000, "open": 919.68, "high": 933.55, "low": 916.66, "close": 927.48}, {"time": 1758024000000, "open": 927.49, "high": 959.0, "low": 921.94, "close": 955.65}], "exit_window": [{"time": 1758024000000, "open": 927.49, "high": 959.0, "low": 921.94, "close": 955.65}, {"time": 1758067200000, "open": 955.65, "high": 963.0, "low": 946.69, "close": 953.24}, {"time": 1758110400000, "open": 953.25, "high": 995.44, "low": 946.1, "close": 989.98}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 125, "exit_index": 126, "entry_time": 1758369600000, "exit_time": 1758412800000, "entry_price": 1043.77, "exit_price": 1051.11, "gross_return": 0.007032, "net_return": 0.005032, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1758283200000, "open": 985.74, "high": 992.41, "low": 973.9, "close": 984.1}, {"time": 1758326400000, "open": 984.1, "high": 1005.32, "low": 982.9, "close": 1001.77}, {"time": 1758369600000, "open": 1001.77, "high": 1048.0, "low": 998.51, "close": 1043.77}], "exit_window": [{"time": 1758326400000, "open": 984.1, "high": 1005.32, "low": 982.9, "close": 1001.77}, {"time": 1758369600000, "open": 1001.77, "high": 1048.0, "low": 998.51, "close": 1043.77}, {"time": 1758412800000, "open": 1043.77, "high": 1083.47, "low": 1039.41, "close": 1051.11}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 131, "exit_index": 132, "entry_time": 1758628800000, "exit_time": 1758672000000, "entry_price": 1015.98, "exit_price": 1015.99, "gross_return": 1e-05, "net_return": -0.00199, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1758542400000, "open": 1018.36, "high": 1027.82, "low": 976.89, "close": 992.9}, {"time": 1758585600000, "open": 992.9, "high": 1020.0, "low": 962.38, "close": 1010.75}, {"time": 1758628800000, "open": 1010.74, "high": 1027.37, "low": 1006.11, "close": 1015.98}], "exit_window": [{"time": 1758585600000, "open": 992.9, "high": 1020.0, "low": 962.38, "close": 1010.75}, {"time": 1758628800000, "open": 1010.74, "high": 1027.37, "low": 1006.11, "close": 1015.98}, {"time": 1758672000000, "open": 1015.98, "high": 1034.5, "low": 991.46, "close": 1015.99}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 138, "exit_index": 140, "entry_time": 1758931200000, "exit_time": 1759017600000, "entry_price": 970.41, "exit_price": 973.22, "gross_return": 0.002896, "net_return": 0.000896, "bars_held": 2, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1758844800000, "open": 945.9, "high": 959.0, "low": 932.04, "close": 937.29}, {"time": 1758888000000, "open": 937.3, "high": 966.23, "low": 932.01, "close": 960.8}, {"time": 1758931200000, "open": 960.81, "high": 975.13, "low": 955.56, "close": 970.41}], "exit_window": [{"time": 1758931200000, "open": 960.81, "high": 975.13, "low": 955.56, "close": 970.41}, {"time": 1758974400000, "open": 970.41, "high": 985.79, "low": 965.0, "close": 968.45}, {"time": 1759017600000, "open": 968.46, "high": 975.26, "low": 962.68, "close": 973.22}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 142, "exit_index": 143, "entry_time": 1759104000000, "exit_time": 1759147200000, "entry_price": 1004.94, "exit_price": 1029.79, "gross_return": 0.024728, "net_return": 0.022728, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1759017600000, "open": 968.46, "high": 975.26, "low": 962.68, "close": 973.22}, {"time": 1759060800000, "open": 973.23, "high": 993.65, "low": 966.31, "close": 993.01}, {"time": 1759104000000, "open": 993.01, "high": 1013.73, "low": 991.12, "close": 1004.94}], "exit_window": [{"time": 1759060800000, "open": 973.23, "high": 993.65, "low": 966.31, "close": 993.01}, {"time": 1759104000000, "open": 993.01, "high": 1013.73, "low": 991.12, "close": 1004.94}, {"time": 1759147200000, "open": 1004.94, "high": 1036.0, "low": 1000.0, "close": 1029.79}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 147, "exit_index": 148, "entry_time": 1759320000000, "exit_time": 1759363200000, "entry_price": 1026.5, "exit_price": 1047.81, "gross_return": 0.02076, "net_return": 0.01876, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1759233600000, "open": 1014.36, "high": 1014.66, "low": 992.93, "close": 1008.51}, {"time": 1759276800000, "open": 1008.51, "high": 1036.2, "low": 1003.35, "close": 1023.42}, {"time": 1759320000000, "open": 1023.42, "high": 1028.6, "low": 1015.24, "close": 1026.5}], "exit_window": [{"time": 1759276800000, "open": 1008.51, "high": 1036.2, "low": 1003.35, "close": 1023.42}, {"time": 1759320000000, "open": 1023.42, "high": 1028.6, "low": 1015.24, "close": 1026.5}, {"time": 1759363200000, "open": 1026.5, "high": 1050.0, "low": 1022.01, "close": 1047.81}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 150, "exit_index": 151, "entry_time": 1759449600000, "exit_time": 1759492800000, "entry_price": 1106.39, "exit_price": 1189.4, "gross_return": 0.075028, "net_return": 0.073028, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1759363200000, "open": 1026.5, "high": 1050.0, "low": 1022.01, "close": 1047.81}, {"time": 1759406400000, "open": 1047.81, "high": 1099.22, "low": 1041.09, "close": 1090.22}, {"time": 1759449600000, "open": 1090.22, "high": 1114.95, "low": 1083.84, "close": 1106.39}], "exit_window": [{"time": 1759406400000, "open": 1047.81, "high": 1099.22, "low": 1041.09, "close": 1090.22}, {"time": 1759449600000, "open": 1090.22, "high": 1114.95, "low": 1083.84, "close": 1106.39}, {"time": 1759492800000, "open": 1106.4, "high": 1192.42, "low": 1102.48, "close": 1189.4}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 157, "exit_index": 158, "entry_time": 1759752000000, "exit_time": 1759795200000, "entry_price": 1223.19, "exit_price": 1313.15, "gross_return": 0.073545, "net_return": 0.071545, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1759665600000, "open": 1167.85, "high": 1171.2, "low": 1147.84, "close": 1167.38}, {"time": 1759708800000, "open": 1167.38, "high": 1223.9, "low": 1161.85, "close": 1222.19}, {"time": 1759752000000, "open": 1222.19, "high": 1239.94, "low": 1209.22, "close": 1223.19}], "exit_window": [{"time": 1759708800000, "open": 1167.38, "high": 1223.9, "low": 1161.85, "close": 1222.19}, {"time": 1759752000000, "open": 1222.19, "high": 1239.94, "low": 1209.22, "close": 1223.19}, {"time": 1759795200000, "open": 1223.17, "high": 1317.45, "low": 1204.61, "close": 1313.15}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}, {"direction": "long", "entry_index": 167, "exit_index": 168, "entry_time": 1760184000000, "exit_time": 1760227200000, "entry_price": 1135.07, "exit_price": 1230.12, "gross_return": 0.083739, "net_return": 0.081739, "bars_held": 1, "entry_pattern": "two_bullish_candles", "exit_reason": "target_hit", "entry_window": [{"time": 1760097600000, "open": 1270.72, "high": 1274.16, "low": 860.11, "close": 1102.47}, {"time": 1760140800000, "open": 1102.57, "high": 1143.33, "low": 1073.0, "close": 1129.79}, {"time": 1760184000000, "open": 1129.78, "high": 1182.76, "low": 1106.24, "close": 1135.07}], "exit_window": [{"time": 1760140800000, "open": 1102.57, "high": 1143.33, "low": 1073.0, "close": 1129.79}, {"time": 1760184000000, "open": 1129.78, "high": 1182.76, "low": 1106.24, "close": 1135.07}, {"time": 1760227200000, "open": 1135.07, "high": 1231.0, "low": 1107.43, "close": 1230.12}], "entry_signal_strength": 2.0, "exit_signal_strength": null, "commission_used": 0.001}], "analysis": {"trade_count": 18, "wins": 15, "losses": 3, "win_rate": 0.8333, "total_return": 0.37843, "avg_return": 0.021024, "avg_bars": 4.39, "max_win": 0.081739, "max_loss": -0.052488, "pattern_window": 3, "bullish_streak_required": 2, "exit_reason_counts": {"target_hit": 17, "max_bars": 1}, "exit_reason_shares": {"target_hit": 0.944444, "max_bars": 0.055556}, "pattern_id": "two_bullish", "pattern_name": "Two Bullish Candles", "commission_per_side": 0.001, "max_hold_bars": 24, "exit_rule": "first_close_above_entry", "first_entry_index": 1, "last_exit_index": 168, "series_start_index": 0}, "pattern_metadata": {"pattern_id": "two_bullish", "pattern_name": "Two Bullish Candles", "pattern_window": 3, "trade_count": 18, "win_rate": 0.8333, "total_return": 0.37843, "avg_return": 0.021024, "avg_bars": 4.39, "first_trade_time": 1753012800000, "last_trade_time": 1760227200000, "exit_reason_counts": {"target_hit": 17, "max_bars": 1}, "exit_reason_shares": {"target_hit": 0.944444, "max_bars": 0.055556}, "bullish_streak_required": 2, "exit_rule": "first_close_above_entry", "max_hold_bars": 24, "commission_per_side": 0.001}}