[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Volatility-Was: StoRSI... was Re: Robustness



PureBytes Links

Trading Reference Links

Phsst (and Graham): pretty slick and seemingly useful.  Thanks for
sharing.

I summed AVolatility+BVol...+CVol...+A1Vol....  to see if the sum of all
of them is any more or less useful than each individually.  Then I see
Graham's addition not yet included. 

Nice tool.

Ken

Come on everyone...try to alter someone else's subject line if you
depart meaningfully from the original thread.  Sure makes research later
a lot easier!!  Agree????

-----Original Message-----
From: Phsst [mailto:phsst@xxxxxxxxx] 
Sent: Wednesday, November 26, 2003 1:35 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] StoRSI... was Re: Robustness

> That is simple, I think :) 
> Liquidity and volatility are the major requirements
> 
> Cheers,
> Graham

Graham & others,

Graham's comment inspired the following Explore for Liquidity and
Volatility. Click on Volatility columns for sorted order of
volatility. Notes follow:

//-----------------------------------------------
// Liquidity & Volatility
DailyDollarVolume = V * ( (O + H + L + C) / 4);
AvgDollarVolume = MA(DailyDollarVolume, 30);
topLiquid = IIf(LastValue(AvgDollarVolume > 100000000),1,0);

// The above $100,000,000 figure is for U.S. Mkts which selects about
160 of the most active issues... modify for your own Mkts.

// Next four (4) from Chuck
//Method A (written for understanding, NOT saving space in the
window):    
    myAverage = MA(Close,10);
    NonStdDev = HHV(abs(Close-myAverage),10);
    APercentVolatility = NonStdDev / Close * 100;
 
//Method B:
    BPercentVolatility = StDev(Close,10) / Close * 100;
 
//Method C:
    CPercentVolatility = ATR(10) / Close * 100;
 
//Here is another one:
   A1PercentVolatility = StDev(C,10) / MA(C,10) * 100;

// From Gosub
GM_Vol = (MA(ATR(14),5) / MA(((H+L)/2),14))*100;

// Hist Volatility from Pal
HistVolatility = 100 *StDev(log(C/Ref(C,-1)), 90) * sqrt(365);

/*
InstHldgs = GetExtraData("InstHolds");
Beta = GetExtraData("Beta");
PEG = GetExtraData("PEG");
QRS = GetExtraData("QRS");
IssueType = GetExtraData("IssueType");
*/
Filter = TopLiquid AND Status("LastBarinrange");
AddColumn(Close,"Close", 6.2);
AddColumn(AvgDollarVolume,"AvgDollarVolume",10.0);
AddColumn(APercentVolatility,"A%V",1.2);
AddColumn(BPercentVolatility,"B%V",1.2);
AddColumn(CPercentVolatility,"C%V",1.2);
AddColumn(A1PercentVolatility,"A1%V",1.2);
AddColumn(GM_Vol,"GM_Vol",1.2);
AddColumn(HistVolatility,"HistVol",1.2);
// ----------------------------------------

The above Explore includes six (6) different measurements of
volatility as posted by a few members of our group. My notes from
their posts follow:

From:   "Chuck Rademacher" <chuck_rademacher@xxxx>
Date:  Tue Apr 15, 2003  5:51 am
Subject:  RE: [amibroker] Average price volatility in percent

Several ways come to mind.  Examples based on ten-day volatility:
 
Method A (written for understanding, not saving space in the window):

 
    myAverage = MA(Close,10);
    NonStdDev = HHV(abs(close-myAverage),10);
    PercentVolatility = NonStdDev / Close * 100;
 
Method B:
 
    PercentVolatility = StDev(Close,10) / Close * 100;
 
Method C:
 
    PercentVolatility = ATR(10) / Close * 100;
 
Here is another one:

PercentVolatility = StDev(C,10) / MA(C,10) * 100;
-------------------------------------------------------
From: "gosub283" <gosub283@xxxxxxxxx>
Subject: Re: Average price volatility in percent

Hi UM,

Here's a volatility indicator I posted a few
weeks ago which plots the volatility
as a percentage of the close price over the
same period.
I also threw in a trigger line.
Hope this helps...

Gosub283

Description:
 The standard Average True Range (ATR) indicator
 is only usefull as a reference over the period
 which it is set. As the stock price climbs or
 drops significantly, previous ATR value are useless
 when compared to current values. This makes it
 impossible to set ATR thresholds in software systems.
 The GM Volatility indicator divides the ATR value
 by the average close price over the same period,
 thereby showing range volatility as a percentage
 of the average price regardless of time or $ value.
 Values less than 3 are normal while value greater
 than 4 indicate high daily volatility.
 The GM_Volatility indic. is usefull at all times
 and floats between 0 and approx.+10% regardless
 of price change over time.

 EG: A value of 2% means that the daily Low-to-High
    fluctuates 2% of the average close price
    over the last 14 days. (lower volatility)

    A value of 7% means that the daily 'Low-to-High'
    fluctuates 7% of the average close price
    over the last 14 days. (Higher volatility)
*****************************************************/                
       

GM_Vol = (MA(ATR(14),5) / MA(((H+L)/2),14))*100;
Graph0 = GM_Vol;
Graph1 = MA(GM_Vol,10);

-------------------------------------


And finally from Pal's post today:

HistVolatility = 100 *StdDev(log(C/Ref(C,-1)), Period) * SquareRoot
(365)

-------------------------------------

As you can see, I was a little bored tonight.

Regards,

Phsst




Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/