NexusFi: Find Your Edge


Home Menu

 





EWMA Volatility


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,957 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 volemont 
Zurich, Switzerland
 
Trading: Futures
Posts: 55 since Dec 2013
Thanks Given: 105
Thanks Received: 75

Hi, I'm looking for an Easylanguage function to calculate EWMA Volatility. Can anyone please help? Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
 volemont 
Zurich, Switzerland
 
Trading: Futures
Posts: 55 since Dec 2013
Thanks Given: 105
Thanks Received: 75


Answering my question

 
Code
Function: _VolaEWMA

inputs: Price(NumericSeries), Len(NumericSimple) ;
variables: squared_log_ret(0);                                                  
                                                                                                                                                       
squared_log_ret = Square(Log(Price / Price[1])); 
_VolaEWMA = SquareRoot(252 * XAverage(squared_log_ret, Len));


Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 semiopen 
hillsborough nj
 
Experience: Advanced
Platform: Tradestation/Excel
Broker: TradeStation
Trading: emicro
Posts: 98 since Sep 2018
Thanks Given: 18
Thanks Received: 46

I've watched quite a few youtube videos and read articles on EWMA.

The final result is supposed to give a volatility prediction for the next day. However it is far from clear what that means or how it can be tested.

The GARCH process is quite similar but supposedly better -

What is the GARCH Process
"The generalized autoregressive conditional heteroskedasticity (GARCH) process is an econometric term developed in 1982 by Robert F. Engle, an economist and 2003 winner of the Nobel Memorial Prize for Economics, to describe an approach to estimate volatility in financial markets. There are several forms of GARCH modeling. The GARCH process is often preferred by financial modeling professionals because it provides a more real-world context than other forms when trying to predict the prices and rates of financial instruments."

There is probably some application in quantitative finance and portfolio management for this but EWMA and GARCH methodologies seem totally irrelevant for short term trading.


Reply With Quote




Last Updated on October 3, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts