NexusFi: Find Your Edge


Home Menu

 





EWMA Volatility


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,021 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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