Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

jperl

Trading with Market Statistics. IV Standard Deviation

Recommended Posts

<<If you are going to use unweighted prices to compute SD, then use an unweighted average to compare it too. Be consistent. Don't compare apples to Oranges.>>

 

I already do that with Keltner Channels and Bollinger Bands.

 

I am looking for 'variation of price' around the point of 'value' (VWAP).... I am not looking for 'variation of volume-weighted price' around the point of value...

Share this post


Link to post
Share on other sites

Jerry's point is that a 1 point swing from VWAP with 100 contracts is different from 1 point swing from VWAP with 10,000 contracts, during the same time period. So the formula in his first message is correct.

 

I suspect that treating VWAP as moving average and calculating SD as the difference between VWAP and price as in bollinger bands is incorrect. Though, I do not know how much it differs.

 

Jerry, one thing just wonders me, why you did not take VWAP in your formula, so Variance = SUMi[Pi(pi - VWAPi)2] ? This would make more sense to me.

Share this post


Link to post
Share on other sites

Jerry, one thing just wonders me, why you did not take VWAP in your formula, so Variance = SUMi[Pi(pi - VWAPi)2] ? This would make more sense to me.

 

Ok let's give an example of computing variance:

 

Consider the 5 numbers, 1 2 3 4 5 all of equal weight for simplicity

what is their average: (1+2 + 3 +4 +5)/5 = 3.0

what's the variance: [(1-3.0)^2 + (2-3.0)^2 + (3-3.0)^2 + (4-3.0) ^2 + (5-3.0)^2]/5 = [4.0 +1.0 + 0 + 1.0 + 4.0]/5 = 2.0

 

Do you notice what value I use for the average in each of the squared terms? It's 3.0.

 

If I added another number to the series, say 6, then the new average would be (1 + 2 + 3 +4 +5 +6)/6 =3.5

I would then compute the next variance using this average in the squares.

 

Hope this clears up the computation method

Share this post


Link to post
Share on other sites

Check this out...

 

(first note that yes, my code is a bit flawed but I don't think by much since there is little movement here in the VWAP number so the numbers are not far off...)

 

Look how my std dev bands compress and expand. This shows classic market behavior in that it is oscillating between 'balance' and being 'out of balance' -- a core market profile concept.... (this chart is using rolling 90-minute period for its std dev (45-period chart on a 2-min chart)-- its acting like a bollinger band does -- using rolling data -- but based on VWAP rather than a moving average).

 

More interesting is look how price breaks lower out of the triangle/balancing and forms a classic 'bear flag' prior to breaking lower. I used to hate coils -- but the VWAP std dev bands show a market that is doing its thing -- coming out of balance then going back into balance -- then coming out again... knowing which environment you are in is crucial.

 

you can see how the market shot out of the balance with a jolt down (it actually gapped). this was followed by a mini bear-flag which set up excellent location for a short... Yes, I traded this pattern today.

 

http://bp0.blogger.com/_5h-SWVGx6Ms/RqfSmOvXa6I/AAAAAAAAAV8/W9MY6-aw6wk/s1600-h/July+25+ES+Coil+Break.bmp

Share this post


Link to post
Share on other sites
Check this out...

 

(first note that yes, my code is a bit flawed but I don't think by much since there is little movement here in the VWAP number so the numbers are not far off...)

 

Look how my std dev bands compress and expand. This shows classic market behavior in that it is oscillating between 'balance' and being 'out of balance' -- a core market profile concept.... (this chart is using rolling 90-minute period for its std dev (45-period chart on a 2-min chart)-- its acting like a bollinger band does -- using rolling data -- but based on VWAP rather than a moving average).

 

More interesting is look how price breaks lower out of the triangle/balancing and forms a classic 'bear flag' prior to breaking lower. I used to hate coils -- but the VWAP std dev bands show a market that is doing its thing -- coming out of balance then going back into balance -- then coming out again... knowing which environment you are in is crucial.

 

you can see how the market shot out of the balance with a jolt down (it actually gapped). this was followed by a mini bear-flag which set up excellent location for a short... Yes, I traded this pattern today.

 

http://bp0.blogger.com/_5h-SWVGx6Ms/RqfSmOvXa6I/AAAAAAAAAV8/W9MY6-aw6wk/s1600-h/July+25+ES+Coil+Break.bmp

 

 

interesting contraction expansion pattern there with vwap and bands..

Share this post


Link to post
Share on other sites
this chart is using rolling 90-minute period for its std dev (45-period chart on a 2-min chart)-- its acting like a bollinger band does -- using rolling data -- but based on VWAP rather than a moving average).

 

Dogpile--glad to see you are using VWAP in your own way and that you find it useful. I hope it works for you.

 

I have a problem using rolling 90-minute periods or for that matter any N-period method for computing the SD or N-period technical analysis in general. (This is includes all moving averages, CCI's, stochastics, MACD's, RSI's and any other method that requires a period length, and yes, sad to say Market Profile Analysis which uses 30 minute periods and an arbitrarily defined value area). The period length is arbitrary and would have to be readjusted when market properties change as they do daily. This is why I am presenting this general statistical method of viewing the markets. It's independent of period length of your chart and only depends on your starting time.

As we delve deeper into this you will see the utility of using this generalized statistic.

Share this post


Link to post
Share on other sites

NEWBIE now has an arsenal of tools to trade with, all generated from the volume distribution function. He knows how the distribution is skewed by comparing the VWAP to the PVP, and he knows how volatile the market is by including SD bands above and below the VWAP. The SD now determines is exit strategy. If he enters at the VWAP, his exit will be 1 standard deviation above the VWAP (for long trades ) or 1 standard deviation below the VWAP (for short trades).

 

Here is an example from today's ER2 price action of a trade that NEWBIE takes with a VERY LARGE SD. Watch it to see how NEWBIE trades it. In this video NEWBIE has the opportunity to make 4 or 5 points because of the large SD. But he doesn't. He properly exits early. Watch it and understand why he exits where he does.

 

ER2shortJuyly25

ER2shortJuly25.swf

Share this post


Link to post
Share on other sites

<<The period length is arbitrary and would have to be readjusted when market properties change as they do daily.>>

 

yes I agree with you but I think the point of indicators is simply to aid you in identifying the current 'structure' of the market. my 90-minute indicator is not signalling a trade -- it is simply helping to clarify the current structure. I could have identfied this by simply drawing a triangle. But seeing the bands come together around the VWAP jumps out at me visually and 'speaks to me.' as Jim Dalton says ~"the human brain is particulary adept at identifying visual patterns" -- indicators are good but clearly only good in context.

Share this post


Link to post
Share on other sites

Thanks Jerry for this great presentations ¡¡ they really have a tremendous educational value... I like your Newbie character ¡¡ he is the personification of a calm and relaxed in control trader... cool stuff keep it up... thanks Walter.

Share this post


Link to post
Share on other sites

Jerry, can you explain in a mathematical or logical way why the PVP matters again for your directional bias? are you just saying that the VWAP can be considered the the 'real' point of value and so logic calls for the VWAP to be the 'eventual PVP'? Thus, if PVP is above the VWAP, expectation is for 'next PVP' to be something that is closer to the current VWAP and therefore odds favor the short side? and vice versa... is that right? if you could explain it in a different way that would be much appreciated. thx in advance

Share this post


Link to post
Share on other sites

<<I have posted my code in Tradestation forum for calculating cumulative SD of the price , centered about VWAP. This gets you closer to what Jerry is talking about. >>

 

thanks nick...

 

you can see how the bands you have act more like 'keltner channels' (steadier band-width) and the bands I did act more like 'bollinger bands' (expand and contract). each has its own interesting characteristics which I have studied for years. The flaw with both of these classic indicators is that they both assume the current 'moving average' to be a point of 'value' -- but this is often way off the mark. VWAP is a much, much better estimate of current value so this is really quite a powerful concept we are discussing here. I am going to leave both sets of bands on my chart to watch the interaction just as I have always done with the classic indicators.

 

Volatility is not a constant in financial markets -- it is constantly oscillating between 'balance' (vol contraction) and 'out of balance' (price auctioning to a new point of balance). Every mathematical model must make an assumption about future volatility. This method Jerry has showed in the video uses straight historical data. If using this to trade, just be aware that this is effectively making the assumption that the 'future is like past' -- that is, expecting historical volatility to continue into the future. This assumption is loaded with risk -- known as 'model risk'. I think using both sets of bands (yours and mine) gives a more complete picture of the nature of financial markets. That is, you see the historical volatility alongside the expanding/contracting volatility-bands and this helps to show the way the market 'breathes'. See chapter 19 of the book 'Street Smarts' (Rashke) for more on this topic -- it is highly fascinating.

Share this post


Link to post
Share on other sites
Good observation Nick. There is a solution to this which we will eventually get to in later threads having to do with how you incorporate previous days, weeks, months VWAPs and their SD into todays price action. At this point in time, our NEWBIE trader waits for the distribution to develop and also waits for the price action to touch the VWAP. But, coming up in the next thread, we will introduce a paradigm shift in NEWBIE's thinking. Stay tuned.

 

 

 

Perhaps you might want to expand on this, to give us an idea of what you are thinking about here.

 

 

Hey guys. Basically what I'm thinking of here with using regression with time as a variable is to see if its possible to get an idea of how price as the dependent variable moves in relation to volume and time i.e: for a one unit increase in time (being measured in whatever scale you prefer, 1 min, 5 min etc...) we may expect price to move between two points with 90% confindence (i'm thinking of a standard statistical 90% confidence interval here). This is obviously going to be dependent on volume as well.

 

If we have sufficient data to test how significant time as a variable is then we might be able to use time in a model to help get more precise entry points earlier on in the day.

 

My logic here is that over an average period of time data, price will tend to behave differently in various intervals over a trading time i.e: more active in the morning session compared to lunch session.

 

Then again I have no idea how to represent this graphically, and perhaps its impossible, but if you can somehow get the data to stream into some sort of logarith which computes price as a function of volume and time you can get a constantly changing estimated price based on the market stats being generated in real time.

 

Price = Beta0 + B1(Volume) + B2(Time) would be the statistical equation used i guess with your null hypotheses H0: B2 = 0 i.e time has no effect on price.

 

Once you've tested to see if the model is free from any statistical multi-colinearity etc, then you could use your estimated price based on your equation to gague whether the current market price is at "fair value".

 

I'm really sorry if that sounds very conveluted but its kind of late here and I've been up all day. If you have any questions ask and I'll try to clarify my thinking further.

 

I have no idea how to code stuff, and I'm hopeless with computers, so if anyone does understand what I'm on about and thinks its possible let me know and we can try to test it.

Share this post


Link to post
Share on other sites
<<I have posted my code in Tradestation forum for calculating cumulative SD of the price , centered about VWAP. This gets you closer to what Jerry is talking about. >>

 

thanks nick...

 

you can see how the bands you have act more like 'keltner channels' (steadier band-width) and the bands I did act more like 'bollinger bands' (expand and contract). each has its own interesting characteristics which I have studied for years. The flaw with both of these classic indicators is that they both assume the current 'moving average' to be a point of 'value' -- but this is often way off the mark. VWAP is a much, much better estimate of current value so this is really quite a powerful concept we are discussing here. I am going to leave both sets of bands on my chart to watch the interaction just as I have always done with the classic indicators.

 

Volatility is not a constant in financial markets -- it is constantly oscillating between 'balance' (vol contraction) and 'out of balance' (price auctioning to a new point of balance). Every mathematical model must make an assumption about future volatility. This method Jerry has showed in the video uses straight historical data. If using this to trade, just be aware that this is effectively making the assumption that the 'future is like past' -- that is, expecting historical volatility to continue into the future. This assumption is loaded with risk -- known as 'model risk'. I think using both sets of bands (yours and mine) gives a more complete picture of the nature of financial markets. That is, you see the historical volatility alongside the expanding/contracting volatility-bands and this helps to show the way the market 'breathes'. See chapter 19 of the book 'Street Smarts' (Rashke) for more on this topic -- it is highly fascinating.

 

On the point of volatilty, I'm not market statistics whiz but I would assume that when you're modelling price that the volatilty would statistically be left out of the model as isnt the volatility simply the equivalent of the squared sum of errors in a statistical model which = 0 under standard statistical theory?

 

Reason I say this is that it depends on how you define volatility. If you take something like Black-Scholes or the CAPM and figure out the "true" value of an options or futures contract, then the distribution of all other prices around this are simply the errors around the true population mean. These errors then become unexplainable and statistically insignificant. The volatility of price around the population mean would be due to factors such as human emotions and psychology that drive markets in the first place and this cannot be quatified unless you have a telepathic link to every single market participant and a brain capable of disecting all that info!

 

Once the "errors" are factored out of the model, then you have to then decide on what variable actually effect price. So far we can gague that yes volume does have an effect of price (no i haven't proven this statistically but just going by observation) by way of adding "momentum" to the markets.

 

I also believe that time effects price as well but I can't prove this and I don't work as a statistician to be able to try and test this on my own.

 

Man i feel like I'm ranting now lol. I should go sleep!

Share this post


Link to post
Share on other sites
Jerry, can you explain in a mathematical or logical way why the PVP matters again for your directional bias? are you just saying that the VWAP can be considered the the 'real' point of value and so logic calls for the VWAP to be the 'eventual PVP'?

 

 

 

 

I don't use Market Profile terminology to describe the Volume Distribution function. Throughout these threads, I have not offered an explanation of why the PVP is where it is or why it moves from point to point. I don't use terms such as "value", or "value area". The fact is, it doesn't matter. I just accept the statistic for what it shows.

 

 

The PVP serves two purposes:

1)It acts as a Hold Up Price or HUP for short. A point where the market pauses before continuing on or reversing

2)Along with the VWAP it defines the skew of the market. How much the market deviates from a symmetric distribution.

 

For a NEWBIE trader, the skew of the market is his lifeblood. He needs to know how skewed the market is before he will enter a trade. And he will only enter a trade in the direction of the skew.

 

The extent of the skew is defined by the difference between VWAP and PVP

skew = VWAP - PVP

so if the skew is positive NEWBIE takes long trades only

if the skew is negative NEWBIE takes short trades only

and if there is no skew (skew close to 0) no trade

 

It doesn't get any simpler than this.

 

Eventually NEWBIE will learn how to take trades against the skew. But for now he needs to understand the basics

 

Thus, if PVP is above the VWAP, expectation is for 'next PVP' to be something that is closer to the current VWAP and therefore odds favor the short side? and vice versa... is that right?

 

This is a Market Profile interpretation, that somehow markets if they are "out of balance" (that is skewed) will somehow move back into balance (market skew = 0).

There is no evidence to support this assertion. And as far as intraday trading is concerned it isn't necessary. A NEWBIE trader simply needs to trade in the direction of the skew and avoid trading when there is no skew.

An Advanced trader can do many other things (Trade against the skew, trade when the skew is 0) but NEWBIE is not ready for that yet.

Share this post


Link to post
Share on other sites

thanks Jerry, I think we are saying the same thing but using different terminology. I interpret what you said to be that newbies expectation is for the market to tend to want to revert towards a symmetric distribution from a skewed distribution. I am not saying has to be perfectly symmetric -- just that skew will change. Therefore Newbie should trade with the expectation that the market will tend to lose whatever the curret skew in the direction of a normal distribution. If this is right, then it is the same thing that I was suggesting but just that I was using different terminology.

