Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Range Bar volume/time in seconds
Collapse
X
-
Range Bar volume/time in seconds
I have not found an indicator using range bars incorporating volume and time in the following way: Take the total volume of the range bar and divide by time (in seconds) elapsed during the creation of that range bar plotted as a line in a separate panel. I have tried this myself but get method errors. Can anyone point me in the direction where this has been done before on this forum or something very similar? -
Hello,
Thanks for the forum post.
Unfortunately I'm not familiar with this being done before. However what I can offer is to have you post the code your getting errors on and see if I can get you headed in the right direction.
I look forward to assisting you further.BrettNinjaTrader Product Management
-
Thanks Brett, I took the AvgTimePerBar indicator in the 6.5 indicators forum and changed the following:
// AverageTime.Set(((double)((numHours*60+((Time[0].Minute)-(Time[Period].Minute)))*60+((Time[0].Second)-(Time[Period].Second))))/60/Period);
to this...
AverageTime.Set(((double)((numHours*60+((Time[0].Minute)-(Time[Period].Minute)))*60+((Time[0].Second)-(Time[Period].Second))))/VOL[0]);
the only change was to the very end where 60/Period was replaced with VOL[0]
and I get error cs0021 Cannot apply indexing with [] to an expression of type 'method group'Last edited by WES107; 05-03-2011, 04:51 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, Yesterday, 01:02 PM
|
0 responses
23 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
16 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
94 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
147 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment