VolumeProfile start/end session - NinjaTrader Programming | futures io social day trading
futures io futures trading


VolumeProfile start/end session
Updated: Views / Replies:2,069 / 5
Created: by kashter Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

VolumeProfile start/end session

  #1 (permalink)
Elite Member
Moving
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: Mirus/Zen Fire
Favorite Futures: ES
 
Posts: 82 since May 2010
Thanks: 90 given, 44 received

VolumeProfile start/end session

Hi,
I have limited programming skills and tried in vain to alter the VolumeProfile (or even GomVolumeProfile) to initiate at start of RTH session and stop at the end of the session, eg for ES. I have played around with the ToTime function to achieve this, thinking surely it must be simple but it has alluded me. Anyone willing to help out will be much appreciated.

Cheers.

EDIT : Never mind - got it. It took me a week to figure it and only after my post did I realize what I had to do. Maybe by posting here I will be able to resolve some of my other queries!


Last edited by kashter; August 24th, 2010 at 08:22 PM. Reason: Worked it out!
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



kashter View Post
Hi,
I have limited programming skills and tried in vain to alter the VolumeProfile (or even GomVolumeProfile) to initiate at start of RTH session and stop at the end of the session, eg for ES. I have played around with the ToTime function to achieve this, thinking surely it must be simple but it has alluded me. Anyone willing to help out will be much appreciated.

Cheers.

EDIT : Never mind - got it. It took me a week to figure it and only after my post did I realize what I had to do. Maybe by posting here I will be able to resolve some of my other queries!

I assume that you use NinjaTrader 7. The only reliable method so far is Bars.FirstBarOfSession. This is a boolean, which has the value true, if the current bar is the first bar of the session, otherwise false. I think you can try to use it.

Do not use Bars.GetSessionBar() or Bars.GetSessionDate(), these methods are flawed, they sometimes work and sometimes don't.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Moving
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: Mirus/Zen Fire
Favorite Futures: ES
 
Posts: 82 since May 2010
Thanks: 90 given, 44 received


Fat Tails View Post
I assume that you use NinjaTrader 7. The only reliable method so far is Bars.FirstBarOfSession. This is a boolean, which has the value true, if the current bar is the first bar of the session, otherwise false. I think you can try to use it.

Do not use Bars.GetSessionBar() or Bars.GetSessionDate(), these methods are flawed, they sometimes work and sometimes don't.


Hi FT,
thx for the tip - was initially playing with Bars.GetSessionBar() but I think I failed more due to broken logic. I then applied simple "if (ToTime(Time[0]) > ToTime(08,30,00) ..." and works like a charm. Though very interested in learning C# code, and will experiment with Bars.FirstBarOfSession.

While I am at it, would you know how to identify and extract the longest bar in the VolumeProfile histogram. I could work the max volume (maxVolume) but not sure how to apply this to identify as to what price this refers to. Any hints. Much appreciated.

Cheers

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


kashter View Post
Hi FT,
thx for the tip - was initially playing with Bars.GetSessionBar() but I think I failed more due to broken logic. I then applied simple "if (ToTime(Time[0]) > ToTime(08,30,00) ..." and works like a charm. Though very interested in learning C# code, and will experiment with Bars.FirstBarOfSession.

While I am at it, would you know how to identify and extract the longest bar in the VolumeProfile histogram. I could work the max volume (maxVolume) but not sure how to apply this to identify as to what price this refers to. Any hints. Much appreciated.

Cheers

Also have a look at the dValueArea indicator. It plots the point of control. You could modify it for your own needs.

Links and Downloads Manager - NinjaTrader Support Forum

Value Areas - dValueArea - NinjaTrader Support Forum

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #6 (permalink)
Elite Member
Moving
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: Mirus/Zen Fire
Favorite Futures: ES
 
Posts: 82 since May 2010
Thanks: 90 given, 44 received

Repaint Peak Volume

Hi,
Its Sunday ad I have a bit of time on my sleeves, so that to progress with my Ninjascript/c# and modify GomVolumeProfile to suit my needs. I have included the time session and now want to highlight the peak volume histogram with a different color. I have managed to work out the value and bar but I am stuck with a little c# issue - how do you dynamically repaint the peak volume bar considering the peak bar changes all the time? I have the code below and does almost everything but I have no idea how to un-highlight prior peak volume bars. Any help is appreciated.
I am enjoying this C# - interesting stuff.
 
Code
if (xposMax < xpos) //we have a new peak
{
//	RemoveDrawObject("VPOC");
//	DrawRectangle("Peak", ;
					
	xposMax = Math.Max(xposMax, xpos);
	graphics.FillRectangle(neutralBrush,    new Rectangle(bounds.X, yUpper, xposMax, height));
}
I tried to play with the DrawRectangle function as its "tag" attribute would have resolved this but wasn't successful.

Cheers.

Reply With Quote

Reply



futures io > > > > > VolumeProfile start/end session

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMA with Discretionary Start Time and Start Date for MC tradernovice EasyLanguage Programming 4 July 29th, 2011 07:50 PM
Get Session Name? MXASJ NinjaTrader Programming 2 May 12th, 2011 01:28 AM
Incompatible session Big Mike Investor/RT 8 May 6th, 2011 06:00 PM
Session closed longway20 NinjaTrader 5 April 26th, 2011 08:23 AM
Session start line and tick counter hoeman NinjaTrader 2 November 18th, 2010 06:48 PM


All times are GMT -4. The time now is 05:04 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.12 seconds with 19 queries on phoenix via your IP 54.90.92.204