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 VI. Scaling In and Risk Tolerance

Recommended Posts

comeon guys, save this stuff for last....so over the head of who is following this so far.

HUPS and market rotation theory next??

 

What stuff are you referring to darth?

 

Next thread will be on counter trend trades at the PVP. We won't get to details about HUP until thread IX or X.

Share this post


Link to post
Share on other sites
Guest cooter
Well Dogpile, I wish I had traded NQ today instead of ER. There were at least four good long entry points including 1 scale-in point. In all trades, the VWAP was above the PVP, so distribution was skewed to the upside as you can see in each of the charts below.

 

 

Pretty good I'd say using just simple statistics.

Jerry,

In your assessment of VWAP and its SD, does price ever reach the 3rd SD level? If not, why not?

Share this post


Link to post
Share on other sites
Jerry,

In your assessment of VWAP and its SD, does price ever reach the 3rd SD level? If not, why not?

 

good question cooter. yes price will reach the 3rd SD at times. This usually occurs on a fast momentum break out. In the last week there has been a lot of this. Extremely difficult to trade, if you didn't catch the move at the start. You don't want to enter a trade when price hits the 3rd SD. A rebound could catch you off guard.

Share this post


Link to post
Share on other sites
Guest cooter
good question cooter. yes price will reach the 3rd SD at times. This usually occurs on a fast momentum break out. In the last week there has been a lot of this. Extremely difficult to trade, if you didn't catch the move at the start.

 

Perhaps you could point out an instance of this in a future video, as I've yet to see it myself (based on your calculations of the VWAP and its SD).

 

You don't want to enter a trade when price hits the 3rd SD. A rebound could catch you off guard.

 

Why not? Wouldn't you want to fade it and buy the pullback as price regresses towards the mean?

Share this post


Link to post
Share on other sites

Jerry,

 

Clarifying question, when calculating your:

 

VWAP

PVP

SD bands

 

Are you only going down to a 2minute chart for accuracy? I mean are you computing the variance, SD and VWAP and PVP using 2min data knowing that it is off a bit. Or are you using 2m of VWAP and SD and then using 1 tick data for volume at every price for the PVP only....Or all of them using tick data but displaying on a 2m chart?

 

This is important as I would like to code exactly what you are doing so that TS users can follow along exactly with what you are doing.

 

Also, nice job dogpile, that is an excellent setup until we get this thing programmed.

 

Thanks Jerry,

 

dbntina

Share this post


Link to post
Share on other sites
comeon guys, save this stuff for last....so over the head of who is following this so far.

HUPS and market rotation theory next??

 

I would focus on what jerry has to say and pretty much ignore everything else unless it 'resonates' with a question that you have. I am not sure it is neccasary to fully understand the maths to me it is of secondary importance over whether the tools work through empirical research. If they prove to (they certainly look as if they do) I will probably try to understand the maths better.

 

It seems simple to me (if I understand it correctly) The relationship of the modal point (PVP) and the mean point (VWAP) gives you a bias for the market. This alone is pretty interesting to me and worthy of study. I have a hunch this may be turned on its head (a little) in the end when a market is statistically 'over extended' and we might expect a return to the mean. Maybe it'll be coupled with a switch in PvP....guess we'll see soon.

 

The other 'simple' thing is that an arbitrary tool (though it is statistically derived) is offered for when volatility expands and we anticipate we might not get a revision to the mean. The think I like is that these provide straight forward lines (though I am always suspect of squiggly lines:eek:) to manage your trades from. So far it seems like all bases are being covered.

 

Cheers.

Share this post


Link to post
Share on other sites

I was going to answer your original question but I am feeling particularly lazy today :).

 

It does raise an interesting point. Assuming that you only risk ever risk 2% (i.e. it is fixed rather than variable). Then the only variable in the frame work that you have control of is your position size. Knowing where the PVP VWAP & 1SD are you can calculate the size for a single entry at the VWAP or a scaled in entry at SD1 & VWAP so that no more than 2% is put at risk correct?

 

This seems a good point to raise a delicate question.

 

I would quite like to know roughly what percentage of trade type a)VWAP and trade type b) SD1 get stopped out. (I am guessing fairly low as we are often putting quite a large amount at risk compared to the reward). That would give a better idea of whether 2% is a reasonable amount to risk, (and to calculate your risk of ruin, a more interesting statistic I think!).

 

I appreciate it may not be valuable using this R:R value for arbitrary stops and targets however it is valuable looking at it historically to understand the performance of your system/method, the overall expectancy of your trading month to month, and finally what % to put at risk on any particular trade.

 

Another splendid thread Jerry thanks.

Share this post


Link to post
Share on other sites

Why not? Wouldn't you want to fade it and buy the pullback as price regresses towards the mean?

 

in reply to my statement:

 

yes price will reach the 3rd SD at times. This usually occurs on a fast momentum break out. In the last week there has been a lot of this. Extremely difficult to trade, if you didn't catch the move at the start. You don't want to enter a trade when price hits the 3rd SD. A rebound could catch you off guard.

 

By entering a trade at the 3rd SD, I meant entering in the same direction as the breakout.

By fading it, you are doing a countertrend trade. This is also dangerous because you are trading against the skew. The breakout could just continue.

We will discuss countertrend trades in the next thread.

 

And yes you should wait for a pull back to the 2nd or better the 1st SD and enter in the direction of the breakout.

Share this post


Link to post
Share on other sites

Clarifying question, when calculating your:

 

VWAP

PVP

SD bands

 

Are you only going down to a 2minute chart for accuracy? I mean are you computing the variance, SD and VWAP and PVP using 2min data knowing that it is off a bit. Or are you using 2m of VWAP and SD and then using 1 tick data for volume at every price for the PVP only....Or all of them using tick data but displaying on a 2m chart?

 

This is important as I would like to code exactly what you are doing so that TS users can follow along exactly with what you are doing.

 

 

Thanks Jerry,

 

dbntina

 

The VWAP and SD are both computed using the volume of each bar and the average price of that bar (O+H+L+C)/4 as input to the computation as stated in post 14559. So depending on the time scale of the chart, the VWAP and SD will be slightly different. The differences get small as more bars are added to the charts (less than 1 tick).

For example at 11:54 EST today for NQ, VWAP computations gave the following numbers:

 

2 minute chart VWAP = 1959.88

4 minute chart VWAP = 1959.82

10 minute chart VWAP=1959.67

 

These are all within 1 tick of one another. so yo don't need to use tick data for the computation which is very CPU intensive.

Share this post


Link to post
Share on other sites

The biggest thing I have to ask though is should i start out with a really small account, play only 1 car at vwap over 4 markets or wait until i have more capital to be able to scale over a single instrument? or even wait to scale over 4 instruments?

Basically, if you were to start over trading, what would you do??

 

If you are going to use risk tolerance procedures to trade, you need a sufficiently large account so that 2% of it represents enough dollars to scale-in or reverse trades when necessary. Once you have computed your risk tolerance, you can then decide what instruments to trades based on their current SD. Personally, I wish I had known about risk tolerance years ago when I first started trading.

Share this post


Link to post
Share on other sites

curious jerry,

 

in what type of enivornment does your method work best and in which type has it not done well historically? do you prefer trend days to make a lot of money (ie yesterday on NQ) or a choppy, 'normal' market (normal meaning avg ATR type of days with 2-way action)?

Share this post


Link to post
Share on other sites

 

This seems a good point to raise a delicate question.

 

I would quite like to know roughly what percentage of trade type a)VWAP and trade type b) SD1 get stopped out. (I am guessing fairly low as we are often putting quite a large amount at risk compared to the reward). That would give a better idea of whether 2% is a reasonable amount to risk, (and to calculate your risk of ruin, a more interesting statistic I think!).

 

I appreciate it may not be valuable using this R:R value for arbitrary stops and targets however it is valuable looking at it historically to understand the performance of your system/method, the overall expectancy of your trading month to month, and finally what % to put at risk on any particular trade.

 

