NexusFi: Find Your Edge


Home Menu

 





Custom bar type - built based on filtered block size


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bukkan with 3 posts (6 thanks)
    2. looks_two RJay with 2 posts (2 thanks)
    3. looks_3 Seberbach with 2 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 8,006 views
    2. thumb_up 8 thanks given
    3. group 6 followers
    1. forum 12 posts
    2. attach_file 2 attachments




 
Search this Thread

Custom bar type - built based on filtered block size

  #1 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

I saw a few recent posts on the forum that made me create this thread. A lot of you place credence on the size of blocks of trades. I think a year ago or so, EOT had a tool (the name escapes me) that would let you plot three volume dataseries based on size of the blocks of trades (among other things).

Anyway, here is an idea for you Ninja types What about creating a custom bar type that is based on the 'block' size of trades? Let's say it's a tick Type, but instead of plotting every 1 tick, we only plot based on a filtered > block size threshold. If you guys believe size is important, then by only plotting price based on these, it may yield an interesting result. Note this is not the same as a Volume bar, although you could make it Volume type and still filter it.

It would be very interesting to then do a side-by-side comparison of unfiltered vs. filtered, and see if there is anything worthwhile.

Personally, I don't place a lot of importance on it, but I thought some of you may find it interesting.

Just a thought.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
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?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
  #3 (permalink)
 Seberbach 
Midland, Michigan USA
 
Experience: Advanced
Platform: TradeStation, Biocomp
Trading: TF
Posts: 21 since Aug 2010
Thanks Given: 71
Thanks Received: 22



Big Mike View Post
I saw a few recent posts on the forum that made me create this thread. A lot of you place credence on the size of blocks of trades. I think a year ago or so, EOT had a tool (the name escapes me) that would let you plot three volume dataseries based on size of the blocks of trades (among other things).

Anyway, here is an idea for you Ninja types What about creating a custom bar type that is based on the 'block' size of trades? Let's say it's a tick Type, but instead of plotting every 1 tick, we only plot based on a filtered > block size threshold. If you guys believe size is important, then by only plotting price based on these, it may yield an interesting result. Note this is not the same as a Volume bar, although you could make it Volume type and still filter it.

It would be very interesting to then do a side-by-side comparison of unfiltered vs. filtered, and see if there is anything worthwhile.

Personally, I don't place a lot of importance on it, but I thought some of you may find it interesting.

Just a thought.

Mike

Hey, Mike!

Maybe you would not place much importance on volume filtering of just block size, but there are a lot of ways to filter volume, or just trading activity besides time intervals passed, or total volume traded. Also, many traders have asked on forums of software developers for the ability to easily make custom bars, but the developers do not seem to listen.

Really all they have to do is: Either let chart writers, that's us, put our own numbers in the list called "Volume" which is then used to construct "Volume" bars, or let us use a list of numbers, (called an "indicator") in place of the volume to construct the bars. I would call these "event terminated bars". Now it is a certain amount of time passed which creates the event, or a certain volume of trades finished, or a certain range of price movement completed. Why not just let us write our own "something completed" as the "event" WHICH SETS THE LAST TICK OR MINUTE depending on data resolution, of our "bar", and prints or draws the open, high, low, and close between the events chosen by us?

Perhaps the writers of Multicharts, who are reputed to be technically proficient and responsive, let us address the "volume series vector" used to construct the volume-activity bars, or a field like it called "user defined activity", for which they already have written code for so-called "volume" bars.

Anyway, that is what I was looking for in Multicharts that led me to your forum in the first place. Synchronicity.

Reply With Quote
  #4 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75

I know guys who filter out all trade sizes below XXX lots from their charts, whatever type they are (market profile, point and figure, 15m etc...). It doesn't seem to do them any harm at least.

Reply With Quote
  #5 (permalink)
 
Ryanb's Avatar
 Ryanb 
Netherlands
 
Experience: Advanced
Platform: none
Trading: Stocks
Posts: 195 since Sep 2010
Thanks Given: 117
Thanks Received: 358

i had the same idea mike,

I`m interested in a filtered type of charting, is there a code for ninja yet?

Reply With Quote
  #6 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

heres one i created on the fly. set the FilterValue to filter the ticks in the parameter box.

how to install,

make sure NT is closed

download and copy the cs file (attached) in the Type folder (<My Documents>\NinjaTrader 7\bin\Custom\Type\)

start NT and compile any custom indicator or strategy.

restart NT.

havent tested much. so let me know if things are ok or not.

cheers

p.s. - have used the Custom 8 to create the bartype. if you have already some custom bartype which uses the same then edit the code accordingly.

Attached Thumbnails
Click image for larger version

Name:	VolumeFilter.PNG
Views:	437
Size:	36.5 KB
ID:	27671  
Attached Files
Elite Membership required to download: VolumeFilterBarType.cs
Reply With Quote
  #7 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


bukkan View Post
heres one i created on the fly. set the FilterValue to filter the ticks in the parameter box.

how to install,

make sure NT is closed

download and copy the cs file (attached) in the Type folder (<My Documents>\NinjaTrader 7\bin\Custom\Type\)

start NT and compile any custom indicator or strategy.

restart NT.

havent tested much. so let me know if things are ok or not.

cheers

p.s. - have used the Final3 to create the bartype. if you have already some custom bartype which uses the same then edit the code accordingly.

Bukkan,

There are already 2 bar types using Final3. Custom8 and Custom9 are available. I strongly urge you to change your chart type to one of them.

RJay

Reply With Quote
Thanked by:
  #8 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


RJay View Post
Bukkan,

There are already 2 bar types using Final3. Custom8 and Custom9 are available. I strongly urge you to change your file type to one of them.

RJay

ohh, was not aware. have changed to Custom8.

thanks.

Reply With Quote
  #9 (permalink)
 
devdas's Avatar
 devdas 
Al,India
 
Experience: Advanced
Platform: NinjaTrader
Broker: Z
Trading: NiftyFuture
Posts: 1,562 since Feb 2010
Thanks Given: 1,513
Thanks Received: 1,701

@ bukkan or any other bar type coder,

I had some time in mind that a custom bar type would be possible to code say with OR or AND conditions on other basic bar type. Most common i dreamed it of like

1) A new bar initiated if "specified Range completed" OR "specified time elapsed". ( e.g 7Range OR 5Min )

2) A new bar initiated only if "specified Range completed AND "specified time elapsed" ( e.g 3Range AND 2Min)


other variants like "50Ticks OR 4Range", etc etc....would be interesting.

Harvest The Moon
Nest The Market
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271



devdas View Post
@ bukkan or any other bar type coder,

I had some time in mind that a custom bar type would be possible to code say with OR or AND conditions on other basic bar type. Most common i dreamed it of like

1) A new bar initiated if "specified Range completed" OR "specified time elapsed". ( e.g 7Range OR 5Min )

2) A new bar initiated only if "specified Range completed AND "specified time elapsed" ( e.g 3Range AND 2Min)


other variants like "50Ticks OR 4Range", etc etc....would be interesting.

ya its possible. look at the BarTypes.cs file in the Type folder (<My Documents>\NinjaTrader 7\bin\Custom\Type\) and study how the bars are build etc.

Reply With Quote




Last Updated on March 10, 2014


© 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