Skip to content
Quantified Strategies Logo
  • 100 FREE STRATEGIES
  • PRICES
  • YOUTUBE
  • DAILY EDGE
  • GUIDESExpand
    • Trading Strategies
    • Backtesting Trading Strategies
    • Candlestick Strategies
    • Seasonal Strategies
    • Bitcoin & Crypto Strategies
    • Python Trading Strategies
    • Traders and trading books
    • Risk Management
    • Investment Strategies
    • Trading Psychology
    • Day Trading Strategies
    • Trading Indicator Strategies
    • Trading Strategy Glossary
    • Shop
  • BOOKS
  • ABOUT
Join Now
YouTube Instagram Facebook TikTok Linkedin Twitter
LOGIN
Quantified Strategies Logo

Risk Management In Trading (Amibroker Code)

Code For Free Strategies Risk Management In Trading (Amibroker Code)

The original article can be found here.

The logic in plain English:

  • We buy S&P 500 when the 3-day RSI is below 20,
  • We sell S&P 500 when the 3-day RSI is above 60.

Amibroker code:

setOption("holdminbars",1);

Buy = RSI(3)<20 ;
BuyPrice=Close;
Sell = RSI(3)>60 ;
SellPrice=Close;

ApplyStop(stopTypeLoss,stopModePoint,ATR(10)*2,1);

Previous Lesson
Back to Course
Next Lesson
Search

Hakan Samuelsson and Oddmund Groette are independent full-time traders and investors who together with their team manage this website. They have 20+ years of trading experience and share their insights here.

Contact us: support@quantifiedstrategies.com

  • Facebook
  • Instagram
  • YouTube
  • TikTok
  • LinkedIn
  • Medium
  • X
  • Tumblr

Latest Posts

  • RSI 14 Debunked – Do This Instead (Statistics, Numbers, Facts)