Another splendid thread Jerry thanks.

 

Well it's tough to answer your question Blowfish, because I haven't kept any data on every possible trade that could have been taken.

As far as getting stopped out, that is, my risk tolerance hit, it doesn't happen that often, maybe once every couple of months (turns out it happened yesterday). Usually when it does happen, it's because I did something stupid, like scaling in too early, or not having my system stop in the right place, or not seeing something that I recognized after the fact.

Generally markets rotate daily many times, so there is ample opportunity to exit a trade after scale in. On trend days, you wouldn't scale in, but I think it would be pretty obvious. Trend days usually just creep up an SD with little or no rotation.

Share this post


Link to post
Share on other sites
curious jerry,

 

in what type of enivornment does your method work best and in which type has it not done well historically? do you prefer trend days to make a lot of money (ie yesterday on NQ) or a choppy, 'normal' market (normal meaning avg ATR type of days with 2-way action)?

 

Well first, I haven't defined a method as such. I've given you a tool from which you could develop your own method. Every trader using the volume distribution function will use it differently. So far I've shown you some basic entry and exit points, which you could incorporate into a style of trading.

 

Secondly, if you call yesterday a trend day for NQ, it worked pretty well, don't you think? I wouldn't have called yesterday a trend day for NQ, because there was considerable rotation from one SD to another. A trend day from my perspective is one with little rotation, ie, market just creeps up one of the SD curves all day long.

 

There is no preference for environment type as far as using statisitical analyis like this to make a profit. What is more important is how you adjust your trading style to conform to the statistics for the day. You can make money (or lose it) on any type of day.

Share this post


Link to post
Share on other sites

Jerry,

 

Thanks for the info Jerry, right now the SD bands and VWAP are calculating correctly then based on how you do it so that's good.

 

However, I am assuming for the PVP you get that calculated on a Tick by Tick basis is that correct? Or do you also just do it on a 2 minute bar chart for example and take the price as o+h+l+c/4 and volume of that bar? It seems that it would be more of a problem estimating as far as the PVP is concerned.

 

I wrote the code for PVP on a 1 Tick chart and I am not even using arrays, just simple code keeping track of the highest volume at price traded and it is taking forever....

 

Thanks,

 

dbntina

Share this post


Link to post
Share on other sites

However, I am assuming for the PVP you get that calculated on a Tick by Tick basis is that correct? Or do you also just do it on a 2 minute bar chart for example and take the price as o+h+l+c/4 and volume of that bar?

dbntina

 

the PVP is computed by ensignsoftware. I believe it's computed on a bar by bar basis by dividing the volume for the bar equally between the fixed tick size interval for each bar. However you can ask Howard Arrington at ensign about that

Share this post


Link to post
Share on other sites
Jerry,

 

I wrote the code for PVP on a 1 Tick chart and I am not even using arrays, just simple code keeping track of the highest volume at price traded and it is taking forever....

 

Thanks,

 

dbntina

 

Don't you need to store the volume at every price level somwhere? I can't see how you can do that effectively without an array (but I can be pretty dumb sometimes). I guess you could have a variable for each price level or something?

 

I'm being dense again here do you mean its taking forever to calculate or ages to code ?

Share this post


Link to post
Share on other sites

A sequence from today. One think I am asking myself is whether to wait for a close through the vwap and then a final kiss goodbye or whether to take the trade as price pulls through.

 

Here is a sequence of DAX trades using the latter am I on the right track Jerry? a couple of inetresting areas the 'flip' (pvp and vwap) around 8.00 and then about an hours consolidation. Also 11 until curent time further consolidation with a nasty spike to our stop at PoC!

 

Despite some unpleasantness I think it looks profitable on the morning. (thats assuming I have got things correct.) I am thinking you might not take the trade right after a flip or the one after when PvP and VWAP are pretty close (not much skew).

 

Comments welcome.

Cheers.

