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.

wje3

Trading with Market Statistics Using Excel and EOD

Recommended Posts

Hi Everyone;

This is my first post here. I have been reading Jerry's threads on Trading with Market Statistics with great interest. I have a few questions:

I am considering using market statistics yet using it for End of Day trading. I remember reading somewhere within the discussions that Jerry felt that this methodology would work on any time frame. I would be using a 20 day time period and closing prices. The 20 day period is somewhat arbitrary yet it is one month of trading days.

My questions pertain to using Excel to generate the relevant data points.I am no expert in Excel and usually rely on my children to walk me thru the formulae, but once done it's pretty straight froward.

Will Excel give me the correct data points, especially the SD of the VWAP ? The PVP, and VWAP calculations are straight forward. But after all the lengthy discussion about variance and calculating the standard deviation of the VWAP, I want to make sure that what Excel says is the SD is valid.I would use the 20 days of VWAP to calculate the SD.

I'm not a statistician/mathematician nor an Excel expert. I'm just trying to understand any limitations of the statistical tools that Excel uses.

Thanks in advance for your help.

Bill

Share this post


Link to post
Share on other sites

Yes if the formulas are correct. Does excel have a weighted SD? You might need to do a bit of dinkering to get that.

 

I would be as concerned about PVP (and lesser extent VWAP). If you are using the closing price of the daily bar you will be lumping all the volume for the day at that one price point (the close). If you can sample data every hour (or better still every minute) to get the volume distribution at price things will be more accurate. No reason not to do the calculations once per day but I would personally be happier with a sampling rate that is higher.

Share this post


Link to post
Share on other sites

Hi BlowFish;

Thanks for your answers.

Regarding the once a day sampling rate,lumping all the volume in for the closing price-yes I am a little concerned about that as it isn't very "granular". Yet, the underlying theory is the same as with two minute bars,if I understand it correctly. With two minute bars, all the volume is attributed to the close of that interval. With daily bars, it's the same underlying concept. I could do an average price for the day which might be more reflective of the days volatility.

Actually, what I am more concerned with is the statistics of the standard deviation. Why do I need a weighted SD. If I am trying to determine the SD for the VWAP, that series of numbers(the VWAP) is already weighted. I'm just trying to determine the SD of a series of numbers. Why does the SD need to be weighted as well?

Thanks for your help.

Bill

Share this post


Link to post
Share on other sites

Hi Bill, sounds like you understand the sampling issues. If you are looking 20 days back thats only 20 samples. As you correctly observe Jerry samples every 2 minutes. He talks about what he considers enough data....from memory he likes to see at least the bands open up wider than the bars themselves. I dunno I would have thought things are only just going to be settling down after 20 bars, it's a fairly small sample.

 

I did some comparisons (a long while back) of Jerry's 2 minute sample and raw tick data (so completely accurate) usually the VWAP & SD's where negligibly different but occasionally there would be a 2 or 3 ticks difference. The PVP is a bigger issue. It is very sensitive to how you allocate the volume how you sample and accumulate the peak can completely alter the PVP. This is because it jumps around based on the highest peak. Incidentally the way Ensign (which Jerry uses) allocates volume to PVP is that it pro ratas it to every level/tick between the high and the low of the bar. Allocating all the volume to a single price will likely give quite some odd results.

 

Jerry talks about why the SD's should be weighted by volume in the threads.

Share this post


Link to post
Share on other sites

Hi BlowFish;

Thanks for the information. I agree that the 20 day sampling is inadequate. There are large vacant areas on the volume histogram. I'm going to continue looking at the feasibility of using this on a larger time frame, e.g. daily

I'll also re-read the threads on the weighted SD.

Thanks again for your help.

Bill

Share this post


Link to post
Share on other sites

Hey Bill,

 

Even if you want to look at the longer time frames if you can build what you need with more data (like hourly perhaps) you should be golden. You might want to look at Ninjatrader you can get it free and there are indicators for VWAP SD and PVP in the public domain. of course there may be other reasons that you are leaning towards excel in which case that might not make sense for you.

Share this post


Link to post
Share on other sites

Hi BlowFish;

Funny you should mention NinjaTrader. I just downloaded it last night and I'm going to start playing with the charts. 20 days of hourly data might work but I'll take a look at it over the next few days.

Thanks for the suggestion.

Bill

Share this post


Link to post
Share on other sites

Thanks BlowFish;

I have a slightly related question regarding NinjaTrader. If I want to generate MP charts(TPOs and Volume Profiles) using NinjaTrader and the FinAlg add-on, do I only pay the one time FinAlg fee (plus data fees) if I'm running it on the free NinjaTrader downloaded program?

Are there any other fees from NinjaTrader to do this?

It's not clear to me from the NinjaTrader website.

Thanks for your help.

Bill

Share this post


Link to post
Share on other sites

Hi Bill,

 

Finalg is one of payment.

 

