• bitcoinBitcoin(BTC)$60,685.000.07%
  • ethereumEthereum(ETH)$1,700.160.11%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$556.390.18%
  • usd-coinUSDC(USDC)$1.000.01%
  • rippleXRP(XRP)$0.950.53%
  • solanaSolana(SOL)$71.430.78%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.070.87%
  • tronTRON(TRX)$0.3039370.45%
  • HyperliquidHyperliquid(HYPE)$62.962.20%
  • zcashZcash(ZEC)$705.22-8.34%
  • dogecoinDogecoin(DOGE)$0.0566890.45%
  • moneroMonero(XMR)$463.32-10.42%
  • leo-tokenLEO Token(LEO)$9.090.91%
  • whitebitWhiteBIT Coin(WBT)$61.244.21%
  • chainlinkChainlink(LINK)$9.352.68%
  • USDSUSDS(USDS)$1.000.02%
  • cardanoCardano(ADA)$0.1494031.65%
  • Ethena USDeEthena USDe(USDE)$1.00-0.04%
  • stellarStellar(XLM)$0.126943-1.15%
  • daiDai(DAI)$1.000.01%
  • bitcoin-cashBitcoin Cash(BCH)$211.102.05%
  • nearNEAR Protocol(NEAR)$3.08-0.12%
  • litecoinLitecoin(LTC)$44.162.41%
  • CantonCanton(CC)$0.074652-4.77%
  • avalanche-2Avalanche(AVAX)$6.63-0.29%
  • tether-goldTether Gold(XAUT)$3,568.250.12%
  • USD1USD1(USD1)$1.00-0.03%
  • uniswapUniswap(UNI)$4.69-1.25%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.96-0.29%
  • suiSui(SUI)$0.67-0.08%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.0539632.22%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.09%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • quant-networkQuant(QNT)$148.472.26%
  • BittensorBittensor(TAO)$184.170.64%
  • shiba-inuShiba Inu(SHIB)$0.0000040.67%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.12-0.03%
  • Circle USYCCircle USYC(USYC)$1.150.00%
  • crypto-com-chainCronos(CRO)$0.0400620.21%
  • MemeCoreMemeCore(M)$0.83-2.48%
  • RainRain(RAIN)$0.002488-9.69%
  • okbOKB(OKB)$83.100.77%
  • Falcon USDFalcon USD(USDF)$1.000.03%
  • United StablesUnited Stables(U)$1.000.05%
  • pax-goldPAX Gold(PAXG)$3,564.590.03%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • BitwayBitway(BTW)$1.0011.23%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

How to Build Technical Analysis and Backtesting Workflow with pandas-ta-classic, Strategy Signals, and Performance Metrics

May 11, 2026
in AI & Technology
Reading Time: 1 min read
A A
How to Build Technical Analysis and Backtesting Workflow with pandas-ta-classic, Strategy Signals, and Performance Metrics
ShareShareShareShareShare
entries = df.index[(df["pos"].diff() == 1)]
exits   = df.index[(df["pos"].diff() == -1)]
fig, (ax1, ax2, ax3) = plt.subplots(
   3, 1, figsize=(13, 10), sharex=True,
   gridspec_kw={"height_ratios": [3, 1, 2]},
)
ax1.plot(df.index, df["close"],  lw=1.1, color="black", label="Close")
ax1.plot(df.index, df["SMA_20"], lw=0.9, label="SMA 20")
ax1.plot(df.index, df["SMA_50"], lw=0.9, label="SMA 50")
bbu, bbl = "BBU_20_2.0", "BBL_20_2.0"
if bbu in df and bbl in df:
   ax1.fill_between(df.index, df[bbl], df[bbu], alpha=0.12, label="Bollinger 20,2")
ax1.scatter(entries, df.loc[entries, "close"], marker="^", s=70,
           color="green", zorder=5, label="Entry")
ax1.scatter(exits,   df.loc[exits,   "close"], marker="v", s=70,
           color="red",   zorder=5, label="Exit")
ax1.set_title(f"{TICKER} — price, MAs, Bollinger, signals")
ax1.legend(loc="upper left"); ax1.grid(alpha=0.3)
ax2.plot(df.index, df["RSI_14"], lw=0.9, label="RSI 14")
ax2.axhline(70, color="red",   ls="--", lw=0.6)
ax2.axhline(30, color="green", ls="--", lw=0.6)
ax2.set_title("RSI 14"); ax2.legend(loc="upper left"); ax2.grid(alpha=0.3)
ax3.plot(df.index, (1 + df["ret"]).cumprod(),       lw=1.1, label="Buy & Hold")
ax3.plot(df.index, (1 + df["strat_ret"]).cumprod(), lw=1.1, label="Strategy")
ax3.set_title("Equity curves ($1 start)")
ax3.legend(loc="upper left"); ax3.grid(alpha=0.3)
plt.tight_layout(); plt.show()
print("\nTweak TICKER, the Strategy list, or the sweep grid to keep exploring.")

Credit: Source link

YOU MAY ALSO LIKE

Backloggd Urges Users To Change Their Passwords After A Breach

1Password Says It Was Hacked But Users’ Vaults Are Safe

ShareTweetSendSharePin

Related Posts

Backloggd Urges Users To Change Their Passwords After A Breach
AI & Technology

Backloggd Urges Users To Change Their Passwords After A Breach

November 26, 2026
1Password Says It Was Hacked But Users’ Vaults Are Safe
AI & Technology

1Password Says It Was Hacked But Users’ Vaults Are Safe

November 26, 2026
Canada Invests 0 Million More to Expand AI Compute Access Fund – Unite.AI
AI & Technology

Canada Invests $700 Million More to Expand AI Compute Access Fund – Unite.AI

November 26, 2026
Amazon Workers Around The World Plan Strikes And Protests On Black Friday And Cyber Monday
AI & Technology

Amazon Workers Around The World Plan Strikes And Protests On Black Friday And Cyber Monday

November 26, 2026
Next Post
Speaker Johnson says U.S. ‘not at war’ with Iran as 60-day deadline nears

Speaker Johnson says U.S. ‘not at war’ with Iran as 60-day deadline nears

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Miley Cyrus marries drummer Maxx Morando in Palm Springs

Miley Cyrus marries drummer Maxx Morando in Palm Springs

November 24, 2026
Getting Out of a Car Loan – Sell or Refinance Before You Fall Behind

Getting Out of a Car Loan – Sell or Refinance Before You Fall Behind

November 22, 2026
NBC Nightly News with Tom Llamas Full Episode – Nov. 19

NBC Nightly News with Tom Llamas Full Episode – Nov. 19

November 27, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!