Share this post


Link to post
Share on other sites
thanks Jerry, I think we are saying the same thing but using different terminology. I interpret what you said to be that newbies expectation is for the market to tend to want to revert towards a symmetric distribution from a skewed distribution.

 

Actually just the opposite Dogpile. If NEWBIE is trading long (skew > 0) for instance he wants the skew to increase further, not decrease. If he takes a trade at the VWAP, he doesn't want price action to just sit there which would decrease the skew. He wants price action to move away from the VWAP in the direction of larger skew.

Share this post


Link to post
Share on other sites

<<He wants price action to move away from the VWAP in the direction of larger skew.>>

 

wouldn't a move in the direction he is trading tend to just re-set the skew at a different place. ie, the PVP changes... there is still going to be a skew, just a different skew. this is what happened in the video you just showed, no?

Share this post


Link to post
Share on other sites

wouldn't a move in the direction he is trading tend to just re-set the skew at a different place. ie, the PVP changes... there is still going to be a skew, just a different skew. this is what happened in the video you just showed, no?

 

The skew would reset, only if the market stalled with a build up of volume to move the PVP. It takes a large volume to do this. NEWBIE, being the alert trader that he his would notice this immediately. So if he was in a short trade (negative skew) and the skew reset and turned positive, he would bail out of his short position as shown in the video. What he is hoping for of course is that price action will take the market to the first SD before the skew resets. In either case, he takes money off the table.

Share this post


Link to post
Share on other sites

Jerry, with what you have shown so far I take that you would trade a super strong trend day different? Watching the diamonds today it didnt seem like there would have been a chance for NEWBIE to take a trade with whe he knows so far with how much price was tanking? It was pretty cool to see pvp change though,go below vwap, skew change right basically at the low of the day. :D

Share this post


Link to post
Share on other sites
Guest cooter
If you take something like Black-Scholes or the CAPM and figure out the "true" value of an options or futures contract, then the distribution of all other prices around this are simply the errors around the true population mean. These errors then become unexplainable and statistically insignificant.

 

Failure to account for, or even hedge against these "errors" may be expedient, until you have that "black swan" event that wipes you out! :cry:

 

johngalt.jpg

Share this post


Link to post
Share on other sites
Jerry, with what you have shown so far I take that you would trade a super strong trend day different? Watching the diamonds today it didnt seem like there would have been a chance for NEWBIE to take a trade with whe he knows so far with how much price was tanking?

 

That's correct Darth. NEWBIE would have not taken any trades today based on his present knowledge. But NEWBIE is about to graduate from trading 101 in the next thread. Based on the knowledge he is going to receive there, he would have made a killing today.

