NexusFi: Find Your Edge


Home Menu

 





Block-trade visualisation in a chart


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one max-td with 4 posts (1 thanks)
    2. looks_two Zondor with 2 posts (3 thanks)
    3. looks_3 bukkan with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 9,810 views
    2. thumb_up 6 thanks given
    3. group 5 followers
    1. forum 8 posts
    2. attach_file 2 attachments




 
Search this Thread

Block-trade visualisation in a chart

  #1 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hi all,

i am watching T&S a bit these days and would like to have an indicator that shows me Blocktrades in my chart.
with this help i dont need to watch T&S permanently - that the idea.

i define a Blocktrade as a trade wich has a lot-size of X or more - in example X = 50 / X should be a choosable parameter.

this function is given in T&S - properties - Block alert trade size - but its only working in T&S list.

i want to build an indicator that does a backcolor in the chart - green for blocks on buy - red for blocks on sell .
thats for the beginning - later i will play with diff alerts like drawing-objects / sound etc - i dont know yet what will be the best - but thats not important for now.

main thing is to grab / identify those blocktrades with coding.

important is also that the backcolor stays permanetly if its done one time at this bar.


alternatively it would be possible to do a lower panel indicator - like a histogramm - that paints pos. or neg. lets say value of 1 for one blocktrade, value of 2 for the second blocktrade in the same bar etc. (thinking about minutebars)

i dont want to plot or need to know the volume of the blocks - that doesnt matter -
i just want to show blocks (backcolorversion) or count blocks (lower-panel-version)

i have no idea of coding this cause i never played with the vol + gomi-stuff.

maybe its out there yet - or you have an idea how to realize this.

BTW - the thing should work on NT 6,5 ! - so if it will be based on gomi-indies - it should use versions that are compatible to NT 6,5 !


-

max-td
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731


This can be done using the GomRecorder.

For each GomOnMarketData event, compare the volume to the block size. If the volume is greater than or equal to the block size, read the TickType to determine whether the trade is a Buy or a Sell.

For each bar, we have four possibilities:

  • NO trades above the block size
  • Trades with buyvolume only that are above the block size
  • Trades with sellvolume only that are above the block size
  • Trades with buyvolume and sellvolume above the block size.

However, several months ago I coded a Trade Size Analyzer that may give you what you want. It shows the volume traded OR orders traded in small, medium, and large lots. The size cutoffs are user adjustable.

It's part of the D ouble Z Trading Suite posted in the Elite Section.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

dont know whether i got you right or not but you can try this.


 
Code
protected override void OnMarketData(MarketDataEventArgs e)
        {
            if (e.MarketDataType == MarketDataType.Last && e.Volume >=400) //400 = 400 contracts
            {
                //do whatever you like
            }        
        }

Reply With Quote
Thanked by:
  #5 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hi bukkan,
i dont know what to do with your lines - i copied them into thisone - but NT 6,5 gave me errors.

can you insert the lines the way that they work ?

your If ( ).... instead of the High [0] < Close [0]

thanks

max-td
Attached Files
Elite Membership required to download: __AA_Bukkan_01.cs
Started this thread Reply With Quote
  #6 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

thanks to zondors input - but these ideas + indies only work on NT 7 for now.
we tried to fix it - but with no success till now.

it works not in realtime in NT 6,5 - with recorded datas yes - but not live.

more ideas are welcome

max-td
Started this thread Reply With Quote
  #7 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

here is a nt6.5 indi. see line 49-55

Attached Files
Elite Membership required to download: Maxtd.cs
Reply With Quote
Thanked by:
  #8 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

thanks bukkan, got it working

i added the code into the void OnBarUpdate() - section before - that was what made my errors.

one more idea came from LukeG - he pointed me to GomDeltaVolume - indie - that plots a histogramm with the sum of the buy/sell blocktrades (choosable blocksize)
this is also interesting

so i will see what i get out of all these - i dont know yet ...

just testing with the things now + see what gives me a benefit somehow.

playtime for slow market-times

max-td
Started this thread Reply With Quote
  #9 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

The Buy/Sell Volume G39 indicator can be set up to show buy sell volume, delta, delta momentum, etc for block trades only by adjusting two Parameters.

They are called, oddly enough:

"The largest trade size that will be counted"

and

"The smallest trade size that will be counted" (set this one to your minimum block size)



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




Last Updated on July 16, 2010


© 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