• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /Ideas
  • /Reverstion

Reverstion

Reversion Strat» Stop Loss can be set in settings. 0.90, means that it will apply a 10% stop loss setting. » You can set how many shares it buys at a time » MaPeriod, that is set to 5, looks to buy shares if instruments price dips below this moving average. » I have set the broker fee to $1, that's what I pay with Interactive Brokers, but you can edit that in the code as you wish // COMMENTS //—————————————————————————————————————————————————————————————————————————————— // » MEAN REVERSION SYSTEM, NOT A TREND TRADING SYSTEM // » DESIGNED TO WORK ON ETF WITH GOOD LINEARITY // » PRICE MUST BE ABOVE 200 MA // » CLOSE MUST BE BELOW THE FastMa TO BUY AT LOW PRICES // » USE ONLY ON DAILY OR HIGHER TIME FRAMES // » IMPORTS DATA FROM LOWN TICKET TO CHECK THAT NOT TOO MANY STOCKS ARE MAKING NEW HIGHS Can be used on tickers like SPY, SPX, SSO, SPXL, TQQQ, QQQ, and sector ETFs like these below. AMEX:XLE,AMEX:XLF,AMEX:XLK,AMEX:XLB,AMEX:XLU,AMEX:XLI,AMEX:XLV,AMEX:XLY,AMEX:XRT,AMEX:XLP,AMEX:XLRE,AMEX:XLC,AMEX:XSD,AMEX:XTL,AMEX:GXC Can also be used on stocks, I would recommend adjusting the stop loss and MaPeriod to dip buy
AMEX:XLKLong
by HermanBrummer

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Trading
  • Overview
  • Brokers
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Manifesto
  • Athletes
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security vulnerability
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First