---
title: "#algotrading articles | Hashnode"
description: "Explore 56 articles tagged #algotrading on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/algotrading"
---

Tag

# #algotrading

56 posts · 10 followers

[Lei Chen](https://hashnode.com/@leichenbuilds) · [4d ago](https://hashnode.com/posts/same-pine-script-two-backtests-1-480-apart-what-request-security-actually-returns/6afae793dc7520fe6ab5bed9)

### [Same Pine Script, Two Backtests, $1,480 Apart: What request.security() Actually Returns](https://leichenbuilds.hashnode.dev/same-pine-script-two-backtests-1-480-apart-what-request-security-actually-returns?utm_source=hashnode&utm_medium=feed)

Same Pine Script, Two Backtests, $1,480 Apart: What request.security() Actually Returns TL;DR: One line — lookahead=barmerge.lookahead\_on plus \[1\] — moved a backtest from +$5,209.86 to +$6,690.14 (Pr

12 min read · [leichenbuilds.hashnode.dev](https://leichenbuilds.hashnode.dev/same-pine-script-two-backtests-1-480-apart-what-request-security-actually-returns?utm_source=hashnode&utm_medium=feed)

[Lei Chen](https://hashnode.com/@leichenbuilds) · [5d ago](https://hashnode.com/posts/84-errors-became-5-the-version-to-version-table-for-a-pine-to-python-translator/6af995778c74aa1f35d45cf7)

### [84 Errors Became 5: The Version-to-Version Table for a Pine-to-Python Translator](https://leichenbuilds.hashnode.dev/84-errors-became-5-the-version-to-version-table-for-a-pine-to-python-translator?utm_source=hashnode&utm_medium=feed)

84 Errors Became 5: The Version-to-Version Table for a Pine-to-Python Translator TL;DR: A translator that went from 84 failed scripts to 5 did not get 16 times better in one fix. It got better in thr

15 min read · [leichenbuilds.hashnode.dev](https://leichenbuilds.hashnode.dev/84-errors-became-5-the-version-to-version-table-for-a-pine-to-python-translator?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [6d ago](https://hashnode.com/posts/buy-the-strongest-coin-3-7-a-year/6af846614e1e70441c468f37)

### [Buy the strongest coin? -3.7% a year.](https://stratcorealpha.hashnode.dev/buy-the-strongest-coin-3-7-a-year?utm_source=hashnode&utm_medium=feed)

Buy the strongest coin? -3.7% a year. Buying the strongest coin cost you about 3,700 dollars a year in my test. On a 100,000 dollar account that worst fall leaves you 36,000 dollars down, past your lo

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/buy-the-strongest-coin-3-7-a-year?utm_source=hashnode&utm_medium=feed)

[Lei Chen](https://hashnode.com/@leichenbuilds) · [Nov 13](https://hashnode.com/posts/it-drew-238-lines-and-the-csv-is-empty-what-366-drawing-only-pine-scripts-taught-me/6af6f43fe3f6d18f5694752a)

### [It Drew 238 Lines and the CSV Is Empty: What 366 Drawing-Only Pine Scripts Taught Me](https://leichenbuilds.hashnode.dev/it-drew-238-lines-and-the-csv-is-empty-what-366-drawing-only-pine-scripts-taught-me?utm_source=hashnode&utm_medium=feed)

It Drew 238 Lines and the CSV Is Empty: What 366 Drawing-Only Pine Scripts Taught Me Your Pine script draws 238 lines, 486 labels, 360 boxes. The Python port runs without errors. The output file is 0

12 min read · [leichenbuilds.hashnode.dev](https://leichenbuilds.hashnode.dev/it-drew-238-lines-and-the-csv-is-empty-what-366-drawing-only-pine-scripts-taught-me?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Nov 13](https://hashnode.com/posts/half-of-151-dip-buys-hit-the-stop/6af6c81b69ffc45628682cff)

### [Half of 151 dip buys hit the stop.](https://stratcorealpha.hashnode.dev/half-of-151-dip-buys-hit-the-stop?utm_source=hashnode&utm_medium=feed)

Half of 151 dip buys hit the stop. About half of my dip buys hit the stop, which is an order that closes your trade at a set loss. On your 100,000 dollar account that worst day would have cost you abo

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/half-of-151-dip-buys-hit-the-stop?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Nov 12](https://hashnode.com/posts/classic-trend-ea-on-7-majors-5-2-a-year/6af5934b7c1f8734ba048828)

### [Classic trend EA on 7 majors: -5.2 % a year.](https://stratcorealpha.hashnode.dev/classic-trend-ea-on-7-majors-5-2-a-year?utm_source=hashnode&utm_medium=feed)

Classic trend EA on 7 majors: -5.2 % a year. You would have lost money with this classic trend idea in my test. On a 100,000 dollar challenge account that pace costs you about 5,160 dollars in a year,

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/classic-trend-ea-on-7-majors-5-2-a-year?utm_source=hashnode&utm_medium=feed)

[Lei Chen](https://hashnode.com/@leichenbuilds) · [Nov 11](https://hashnode.com/posts/i-fixed-the-exit-bracket-my-last-post-got-wrong-the-strategy-got-worse/6af44f41c8b16fcb4349bdec)

### [I Fixed the Exit Bracket My Last Post Got Wrong. The Strategy Got Worse.](https://leichenbuilds.hashnode.dev/i-fixed-the-exit-bracket-my-last-post-got-wrong-the-strategy-got-worse?utm_source=hashnode&utm_medium=feed)

In my last post I proved my own post #2 was wrong: the "ATR bracket" in that RSI strategy was never an ATR bracket. strategy.exit's profit and loss are distances in ticks, not price points, so on the

9 min read · [leichenbuilds.hashnode.dev](https://leichenbuilds.hashnode.dev/i-fixed-the-exit-bracket-my-last-post-got-wrong-the-strategy-got-worse?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Nov 11](https://hashnode.com/posts/81-of-funded-paths-ended-with-nothing/6af49c0ddeb96a655744d9e6)

### [81 % of funded paths ended with nothing.](https://stratcorealpha.hashnode.dev/81-of-funded-paths-ended-with-nothing?utm_source=hashnode&utm_medium=feed)

Most paths in my funded-account simulation finished 24 months with $0 of modeled value. If you are thinking about a funded challenge, here is what that end value means. An EA is a program applying rul

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/81-of-funded-paths-ended-with-nothing?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Nov 10](https://hashnode.com/posts/is-it-true-that-trading-smaller-turns-a-losing-rule-into-a-safe-one/6af2dbbefcddeb25ff68ba1a)

### [Is it true that trading smaller turns a losing rule into a safe one?](https://stratcorealpha.hashnode.dev/is-it-true-that-trading-smaller-turns-a-losing-rule-into-a-safe-one?utm_source=hashnode&utm_medium=feed)

Is it true that trading smaller turns a losing rule into a safe one? My test lost -3.3% a year with half size on WTI from 2017 to 2022. On your $100,000 challenge account that pace would cost you $3,3

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/is-it-true-that-trading-smaller-turns-a-losing-rule-into-a-safe-one?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 25](https://hashnode.com/posts/a-100-usd-counter-example-the-challenge-reset-moves-by-one-utc-hour/6ade7a0b1cc3b76714457896)

### [A 100 USD counter example: the challenge reset moves by one UTC hour](https://stratcorealpha.hashnode.dev/a-100-usd-counter-example-the-challenge-reset-moves-by-one-utc-hour?utm_source=hashnode&utm_medium=feed)

25 October 2026. A hardcoded 22:00 UTC reset could erase a hypothetical 100 USD daily loss from your counter one hour early tonight. The loss has not disappeared from the challenge rule. Your software

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/a-100-usd-counter-example-the-challenge-reset-moves-by-one-utc-hour?utm_source=hashnode&utm_medium=feed)