Share this post


Link to post
Share on other sites
That's correct Darth. NEWBIE would have not taken any trades today based on his present knowledge. But NEWBIE is about to graduate from trading 101 in the next thread. Based on the knowledge he is going to receive there, he would have made a killing today.

 

I caught this thread couple days ago and I cant stop reading and re-reading. I'm learning market Profile myself at the moment and you really have me jperl. This stuff looks like dynamite. But please, please dont tease me any more - I need part V :)

 

Keep it up - I'm loving it!

Jay.

Share this post


Link to post
Share on other sites

<<This is a Market Profile interpretation, that somehow markets if they are "out of balance" (that is skewed) will somehow move back into balance (market skew = 0). There is no evidence to support this assertion. >>

 

I am not saying this with respect to skew but markets are well-accepted to come in and out of balance by technical experts. If you don't call this evidence, then I am sorry you don't see it. There is obvious coiling/balancing action here at the 1522.00 level.

 

http://bp0.blogger.com/_5h-SWVGx6Ms/RqfSmOvXa6I/AAAAAAAAAV8/W9MY6-aw6wk/s1600-h/July+25+ES+Coil+Break.bmp

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • Date: 22nd November 2024.   BTC flirts with $100K, Stocks higher, Eurozone PMI signals recession risk.   Asia & European Sessions:   Geopolitical risks are back in the spotlight on fears of escalation in the Ukraine-Russia after Russia reportedly used a new ICBM to retaliate against Ukraine’s use of US and UK made missiles to attack inside Russia. The markets continue to assess the election results as President-elect Trump fills in his cabinet choices, with the key Treasury Secretary spot still open. The Fed’s rate path continues to be debated with a -25 bp December cut seen as 50-50. Earnings season is coming to an end after mixed reports, though AI remains a major driver. Profit taking and rebalancing into year-end are adding to gyrations too. Wall Street rallied, led by the Dow’s 1.06% broadbased pop. The S&P500 advanced 0.53% and the NASDAQ inched up 0.03%. Asian stocks rose after  Nvidia’s rally. Nikkei added 1% to 38,415.32 after the Tokyo inflation data slowed to 2.3% in October from 2.5% in the prior month, reaching its lowest level since January. The rally was also supported by chip-related stocks tracked Nvidia. Overnight-indexed swaps indicate that it’s certain the Reserve Bank of New Zealand will cut its policy rate by 50 basis points on Nov. 27, with a 22% chance of a 75 basis points reduction. European stocks futures climbed even though German Q3 GDP growth revised down to 0.1% q/q from the 0.2% q/q reported initially. Cryptocurrency market has gained approximately $1 trillion since Trump’s victory in the Nov. 5 election. Recent announcement for the SEC boosted cryptos. Chair Gary Gensler will step down on January 20, the day Trump is set to be inaugurated. Gensler has pushed for more protections for crypto investors. MicroStrategy Inc.’s plans to accelerate purchases of the token, and the debut of options on US Bitcoin ETFs also support this rally. Trump’s transition team has begun discussions on the possibility of creating a new White House position focused on digital asset policy.     Financial Markets Performance: The US Dollar recovered overnight and closed at 107.00. Bitcoin currently at 99,300,  flirting with a run toward the 100,000 level. The EURUSD drifts below 1.05, the GBPUSD dips to June’s bottom at 1.2570, while USDJPY rebounded to 154.94. The AUDNZD spiked to 2-year highs amid speculation the RBNZ will cut the official cash rate by more than 50 bps next week. Oil surged 2.12% to $70.46. Gold spiked to 2,697 after escalation alerts between Russia and Ukraine. Heightened geopolitical tensions drove investors toward safe-haven assets. Gold has surged by 30% this year. Haven demand balanced out the pressure from a strong USD following mixed US labor data. Silver rose 0.9% to 31.38, while palladium increased by 0.9% to 1,040.85 per ounce. Platinum remained unchanged. Always trade with strict risk management. Your capital is the single most important aspect of your trading business.   Please note that times displayed based on local time zone and are from time of writing this report.   Click HERE to access the full HFM Economic calendar.   Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding of how markets work. Click HERE to register for FREE!   Click HERE to READ more Market news. Andria Pichidi HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • A few trending stocks at support BAM MNKD RBBN at https://stockconsultant.com/?MNKD
    • BMBL Bumble stock watch, pull back to 7.94 support area with high trade quality at https://stockconsultant.com/?BMBL
    • LUMN Lumen Technologies stock watch, pull back to 7.43 support area with bullish indicators at https://stockconsultant.com/?LUMN
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.