StockHero Guide
  • Setting Up Your Stock Trading Bot
  • Quick Start Bots
  • Video Gallery
  • Major Updates
    • Achieving ISO27001 Certification
    • StockHero Version 3
    • StockHero V2, The Best Is Not Enough
      • StockHero V2.5
    • StockHero Release Notes
  • Getting started
    • Paper Trading
    • Backtesting
    • Dashboard
    • Portfolio
    • Bots and Deals
    • Bots Processing Priority
    • Strategy Marketplace
    • Deploying A Marketplace Bot
    • SMS Notifications
  • Futures Trading
  • Bot Settings
    • Strategies
    • Trading Parameters
    • Entry / Exit Conditions
    • Advanced Bots
    • DCA Bots
    • Exit Bot
    • Price Bot
    • Grid Bot
    • Sell Bot
    • Momentum Bot
    • Trailing Stoploss
    • Trailing Take Profit
    • Bot's Performance Stats
    • Strategy Designer
  • Technical Indicators
    • Bollinger Band
    • EMA
    • RSI
    • Stoch RSI
    • MACD
    • Volume
    • TradingView
    • Mandatory Indicators
  • Connecting Your Brokerage
    • Supported Brokerages
    • Trading Account Connection
    • TradeStation
    • Webull
  • Wealthsimple
  • FAQ
    • Terminology
    • Frequently Asked Questions
  • Housekeeping
    • Release Notes
    • Terms of Use
    • Official Communities
Powered by GitBook
On this page
  1. Technical Indicators

EMA

PreviousBollinger BandNextRSI

Last updated 1 year ago

Exponential Moving Average (EMA) is a weighted approach derived from Simple Moving Average (SMA). EMA gives more weight to more recent price data, with the core concept that the more recent the data is, the higher the value it should have. In contrast, SMA gives equal weight throughout the averages, regardless of time relevancy. Using a longer time period for moving averages indicates long-term trends; short time frame periods indicate short term trends.

StockHero EMA: a buy signal is generated when the short-term EMA crosses above the long-term EMA; a sell signal is generated when the short-term EMA crosses below the long-term EMA.

A rising EMA suggests an upward trend, and a falling MA indicates a downtrend. EMA Crossing is a crossover signal created when two different time period EMAs crossover in a chart. A bullish crossover happens when the short-term MA (blue) crosses above a long-term one (red), suggesting the start of an upward trend. In contrast, a bearish crossover happens when a short-term MA crosses below a long-term moving average, which indicates the beginning of a downtrend.

SMA = ( Sum (Price, n) ) / n    
EMA = ( P - EMAp ) * K + EMAp

Where:
P = Price
EMAp = the Exponential moving Average for the previous period
K = 2 / (n + 1), the smoothing constant
n = Time Period