NexusFi: Find Your Edge


Home Menu

 





Distribution


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 2 posts (4 thanks)
    2. looks_two philcollins with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 rleplae with 1 posts (0 thanks)
    1. trending_up 1,612 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread

Distribution

  #1 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

I am working on a small statistical distribution indicator.

The goal is to build an indicator that calculates target zones based on statistical distribution of OHLC of x last days.
Did anybody do some analysis in this field ?

Standard deviation is a possibility and straightforward to calculate, but maybe there are other better methods ?
Any thoughts ?

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103



rleplae View Post
I am working on a small statistical distribution indicator.

The goal is to build an indicator that calculates target zones based on statistical distribution of OHLC of x last days.
Did anybody do some analysis in this field ?

Standard deviation is a possibility and straightforward to calculate, but maybe there are other better methods ?
Any thoughts ?


This is a good question. Indeed, Bollinger Bands are a remnant of the time, when indicator calculations were done by hand. Prior to the advent of PCs this was a useful simplification of the real underlying distribution of all trades.

However, in order to calculate the accurate standard deviation bands over a selected lookback period, you would need to use tick data in single-tick resolution and take into account the volume of each transaction.

A compromise between the oversimplified Bollinger Bands and the accurate standard deviation bands calculated from data in single-tick resolution is indeed a model that uses all four data points OHLC and the volume of each bar.


Approximation of the price volume distribution

The first approximation of the distribution did not take into account volume, but just used so called time price ooportunities (TPOs). A more sophisticated model introduced volume. The result are volume-weighted time price opportunities (VWTPOs). Both TPOs and VWTPOs do not use the open and the close of a bar, but only depend on high and low. A better approximation can be obtained by using all four data points.

-> The statistical mean of the underlying price volume distribution can be approximated with the volume-weighted moving average calculated from all Open, High, Low and Close.
-> The standard deviation can be best approximated by a model that uses 8 data points per bar (Open, High, Low, Close, 2 x bar center, 2 x body center).


Result

The result are standard deviation bands, which are a better representation of the underlying trade statistics than Bollinger Bands.

As you will notice below, Bollinger Bands do not widen up correctly when price breaks out and volume increases.

The indicator is available open source.



Reply With Quote
Thanked by:
  #4 (permalink)
 philcollins 
The Hague, The Netherlands
 
Experience: Beginner
Platform: IB TWS (and NinjaTrader)
Trading: Stocks/Indices
Posts: 24 since Jun 2015
Thanks Given: 86
Thanks Received: 5

@Fat Tails have you had the time to upload this indicator somewhere? I couldn't find it in the downloads section. I'm currently doing analysis using fundamental stats like this, so this indicator would be very useful to me.

Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


philcollins View Post
@Fat Tails have you had the time to upload this indicator somewhere? I couldn't find it in the downloads section. I'm currently doing analysis using fundamental stats like this, so this indicator would be very useful to me.

I will to quite a few uploads in the coming days. It is under preparation.

Reply With Quote
Thanked by:




Last Updated on December 11, 2015


© 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