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,002 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

  #11 (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


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.

devdas,

A vendor did something similar with renko bars back in 6.5 where the chart updated at fixed time intervals in addition to each bar close. It was a dll so no code to share.

Your idea sound entirely doable. Just add a second criteria for new bar creation.

RJay

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Futures True Range Report
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #12 (permalink)
 Seberbach 
Midland, Michigan USA
 
Experience: Advanced
Platform: TradeStation, Biocomp
Trading: TF
Posts: 21 since Aug 2010
Thanks Given: 71
Thanks Received: 22

Personally, I would want to see a "normalized" COMPARISON by volume size.
That means "decomposing" each of the bars into partial bars which if added together would "perfectly reconstruct" the "normal" original total volume bar. This method would show the effect of large versus small size trades in each bar with zero lag time of the comparison, and without error caused by fluctuation of overall trade sizes distorting the view of the relationship of largest versus smallest trades regardless of how big or small the average trade size is.

For example, you could make one set of bars from "VolumeA completed", and another from "VolumeB completed".

To make the bars comparable (normalized) , make VolumeA + VolumeB be total "Volume" to complete the bars, but VolumeA be the smallest blocksize HALF of the total volume, and VolumeB the largest blocksize HALF. Accumulate the price "deltas" ATTRIBUTABLE to each equal "tile" of the volume in each volume bar to generate the open-to close changes, save the excursions from open-to high and open to low attributable to their own volume tile, and you will get two synchronized charts with different shapes representing the activity of the two "tiles" of volume size. Both will add up to give the total-volume bars' open-to-close price change exactly, while the tick movements belonging with their own tile of the trade sizes will be allocated to their own special bars or candlesticks. Trade both charts, and call it trade size diversification. Or just see if the differences make a useful indicator.

Since I do not use Ninja, I hope someone can try this soon and post the result. I'm curious what the result would show!

Reply With Quote
  #13 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014



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 Custom 8 to create the bartype. if you have already some custom bartype which uses the same then edit the code accordingly.


Greetings!

Hey guys,how do i upload the bar type indicator?I put it in the Type folde but it doesnt appear in the Type drop box.

Thanks a lot in advance!

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