jperltrades1.thumb.png.7aba0d1755723a10b91676466b96530a.png

jperltrades2.thumb.png.ce19aaab48008d7caeaf22119b59d8be.png

jperltrades3.thumb.png.14dbcca5540edc50b429229ac1eb2ea2.png

jperltrades.thumb.png.42fc54467fb0b725fc90042534647464.png

Share this post


Link to post
Share on other sites
A sequence from today. One think I am asking myself is whether to wait for a close through the vwap and then a final kiss goodbye or whether to take the trade as price pulls through.

 

Nice charts BlowFish.

 

On the first chart, the first blue up arrow at the VWAP is a good entry. You pull the trigger on the retrace when price is at 1 tick above the VWAP.

If you are an aggressive trader, you would have pulled the trigger 5 bars back when price crossed the VWAP, maybe exited the trade part way up and then pulled the trigger a second time on the retrace. Again this is all a matter of style.

 

3 bars after the retrace, you notice price touched the 1st SD. If you were in a trade with more than 1 contract, exit half there and hold on for the ride up to the 2nd SD with stop at break even. You would have been stopped out of course, on the second contract, but that's ok, you made your profit on the trade.

 

a couple of inetresting areas the 'flip' (pvp and vwap) around 8.00 and then about an hours consolidation.

We'll discuss what to do when the PVP abruptly changes in the next thread on counter trend trading.

 

Despite some unpleasantness I think it looks profitable on the morning. I am thinking you might not take the trade right after a flip or the one after when PvP and VWAP are pretty close (not much skew).

Again that's coming up in the next thread. When the PVP changes so the skew flips sign (in your chart from positive to negative), life gets very interesting and dangerous. The next thread and beyond will be the start of the advanced trader's threads.

 

 

Comments welcome.

Cheers.

Share this post


Link to post
Share on other sites

Blowfish,

 

Nice job...I am guessing that is not tradestation? I am wishing upon a star...he he.

 

Blowfish...correct I was iterating each bar but I realize that is going to take up more resources then just doing an array and adding the volume one time on each successive tick...oh well.

 

I can do it through an array...in fact doing it right now.

 

The problem I am going to have is getting the data from the tick to a 2minute chart using ADE. Great tool but not a lot of documentation. The syntax is not hard but understanding the logic and transferring the code to a higher timeframe is not as common apparently as people using it from a higher timeframe to plot on smaller timeframe.

 

Once I get the logic on the tick timeframe...I might need help from others on using ADE to get it to the higher tf and then altering the code on the higher tf.

 

Thanks,

 

dbntina

Share this post


Link to post
Share on other sites

Thanks for sharing Jperl!

 

Your timing is perfect after 4.5 years trying i'm more then ready to say goodbye to the classic indicators like CCI , MA, etc.

 

Im looking forward to the next threads and videos

 

Im using MultiCharts whice uses ELD's like tradestation.

I found someone who can create the pvp.

 

Is plotting on a (2 min) intraday chart enough or does the ELD for pvp needs more functionality for the upcomming lessons ? (plotting weekly ? etc.)

 

thanks!

Share this post


Link to post
Share on other sites
btw, until we figure out the PVP code -- I am using a screen like this -- call it poor man's PVP -- 2 windows side by side with font shrunk down to '5' (times new roman)

 

 

