Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Max Volume in N Bars Not Computing
Collapse
X
-
cachevery,
The Dots are unimportant. This study was to look at relative volume. I wanted to see if there was initiating volume or ending volume at different places. So what I was interested in, was relative volume. Is this volume the highest in some period of time and if so, are we starting a new trend or ending a previous trend.
This was more interesting on time based charts. But I have since moved to priced based charts and this type of study doesn't do much good on price based charts. I tried to make some sense out of priced based charts, but not much good came of it.
taddypole...
Comment
-
Thanks Taddy.I`m looking for some relative study too.But im particularily interested in a certain volume numbewhich i want to look for.I have a handy indie written by Silvester.It`s a nice study,but not quite what i want what i`d love to have is the audible and possibly email alert for the exact number this indicator would trigger.If anyone with the coding skilss help,i`d be greatly appreciated.I`ll attach the study in the next post.
Comment
-
Here is the one.(see the attached)What it does,it triggers alert after a certanin threshold is reached for low and high volume value.For e.g.,if you set the high value of 1000 and it goes to 1002,then it triggers it anyway.What i`m looking for is if i want to set value exactly to 1000,i wouldnt want it to trigger if the value goes higher,let`s say to 1007,even 1001.I want the EXACT number for the alert.Maybe someone coudl help me with that one.Attached Files
Comment
-
cachevery,
Since you run this indicator with COBC = false you need to test on the next bar (FirstTickOfBar). If you look back at the previous bar and see it is 1000, then you sound the alert.
try the attached code... i've not tested it
taddypole...Attached Files
Comment
-
If you run on COBC = true the you will have to wait until the next bar completes until you can be sure that the last bar completed exactly at 1000. Since I don't know what bars you are running and exactly what your criteria are, its too hard to guess.
If you run on COBC = false, the code I provided will give you the quickest indication that the close of the last bar completed at exactly 1000.
This is the quickest way since the smallest time possible is the last tick of the previous bar and the first tick of the new bar. This can only happen if COBC = false.
Comment
-
What should i do with the defaullt settings then?5000 for the high value and 2500 for the low value?Basicaly i don`t need them all i need is a user selectable value that what trigger as soon as it appears no more no less.I`m testing the one you`ve provided,and like i said it triggers even if it goes above 1000 or below.Originally posted by Taddypole View PostSorry cachevery,
You are going to have to provide more detail. The code I sent will only alert if you are running the indicator using COBC = false and the volume on the previous bar was = 1000, not more, not less.
Comment
-
cachevery
I've attached a picture to show the indicator. I'm using the futures contract of April oil and running it on a 3 min chart. I set it to find a fixed value of 500 for oil volume. I included a Print statement to print the results if the condition is met. As you can see in the picture by referencing the Output window, the condition was never met, either when the indicator was loaded nor when it was run in real time during replay. Thus no print statement.
The indicator is set to run on COBC = false. As you can see, the volume was above and below 500 but never issued an alert or Print statement.
Thus it works for me and you'll need to provide more information as to what you are doing in order to provide you any help.
taddypole...
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment