NexusFi: Find Your Edge


Home Menu

 





EWMA Volatility


Discussion in EasyLanguage Programming

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




 
Search this Thread

EWMA Volatility

  #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?
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts