NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 07-13-2010, 06:59 AM   #151
SLASH
Member
 
Join Date: May 2010
Posts: 72
Thanks: 20
Thanked 0 times in 0 posts
Default

ok Dean,

Help me configure this for 30 bars (30 Minutes)

int bars = Math.Min(ChartControl.LastBarPainted, ChartControl.BarsPainted);
rightScrnBnum = Math.Min(ChartControl.LastBarPainted, CurrentBar);
leftScrnBnum = Math.Min(ChartControl.FirstBarPainted, CurrentBar);

Hattori
SLASH is offline  
Reply With Quote
Old 07-14-2010, 04:25 AM   #152
DeanV
Member
 
Join Date: Sep 2008
Posts: 72
Thanks: 0
Thanked 4 times in 3 posts
Default

Hattori, Looks like your close to me. Looks like you do have the Histo plots broken into 30 bar groups. You'll have to figure it out, but here's a couple of thoughts...

You still have a "day" component to the code. You may not want that (it complicates it) for what your doing. The program is only ploting the first 1/2 hr. in green (the session it conciders) and rest in red. You may want to play with how "SesNum" is getting incremented to get it all in green (and eliminate any pre-session idea).

The POC, etc. plots were only ment to plot day session levels (see above). You seem to have a mix of day / 1/2 hr. or something going on. After the green histo, it looks correct (rest have some issues). In case of POC that plot comes from "PriceOfPOC" variable which is a copy of "sessPriceOfPOC" when the day changes (in NewSessStart function). Chase it from there to get control of it.

Hope that helps.
Last edited by DeanV; 07-14-2010 at 04:27 AM.
DeanV is offline  
Reply With Quote
Old 07-14-2010, 05:02 AM   #153
SLASH
Member
 
Join Date: May 2010
Posts: 72
Thanks: 20
Thanked 0 times in 0 posts
Default

Thanks Dean for your invaluable support,
Though I plotted histo correctly it has some post and presession issue. Now calculation part require some changes which starts from here-

int bars = Math.Min(ChartControl.LastBarPainted, ChartControl.BarsPainted);
rightScrnBnum = Math.Min(ChartControl.LastBarPainted, CurrentBar);
leftScrnBnum = Math.Min(ChartControl.FirstBarPainted, CurrentBar);

This consider day bars, can't figure out how to manipulate for 30 minutes bar.
May be someone in forum help.
Last edited by SLASH; 07-19-2010 at 07:38 AM. Reason: wrong name: apologies
SLASH is offline  
Reply With Quote
Old 08-22-2010, 06:34 AM   #154
monpere
Senior Member
 
Join Date: Dec 2007
Posts: 310
Thanks: 0
Thanked 5 times in 3 posts
Default

Quote:
Originally Posted by ninja hattori View Post
Thanks Dean for your invaluable support,
Though I plotted histo correctly it has some post and presession issue. Now calculation part require some changes which starts from here-
...
This consider day bars, can't figure out how to manipulate for 30 minutes bar.
May be someone in forum help.
I altered the dValueArea NT7 code to display intraday volume profiles and value areas. Use Parameters: OpenHour, OpenMnute, to specity the start of the day session, and SessionLengthInHours to specify the size of each Profile within the day session, i.e. OpenHour=8, OpenMinute=0, SessionLengthInHours=0.5, UseSessTemplate=Flase, will display 30 minute profiles starting from 8:00 am.
Attached Images
File Type: jpg SPY.jpg (59.4 KB, 418 views)
Attached Files
File Type: zip dValueAreaV2.zip (14.5 KB, 272 views)
Last edited by monpere; 08-22-2010 at 07:13 AM.
monpere is offline  
Reply With Quote
Old 08-26-2010, 06:23 PM   #155
rv_trader
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Volume differences

Dean can you explain the difference between VOC-Volume at Close and VTPO=Volume. Thanks
rv_trader is offline  
Reply With Quote
Old 08-27-2010, 06:02 AM   #156
DeanV
Member
 
Join Date: Sep 2008
Posts: 72
Thanks: 0
Thanked 4 times in 3 posts
Default

rv_trader...

VOC - puts all the volume from that bar at the close price tick.

VTPO - Evenly distributes that bar's volume across all the prices inclusive to that bar. All the price ticks in that bars range will get the same value, that bar's volume.

Dean.
DeanV is offline  
Reply With Quote
Old 09-14-2010, 05:57 AM   #157
barabba
Junior Member
 
Join Date: Jan 2008
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default Virgin POCs

Thank you Dean for this great indicator.

Could you please add an option to display virgin POCs and value area?
A virgin POC is a POC which has not yet been touched since its "birth", so it may extends for several days after.

Thanks.
barabba is offline  
Reply With Quote
Old 10-19-2010, 01:04 PM   #158
Allen
Member
 
Join Date: Mar 2010
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi, DeanV

I just wonder if you can modify the value area so:

1- we can have a vertical line at current value area.
2- Erase the vertical lines which are continue of last day value area.
3- Add a line for initial balance.
Something similar to attachment below.
Attached Images
File Type: png Untitled.png (140.6 KB, 247 views)
Last edited by Allen; 10-19-2010 at 10:23 PM.
Allen is offline  
Reply With Quote
Old 10-20-2010, 06:08 AM   #159
DeanV
Member
 
Join Date: Sep 2008
Posts: 72
Thanks: 0
Thanked 4 times in 3 posts
Default

Thanks for the feedback. I'm not planning on any changes till after V7 is offical. Then I'll go though the list of ideas and probably pick a few to add. The program is already a little on the heavy side.

Keep posting requests here. I'll review and see how much more busy to make the program. Things like changing how the current (evolving) VA's are shown shouldn't be too much, but others like the Virgins adds a lot more "bloating" of the code. I like both ideas though. Probably won't do the inital balance though (lots of things like IB and VWAP are really seperate functions, though sometimes used in congunction with this one).

Thanks.
Dean.
DeanV is offline  
Reply With Quote
Old 10-21-2010, 02:06 PM   #160
dowtrader
Junior Member
 
Join Date: Nov 2008
Posts: 23
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks DeanV for all your hard work on this great indicator. Forgive my ignorance but I've heard some folks talking about 'HVN' and 'LVN'???? What are they and does DeanV's dValueArea indicator display them? Is HVN the same as the POC? If not, can someone explain the difference please. Thanks.
dowtrader is offline  
Reply With Quote
Old 10-21-2010, 07:55 PM   #161
astrolobe
Senior Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
Default VAt and VAb dotted lines

Dean,
Thanks for the indicator, it is very impressive. I have been tinkering with it ( I am not an expert in VA), but I was wondering how come the dotted VAb and VAt lines on some of the days in your sample pic are outside the price action altogether, for example 3/16 and 3/17. Should they not be within the histogram?

EDIT: excuse my ignorance, but I think I have just worked out that they are VA's for the previous days. AM I correct?
Attached Images
File Type: jpeg dValueArea.jpeg (108.4 KB, 322 views)
Last edited by astrolobe; 10-21-2010 at 07:59 PM.
astrolobe is offline  
Reply With Quote
Old 10-22-2010, 03:59 AM   #162
DeanV
Member
 
Join Date: Sep 2008
Posts: 72
Thanks: 0
Thanked 4 times in 3 posts
Default

dowtrader, High or Low Value Node - Sometimes used to disribe the peaks and vally's that show up on the maps. The POC is the highest of the HVN on a given day.

astrolobe, Yes... The 3 lines (POC and dotted VA's) represent the previous days activity. The evolving display (lines or text) is what's currently happeing today and can change bar by bar.
DeanV is offline  
Reply With Quote
Old 11-09-2010, 06:42 PM   #163
turbo516
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 1
Thanked 1 time in 1 post
Default

Hi Dean,

Is it possible for you to modify the code so that the POC, VAH, and VAL are displayed for that specific day instead of the next day? Currently, today's chart shows yesterday's values and yesterday's chart shows 2 days ago value.....but I want today to only show today's developing value, yesterday to show only yesterday's value, and so on.

Also, I would like to display 30min bars on my chart (since that's the original TPO length) but the calculation will not be as accurate than using 1 min bars. Is it possible to modify so that it generate the POC, VAH, VAL using 1min data regardless of what timeframe chart you place it on?

Thanks!
turbo516 is offline  
Reply With Quote
Old 11-10-2010, 05:04 AM   #164
DeanV
Member
 
Join Date: Sep 2008
Posts: 72
Thanks: 0
Thanked 4 times in 3 posts
Default

The realtime POC kind of does what you are asking for. I will show the changes through out the day (not sure if you wanted that on previous days, or just a line for how the day ended). It wouldn't take too much coding to add the Va's along the same as existing realtime POC (make a copy and try it!). I'm not making any changes at this point, but will put it on a list of possibles.

Harry had posted this note to get more resolution (thanks Harry). (I haven't tried it, but sounds like it would work)....
"You can increase the resolution of this indicator, by adding a secondary, smaller timeframe series of the same instrument. Apply the indicator to the secondary series and display it on the main panel. Display the secondary series on the main panel as well, but with bars set to transparent."

Dean.
DeanV is offline  
Reply With Quote
Old 11-16-2010, 08:12 PM   #165
*matrix
Junior Member
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Dean,

I wrote you previously about the dissapearing of the indicator on occassion.
I still dont know why it does it, but it happens when using "Reload all historical data"
It will also happen if you open the workspace and then connect to zenfire after.
For me the workaround has been to connect to zenfire, and then open the workspace.
Did you experience this issue or has anyone?

M!
*matrix is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering Trades When Price Away from Key Areas of Support & Resistance dgregor5 Strategy Development 4 01-19-2008 02:40 PM
Shading areas of chart? higler Charting 3 05-01-2007 07:58 AM


All times are GMT -6. The time now is 09:03 PM.