Spaces:
Running
Running
Download documents/demo_feb_2021.html from tripolskypetr/backtest-kit-docs: direct link, hf CLI and curl.
- Browser
- Download file 18.2 kB
-
https://huggingface.co/spaces/tripolskypetr/backtest-kit-docs/resolve/main/documents/demo_feb_2021.html
- Command line
-
hf download hf://spaces/tripolskypetr/backtest-kit-docs/documents/demo_feb_2021.html
-
curl -L -o demo_feb_2021.html https://huggingface.co/spaces/tripolskypetr/backtest-kit-docs/resolve/main/documents/demo_feb_2021.html
18.2 kB
| <html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>demo/feb_2021 | backtest-kit</title><meta name="description" content="Documentation for backtest-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">backtest-kit</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">backtest-kit</a></li><li><a href="demo_feb_2021.html">demo/feb_2021</a></li></ul></div><div class="tsd-panel tsd-typography"><img src="https://github.com/tripolskypetr/backtest-kit/raw/refs/heads/master/assets/square_compasses.svg" height="45px" align="right"> | |
| <a id="π-dotusdt-february-2021--python-ema-crossover-strategy" class="tsd-anchor"></a><h1 class="tsd-anchor-link">π DOTUSDT February 2021 β Python EMA Crossover Strategy<a href="#π-dotusdt-february-2021--python-ema-crossover-strategy" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h1><blockquote> | |
| <p>Python-based (WASI) strategy that uses EMA(9) and EMA(21) crossover signals executed via WebAssembly. Trades trigger when fast EMA crosses slow EMA, confirmed by 4h range midpoint.</p> | |
| </blockquote> | |
| <p><img src="https://raw.githubusercontent.com/tripolskypetr/backtest-kit/HEAD/assets/screenshots/screenshot16.png" alt="screenshot"></p> | |
| <p><a href="https://deepwiki.com/tripolskypetr/backtest-kit"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a> | |
| <a href="https://npmjs.org/package/backtest-kit"><img src="https://img.shields.io/npm/v/backtest-kit.svg?style=flat-square" alt="npm"></a> | |
| <a href=""><img src="https://img.shields.io/badge/TypeScript-5.0+-blue" alt="TypeScript"></a> | |
| <a href="https://github.com/tripolskypetr/backtest-kit/actions/workflows/webpack.yml"><img src="https://github.com/tripolskypetr/backtest-kit/actions/workflows/webpack.yml/badge.svg" alt="Build"></a></p> | |
| <p>Each signal opens a $100 bracket position (Β±2% TP/SL) via <code>Position.bracket</code>. The Python indicator (<code>strategy.py</code>) runs on 8h candles, cached per 8h via <code>Cache.fn</code>. A signal fires based on EMA crossover: if EMA(9) > EMA(21), open LONG; otherwise SELL.</p> | |
| <p><strong>Strategy:</strong> <code>feb_2021_strategy</code> | <strong>Exchange:</strong> <code>ccxt-exchange</code> | <strong>Frame:</strong> <code>feb_2021_frame</code></p> | |
| <a id="π-quick-start" class="tsd-anchor"></a><h2 class="tsd-anchor-link">π Quick Start<a href="#π-quick-start" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><blockquote> | |
| <p>Link to <a href="https://github.com/tripolskypetr/backtest-kit/tree/master/example/content/feb_2021.strategy">the source code</a></p> | |
| </blockquote> | |
| <pre><code class="bash"><span class="hl-1">npm</span><span class="hl-2"> </span><span class="hl-3">start</span><span class="hl-2"> </span><span class="hl-4">--</span><span class="hl-2"> </span><span class="hl-4">--backtest</span><span class="hl-2"> </span><span class="hl-4">--symbol</span><span class="hl-2"> </span><span class="hl-3">DOTUSDT</span><span class="hl-2"> </span><span class="hl-3">./content/feb_2021.strategy/feb_2021.strategy.ts</span> | |
| </code><button type="button">Copy</button></pre> | |
| <a id="π-price-context-february-2021" class="tsd-anchor"></a><h2 class="tsd-anchor-link">π Price Context (February 2021)<a href="#π-price-context-february-2021" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><table> | |
| <thead> | |
| <tr> | |
| <th>Metric</th> | |
| <th>Value</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td>Frame open</td> | |
| <td>~$31.06 (Feb 8)</td> | |
| </tr> | |
| <tr> | |
| <td>Frame close</td> | |
| <td>~$31.16 (Feb 19)</td> | |
| </tr> | |
| <tr> | |
| <td>Period high</td> | |
| <td>~$32.52</td> | |
| </tr> | |
| <tr> | |
| <td>Period low</td> | |
| <td>~$19.39</td> | |
| </tr> | |
| <tr> | |
| <td>Net move</td> | |
| <td><strong>+67.7%</strong> (low to high)</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <a id="β¨-performance-summary" class="tsd-anchor"></a><h2 class="tsd-anchor-link">β¨ Performance Summary<a href="#β¨-performance-summary" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><table> | |
| <thead> | |
| <tr> | |
| <th>Metric</th> | |
| <th>Value</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td>Total trades</td> | |
| <td>33</td> | |
| </tr> | |
| <tr> | |
| <td>Longs / Shorts</td> | |
| <td>33 / 0</td> | |
| </tr> | |
| <tr> | |
| <td>Total deployed capital</td> | |
| <td>$3,300</td> | |
| </tr> | |
| <tr> | |
| <td>Net PNL ($)</td> | |
| <td><strong>+$5.52</strong></td> | |
| </tr> | |
| <tr> | |
| <td>Net PNL (%)</td> | |
| <td><strong>+5.52%</strong> avg per trade</td> | |
| </tr> | |
| <tr> | |
| <td>Win rate</td> | |
| <td>63.6% (21 / 33)</td> | |
| </tr> | |
| <tr> | |
| <td>Avg PNL per trade</td> | |
| <td>+$0.17</td> | |
| </tr> | |
| <tr> | |
| <td>Best trade</td> | |
| <td>+$1.59 (Feb 11, LONG, +1.59%)</td> | |
| </tr> | |
| <tr> | |
| <td>Worst trade</td> | |
| <td>β$2.39 (Feb 11, LONG, β2.39%)</td> | |
| </tr> | |
| <tr> | |
| <td>Worst drawdown (%)</td> | |
| <td><strong>β2.39%</strong></td> | |
| </tr> | |
| <tr> | |
| <td>Worst drawdown ($)</td> | |
| <td><strong>β$2.39</strong></td> | |
| </tr> | |
| <tr> | |
| <td>Sharpe ratio</td> | |
| <td><strong>0.09</strong></td> | |
| </tr> | |
| <tr> | |
| <td>Avg hold time</td> | |
| <td>~141 min (~2h)</td> | |
| </tr> | |
| <tr> | |
| <td>Max hold time</td> | |
| <td>480 min (~8h)</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <a id="π-trade-log" class="tsd-anchor"></a><h2 class="tsd-anchor-link">π Trade Log<a href="#π-trade-log" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><table> | |
| <thead> | |
| <tr> | |
| <th>#</th> | |
| <th>Dir</th> | |
| <th>Open date</th> | |
| <th>Close date</th> | |
| <th>Hold</th> | |
| <th>Open price</th> | |
| <th>Close price</th> | |
| <th>PNL%</th> | |
| <th>PNL$</th> | |
| <th>Max DD%</th> | |
| <th>Max DD$</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td>1</td> | |
| <td>LONG</td> | |
| <td>Feb 18</td> | |
| <td>Feb 19</td> | |
| <td>480 min</td> | |
| <td>$31.06</td> | |
| <td>$31.16</td> | |
| <td>β0.07%</td> | |
| <td>β$0.07</td> | |
| <td>β1.54%</td> | |
| <td>β$1.54</td> | |
| </tr> | |
| <tr> | |
| <td>2</td> | |
| <td>LONG</td> | |
| <td>Feb 18</td> | |
| <td>Feb 18</td> | |
| <td>213 min</td> | |
| <td>$31.65</td> | |
| <td>$31.01</td> | |
| <td>β2.39%</td> | |
| <td>β$2.39</td> | |
| <td>β2.23%</td> | |
| <td>β$2.23</td> | |
| </tr> | |
| <tr> | |
| <td>3</td> | |
| <td>LONG</td> | |
| <td>Feb 18</td> | |
| <td>Feb 18</td> | |
| <td>480 min</td> | |
| <td>$32.00</td> | |
| <td>$31.65</td> | |
| <td>β1.49%</td> | |
| <td>β$1.49</td> | |
| <td>β2.00%</td> | |
| <td>β$2.00</td> | |
| </tr> | |
| <tr> | |
| <td>4</td> | |
| <td>LONG</td> | |
| <td>Feb 17</td> | |
| <td>Feb 17</td> | |
| <td>91 min</td> | |
| <td>$30.83</td> | |
| <td>$31.44</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β1.16%</td> | |
| <td>β$1.16</td> | |
| </tr> | |
| <tr> | |
| <td>5</td> | |
| <td>LONG</td> | |
| <td>Feb 17</td> | |
| <td>Feb 17</td> | |
| <td>480 min</td> | |
| <td>$30.62</td> | |
| <td>$30.83</td> | |
| <td>+0.29%</td> | |
| <td>+$0.29</td> | |
| <td>β1.62%</td> | |
| <td>β$1.62</td> | |
| </tr> | |
| <tr> | |
| <td>6</td> | |
| <td>LONG</td> | |
| <td>Feb 17</td> | |
| <td>Feb 17</td> | |
| <td>51 min</td> | |
| <td>$30.10</td> | |
| <td>$30.71</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β0.89%</td> | |
| <td>β$0.89</td> | |
| </tr> | |
| <tr> | |
| <td>7</td> | |
| <td>LONG</td> | |
| <td>Feb 16</td> | |
| <td>Feb 17</td> | |
| <td>480 min</td> | |
| <td>$29.85</td> | |
| <td>$30.10</td> | |
| <td>+0.44%</td> | |
| <td>+$0.44</td> | |
| <td>β1.65%</td> | |
| <td>β$1.65</td> | |
| </tr> | |
| <tr> | |
| <td>8</td> | |
| <td>LONG</td> | |
| <td>Feb 16</td> | |
| <td>Feb 16</td> | |
| <td>25 min</td> | |
| <td>$28.83</td> | |
| <td>$29.40</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β0.51%</td> | |
| <td>β$0.51</td> | |
| </tr> | |
| <tr> | |
| <td>9</td> | |
| <td>LONG</td> | |
| <td>Feb 16</td> | |
| <td>Feb 16</td> | |
| <td>12 min</td> | |
| <td>$27.76</td> | |
| <td>$27.20</td> | |
| <td>β2.39%</td> | |
| <td>β$2.39</td> | |
| <td>β2.28%</td> | |
| <td>β$2.28</td> | |
| </tr> | |
| <tr> | |
| <td>10</td> | |
| <td>LONG</td> | |
| <td>Feb 15</td> | |
| <td>Feb 15</td> | |
| <td>19 min</td> | |
| <td>$29.25</td> | |
| <td>$28.67</td> | |
| <td>β2.39%</td> | |
| <td>β$2.39</td> | |
| <td>β2.39%</td> | |
| <td>β$2.39</td> | |
| </tr> | |
| <tr> | |
| <td>11</td> | |
| <td>LONG</td> | |
| <td>Feb 15</td> | |
| <td>Feb 15</td> | |
| <td>42 min</td> | |
| <td>$26.26</td> | |
| <td>$26.78</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β1.00%</td> | |
| <td>β$1.00</td> | |
| </tr> | |
| <tr> | |
| <td>12</td> | |
| <td>LONG</td> | |
| <td>Feb 15</td> | |
| <td>Feb 15</td> | |
| <td>45 min</td> | |
| <td>$26.98</td> | |
| <td>$27.52</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β0.40%</td> | |
| <td>β$0.40</td> | |
| </tr> | |
| <tr> | |
| <td>13</td> | |
| <td>LONG</td> | |
| <td>Feb 14</td> | |
| <td>Feb 14</td> | |
| <td>31 min</td> | |
| <td>$26.76</td> | |
| <td>$27.29</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>β1.28%</td> | |
| <td>β$1.28</td> | |
| </tr> | |
| <tr> | |
| <td>14</td> | |
| <td>LONG</td> | |
| <td>Feb 14</td> | |
| <td>Feb 14</td> | |
| <td>352 min</td> | |
| <td>$28.26</td> | |
| <td>$27.69</td> | |
| <td>β2.39%</td> | |
| <td>β$2.39</td> | |
| <td>β2.28%</td> | |
| <td>β$2.28</td> | |
| </tr> | |
| <tr> | |
| <td>15</td> | |
| <td>LONG</td> | |
| <td>Feb 14</td> | |
| <td>Feb 14</td> | |
| <td>18 min</td> | |
| <td>$27.97</td> | |
| <td>$28.52</td> | |
| <td>+1.59%</td> | |
| <td>+$1.59</td> | |
| <td>0.00%</td> | |
| <td>$0.00</td> | |
| </tr> | |
| <tr> | |
| <td><strong>Ξ£</strong></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td><strong>+$5.52</strong></td> | |
| <td><strong>β2.39%</strong></td> | |
| <td><strong>β$50.50</strong></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <a id="π-how-to-run" class="tsd-anchor"></a><h2 class="tsd-anchor-link">π How to Run<a href="#π-how-to-run" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><pre><code class="bash"><span class="hl-1">npm</span><span class="hl-2"> </span><span class="hl-3">start</span><span class="hl-2"> </span><span class="hl-4">--</span><span class="hl-2"> </span><span class="hl-4">--backtest</span><span class="hl-2"> </span><span class="hl-4">--symbol</span><span class="hl-2"> </span><span class="hl-3">DOTUSDT</span><span class="hl-2"> </span><span class="hl-13">\</span><br/><span class="hl-2"> </span><span class="hl-4">--strategy</span><span class="hl-2"> </span><span class="hl-3">feb_2021_strategy</span><span class="hl-2"> </span><span class="hl-13">\</span><br/><span class="hl-2"> </span><span class="hl-4">--exchange</span><span class="hl-2"> </span><span class="hl-3">ccxt-exchange</span><span class="hl-2"> </span><span class="hl-13">\</span><br/><span class="hl-2"> </span><span class="hl-4">--frame</span><span class="hl-2"> </span><span class="hl-3">feb_2021_frame</span><span class="hl-2"> </span><span class="hl-13">\</span><br/><span class="hl-2"> </span><span class="hl-3">./content/feb_2021.strategy/feb_2021.test.ts</span> | |
| </code><button type="button">Copy</button></pre> | |
| <p>Add <code>--ui</code> to open the web dashboard at <code>http://localhost:60050</code>:</p> | |
| <pre><code class="bash"><span class="hl-1">npm</span><span class="hl-2"> </span><span class="hl-3">start</span><span class="hl-2"> </span><span class="hl-4">--</span><span class="hl-2"> </span><span class="hl-4">--backtest</span><span class="hl-2"> </span><span class="hl-4">--symbol</span><span class="hl-2"> </span><span class="hl-3">DOTUSDT</span><span class="hl-2"> </span><span class="hl-4">--ui</span><span class="hl-2"> </span><span class="hl-13">\</span><br/><span class="hl-2"> </span><span class="hl-3">./content/feb_2021.strategy/feb_2021.test.ts</span> | |
| </code><button type="button">Copy</button></pre> | |
| <a id="π-environment-variables" class="tsd-anchor"></a><h2 class="tsd-anchor-link">π Environment Variables<a href="#π-environment-variables" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>Create a <code>.env</code> file in the project root (copy from <code>.env.example</code>):</p> | |
| <pre><code class="env"># Telegram notifications (optional) | |
| CC_TELEGRAM_TOKEN=your_bot_token_here | |
| CC_TELEGRAM_CHANNEL=-100123456789 | |
| # Web UI server (optional, defaults shown) | |
| CC_WWWROOT_HOST=0.0.0.0 | |
| CC_WWWROOT_PORT=60050 | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#π-dotusdt-february-2021--python-ema-crossover-strategy"><span>π DOTUSDT <wbr/>February 2021 β <wbr/>Python EMA <wbr/>Crossover <wbr/>Strategy</span></a><ul><li><a href="#π-quick-start"><span>π <wbr/>Quick <wbr/>Start</span></a></li><li><a href="#π-price-context-february-2021"><span>π <wbr/>Price <wbr/>Context (<wbr/>February 2021)</span></a></li><li><a href="#β¨-performance-summary"><span>β¨ <wbr/>Performance <wbr/>Summary</span></a></li><li><a href="#π-trade-log"><span>π <wbr/>Trade <wbr/>Log</span></a></li><li><a href="#π-how-to-run"><span>π <wbr/>How to <wbr/>Run</span></a></li><li><a href="#π-environment-variables"><span>π <wbr/>Environment <wbr/>Variables</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">backtest-kit</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html> | |
| <!-- Yandex.Metrika counter --> | |
| <script type="text/javascript"> | |
| (function(m,e,t,r,i,k,a){ | |
| m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; | |
| m[i].l=1*new Date(); | |
| for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} | |
| k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a) | |
| })(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=105455585', 'ym'); | |
| ym(105455585, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", accurateTrackBounce:true, trackLinks:true}); | |
| </script> | |
| <noscript><div><img src="https://mc.yandex.ru/watch/105455585" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | |
| <!-- /Yandex.Metrika counter --> | |
| <!-- Google tag (gtag.js) --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=G-3MQZEBBDDR"></script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'G-3MQZEBBDDR'); | |
| </script> | |