Hi Dog, can you share your eld of vwap and sd`s.. ? thanks Walter.

Share this post


Link to post
Share on other sites
Blowfish,

 

 

Once I get the logic on the tick timeframe...I might need help from others on using ADE to get it to the higher tf and then altering the code on the higher tf.

 

Thanks,

 

dbntina

 

Yeah Id be inclined just to use single time frame to start out and worry about ADE later (if at all). AS Gerry points out the approximation using 2 minute bars is adequate for him (having said that Ensign probably accumulates volume in real time).

Share this post


Link to post
Share on other sites

Blowfish,

 

The profile in your chart above looks a lot like the one I found in this TS Forum thread: https://www.tradestation.com/Discussions/Topic.aspx?Topic_ID=50398&SearchTerm=Market%20Profile&txtExactMatch=

 

Sorry, I couldn't get the hyperlink to work properly. Anyway, if so, I downloaded the ELD for 8.1 but can't get it to display on a chart. Any tips?

 

Thanks,

Karl

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

    • Thx for reminding us... I don't bang that drum often enough anymore Another part for consideration is who that money initially went to...
    • TDUP ThredUp stock, watch for a top of range breakout above 2.94 at https://stockconsultant.com/?TDUP
    • How long does it take to receive HFM's withdrawal via Skrill? less than 24H?
    • My wife Robin just wanted some groceries.   Simple enough.   She parked the car for fifteen minutes, and returned to find a huge scratch on the side.   Someone keyed her car.   To be clear, this isn’t just any car.   It’s a Cybertruck—Elon Musk's stainless-steel spaceship on wheels. She bought it back in 2021, before Musk became everyone's favorite villain or savior.   Someone saw it parked in a grocery lot and felt compelled to carve their hatred directly into the metal.   That's what happens when you stand out.   Nobody keys a beige minivan.   When you're polarizing, you're impossible to ignore. But the irony is: the more attention something has, the harder it is to find the truth about it.   What’s Elon Musk really thinking? What are his plans? What will happen with DOGE? Is he deserving of all of this adoration and hate? Hard to say.   Ideas work the same way.   Take tariffs, for example.   Tariffs have become the Cybertrucks of economic policy. People either love them or hate them. Even if they don’t understand what they are and how they work. (Most don’t.)   That’s why, in my latest podcast (link below), I wanted to explore the “in-between” truth about tariffs.   And like Cybertrucks, I guess my thoughts on tariffs are polarizing.   Greg Gutfield mentioned me on Fox News. Harvard professors hate me now. (I wonder if they also key Cybertrucks?)   But before I show you what I think about tariffs… I have to mention something.   We’re Headed to Austin, Texas This weekend, my team and I are headed to Austin. By now, you should probably know why.   Yes, SXSW is happening. But my team and I are doing something I think is even better.   We’re putting on a FREE event on “Tech’s Turning Point.”   AI, quantum, biotech, crypto, and more—it’s all on the table.   Just now, we posted a special webpage with the agenda.   Click here to check it out and add it to your calendar.   The Truth About Tariffs People love to panic about tariffs causing inflation.   They wave around the ghost of the Smoot-Hawley Tariff from the Great Depression like it’s Exhibit A proving tariffs equal economic collapse.   But let me pop this myth:   Tariffs don’t cause inflation. And no, I'm not crazy (despite what angry professors from Harvard or Stanford might tweet at me).   Here's the deal.   Inflation isn’t when just a couple of things become pricier. It’s when your entire shopping basket—eggs, shirts, Netflix subscriptions, bananas, everything—starts costing more because your money’s worth less.   Inflation means your dollars aren’t stretching as far as they used to.   Take the 1800s.   For nearly a century, 97% of America’s revenue came from tariffs. Income tax? Didn’t exist. And guess what inflation was? Basically zero. Maybe 1% a year.   The economy was booming, and tariffs funded nearly everything. So, why do people suddenly think tariffs cause inflation today?   Tariffs are taxes on imports, yes, but prices are set by supply and demand—not tariffs.   Let me give you a simple example.   Imagine fancy potato chips from Canada cost $10, and a 20% tariff pushes that to $12. Everyone panics—prices rose! Inflation!   Nope.   If I only have $100 to spend and the price of my favorite chips goes up, I either stop buying chips or I buy, say, fewer newspapers.   If everyone stops buying newspapers because they’re overspending on chips, newspapers lower their prices or go out of business.   Overall spending stays the same, and inflation doesn’t budge.   Three quick scenarios:   We buy pricier chips, but fewer other things: Inflation unchanged. Manufacturers shift to the U.S. to avoid tariffs: Inflation unchanged (and more jobs here). We stop buying fancy chips: Prices drop again. Inflation? Still unchanged. The only thing that actually causes inflation is printing money.   Between 2020 and 2022 alone, 40% of all money ever created in history appeared overnight.   That’s why inflation shot up afterward—not because of tariffs.   Back to tariffs today.   Still No Inflation Unlike the infamous Smoot-Hawley blanket tariff (imagine Oprah handing out tariffs: "You get a tariff, and you get a tariff!"), today's tariffs are strategic.   Trump slapped tariffs on chips from Taiwan because we shouldn’t rely on a single foreign supplier for vital tech components—especially if that supplier might get invaded.   Now Taiwan Semiconductor is investing $100 billion in American manufacturing.   Strategic win, no inflation.   Then there’s Canada and Mexico—our friendly neighbors with weirdly huge tariffs on things like milk and butter (299% tariff on butter—really, Canada?).   Trump’s not blanketing everything with tariffs; he’s pressuring trade partners to lower theirs.   If they do, everybody wins. If they don’t, well, then we have a strategic trade chess game—but still no inflation.   In short, tariffs are about strategy, security, and fairness—not inflation.   Yes, blanket tariffs from the Great Depression era were dumb. Obviously. Today's targeted tariffs? Smart.   Listen to the whole podcast to hear why I think this.   And by the way, if you see a Cybertruck, don’t key it. Robin doesn’t care about your politics; she just likes her weird truck.   Maybe read a good book, relax, and leave cars alone.   (And yes, nobody keys Volkswagens, even though they were basically created by Hitler. Strange world we live in.) Source: https://altucherconfidential.com/posts/the-truth-about-tariffs-busting-the-inflation-myth    Profits from free accurate cryptos signals: https://www.predictmag.com/       
    • No, not if you are comparing apples to apples. What we call “poor” is obviously a pretty high bar but if you’re talking about like a total homeless shambling skexie in like San Fran then, no. The U.S.A. in not particularly kind to you. It is not an abuse so much as it is a sad relatively minor consequence of our optimism and industriousness.   What you consider rich changes with circumstances obviously. If you are genuinely poor in the U.S.A., you experience a quirky hodgepodge of unhelpful and/or abstract extreme lavishnesses while also being alienated from your social support network. It’s about the same as being a refugee. For a fraction of the ‘kindness’ available to you in non bio-available form, you could have simply stayed closer to your people and been MUCH better off.   It’s just a quirk of how we run the place and our values; we are more worried about interfering with people’s liberty and natural inclination to do for themselves than we are about no bums left behind. It is a slightly hurtful position and we know it; we are just scared to death of socialism cancer and we’re willing to put our money where our mouth is.   So, if you’re a bum; you got 5G, the ER will spend like $1,000,000 on you over a hangnail but then kick you out as soon as you’re “stabilized”, the logistics are surpremely efficient, you have total unchecked freedom of speech, real-estate, motels, and jobs are all natural healthy markets in perfect competition, you got compulsory three ‘R’’s, your military owns the sky, sea, space, night, information-space, and has the best hairdos, you can fill out paper and get all the stuff up to and including a Ph.D. Pretty much everything a very generous, eager, flawless go-getter with five minutes to spare would think you might need.   It’s worse. Our whole society is competitive and we do NOT value or make any kumbaya exception. The last kumbaya types we had werr the Shakers and they literally went extinct. Pueblo peoples are still around but they kind of don’t count since they were here before us. So basically, if you’re poor in the U.S.A., you are automatically a loser and a deadbeat too. You will be treated as such by anybody not specifically either paid to deal with you or shysters selling bejesus, Amway, and drugs. Plus, it ain’t safe out there. Not everybody uses muhfreedoms to lift their truck, people be thugging and bums are very vulnerable here. The history of a large mobile workforce means nobody has a village to go home to. Source: https://askdaddy.quora.com/Are-the-poor-people-in-the-United-States-the-richest-poor-people-in-the-world-6   Profits from free accurate cryptos signals: https://www.predictmag.com/ 
×
×
  • Create New...

Important Information

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