Ninja licensing is a bit odd. It's free if you have a live account with one of there brokers (Mirus & Amp being the most common futures one). Certain things (that your probably wont need) cost extra (one off) license fees. Multibroker support springs to mind. I am not sure if there is some sort of minimum required account activity, I do not believe so. Many people just sign up for a free demo account with the aforementioned brokers when they expire they re-sign. From that point of view it is completely 'free'. I think nowadays Mirus prevent you signing from the same email address within a month.

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

    • CART Maplebear stock, watch for a top of range breakout at https://stockconsultant.com/?CART
    • MAR Marriott stock, watch for a top of range breakout at https://stockconsultant.com/?MAR
    • CLOV Clover Health stock, nice rally watch for a continuation breakout at https://stockconsultant.com/?CLOV
    • PAYO Payoneer stock, watch for a top of range breakout at https://stockconsultant.com/?PAYO
    • Date: 5th February 2025.   Stock Market Drops as US-China Trade War Escalates; Gold Hits Record High.   Futures for US and European stocks retreated, shrugging off gains in Asian markets as investors assessed the latest earnings from Wall Street tech giants and growing concerns over the US-China trade war. Gold prices soared to an all-time high, continuing a nearly 1% rally from the previous session, as escalating trade tensions drove demand for safe-haven assets. Global Stock Market Performance Euro Stoxx 50 futures declined 0.4%, while S&P 500 futures slipped 0.5%, weighed down by post-market declines in Alphabet Inc. and Advanced Micro Devices Inc. Asian stock markets advanced for a second straight session, though Chinese equities fell as the market reopened after the Lunar New Year holiday. The yen strengthened against the US dollar, while gold surged on increased risk aversion. Tech Stocks and Trade War Concerns Asian technology stocks mirrored their US counterparts’ gains, but investor sentiment toward China remained cautious. Markets reacted to Beijing’s swift but measured retaliation after the US imposed a 10% tariff on all imports from China. Compared to the aggressive tit-for-tat measures during Trump’s first term, President Xi Jinping appears to be taking a more calculated approach. US Jobs Report and Federal Reserve Rate Policy The US 10-year Treasury yield declined alongside the US dollar index, after data revealed a larger-than-expected drop in job openings for December, hitting a three-month low. The weaker US labour market data reduced fears of aggressive Federal Reserve rate hikes, pushing the US dollar lower and creating a favourable setup for Asian markets. Investors now turn to the US ISM services report for further clues on the Fed’s rate policy, with analysts expecting a slowdown in activity due to winter storms and wildfires. Trump Signals No Urgency for US-China Trade Talks President Donald Trump told reporters he’s in no rush to negotiate with Chinese President Xi Jinping, stating that he’ll engage in discussions “at the appropriate time.” Market analysts are concerned that prolonged uncertainty over trade negotiations could lead to increased stock market volatility, especially in China. Despite the delays in trade talks, Trump has shown that he is willing to negotiate, so markets will continue to watch closely. In a surprising move, the US Postal Service temporarily suspended international shipments from China and Hong Kong. While the reason remains unclear, the suspension follows Trump’s repeal of the de minimis rule, which previously allowed small Chinese shipments under $800 to enter the US duty-free. US-China trade tensions remain a major market risk and if both sides delay their tariff measures, markets will respond positively, but further escalation could trigger renewed volatility. Gold Prices Surge as Investors Seek Safe Havens Gold prices skyrocketed to a record high of $2,861 an ounce, fueled by concerns over trade disputes, geopolitical instability, and potential inflation risks. Beijing’s measured response to US tariffs was notably softer than its previous retaliatory actions, yet investors remain cautious about its long-term effects on global trade and monetary policy. Adding to market uncertainty, Trump proposed a US-led reconstruction plan for Gaza, further fueling demand for safe-haven assets like gold. The gold market is benefiting from rising geopolitical risks, including US-China trade uncertainty and tensions in the Middle East. Regardless of US dollar movements, gold demand remains strong.     US Dollar Weakens Amid Market Uncertainty The US dollar continued to weaken, extending Tuesday’s 0.7% drop following disappointing US jobs data. A weaker dollar generally boosts gold and commodity prices, making them more affordable for international buyers. Spot gold gained 0.7%, trading at $2,861.22 per ounce as of 6:29 a.m. in London. Meanwhile, silver and platinum also advanced, while palladium declined. Even before the latest US-China tariffs, the precious metals market was experiencing heightened volatility. Gold and silver prices in the US surged above international benchmarks, leading to a rush of large-scale shipments into the country ahead of potential tariffs. The uncertainty also caused a spike in lease rates for gold and silver, as traders scrambled to secure short-term loans for metals stored in London vaults. Crude oil prices slipped, as global growth concerns stemming from the trade war overshadowed the impact of new US sanctions on Iran. 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 Leveraged 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.
×
×
  • Create New...

Important Information

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