Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I sent you a pm just before the site crashed so you probably did not receive it. I was wondering how you were able to get multiple images in your Better Bar Timer indicator. Did you use a BB shortcut or is there some other way of getting them in there?
Thanks for any help.
Les
lesterb
Can you help answer these questions from other members on NexusFi?
Better Yet, here is the template for THAT particular listing, so you can repurpose if you want it to have all the links to your thread, etc... obviously you need to input your values in-between the BB tags.
HTML Code:
[COLOR="DarkRed"]Note: If you find bugs, have feature requests, or anything else, post in [URL="https://nexusfi.com/ninjatrader/56493-my-indicator-thread-just-placeholder.html#post830676"]THIS[/URL] thread.[/COLOR]
This is a [I]BETTER [/I]bar timer for NT.
This does the same thing the standard bar-timer that ships with NT does, except its better. :becky:
You can customize this one to be as subtle or obnoxious as you want it to be.
[B]FONT CONTROL:[/B] It will allow you complete control over the text. This includes font style, font weight, text size, the color, etc.
[B]FONT PLACEMENT:[/B] You can place it ANYWHERE on the screen. You can start with the origin points to include any of the 4 corners on the chart.
[B]OFFSETS:[/B] Included with that standard placement, you can offset it from the edges by n-pixels. So after you place it, you can adjust it both horizontally AND vertically.
[B]PRETEXT:[/B] I created this as I think the standard bar-timer takes up unnecessary space. I myself just like to see the clock-time, as it takes up less space. Here, you can leave it BLANK(default), or add in your own [B]CUSTOM[/B] text. So if you like the standard timer, you could input "Time remaining = " for example, and it would be like the standard one. [U]DO NOT USE[/U] [URL="https://www.tutorialspoint.com/csharp/csharp_character_escapes.htm"]escape characters[/URL], like backslashes in the pretext input field.
See image below for example of adding pretext.
[IMG]https://i.imgur.com/jqabfY1.png[/IMG]
NOTE: Installing this indicator will create a folder called "BTMM," that's where the indicator will be.
[B][COLOR="DarkRed"][SIZE="5"]---EDIT - V4 20January2020---[/SIZE][/COLOR][/B]
As per suggestion of [MENTION=107877]locky[/MENTION], and wanting to minimize space(purpose of this indie), you can now toggle on independently, and in any combination, the display of Hours, Minutes or Seconds. E.g., No need to show hours for a sub-hour chart.
[IMG]https://i.imgur.com/JCsqtuI.png[/IMG]
[B][COLOR="DarkRed"][SIZE="5"]---EDIT - V3 19January2020---[/SIZE][/COLOR][/B]
There was a bug with this indicator NOT saving the text style in templates or a workspace. This bug should be fixed now. Apologies for inconvenience. Thanks to [MENTION=2113]mrlucky1x[/MENTION] for finding this bug
[B][COLOR="darkred"][SIZE="5"]---EDIT - V2 16January2020---[/SIZE][/COLOR][/B]
Version two of this indicator will have a box around the text. By default it will be set to transparent, so you won't see it unless you change the color. Opacity setting is also there so you can make the box color more/less transparent.
[IMG]https://i.imgur.com/Fp71srl.png[/IMG]
Excellent, thanks. I posted the images on my placeholder thread and will link to them there when I get the indie cleaned up. But your code is most appreciated.
lesterb
A cool way to allow the user to not display the indicator name on-chart, or to modify it so unnecessary things don't show up.
Typically, you may see something like this when adding an indicator to chart:
However, this may be much more information than a user needs to see. This can be particularly cumbersome, as some indicators may have colors that display as long hashes, or other info. For this indicator, I think the only pertinent info a user would need to see, is the NAME of the indicator, and the userInput, Period.
So I'll modify it, so that it looks like THIS, where now you only see the NAME and PERIOD:
A further mod to this, is the option to turn this off completely(below image). The user can manually accomplish this by deleting the label, but requires additional work.
To do this, we'll add a user input to disable the label, along with a simple function, that pulls the NAME of the variable from the State.SetDefaults, and whatever else you want to add. You can see from the code below, that I also add the userInput period to the NAME, along with parenthesis for display purposes.
Add a user Input variable in the class level:
Add a function somewhere outside of the onBarUpdate() method. Note how I have put the "Name" variable and UserInput called "Period". Also I have added literals to show parenthesis for display purposes. You can modify this however you wish, to show the user what you think is pertinent. Note the on-screen bit is in the 'else if' statement.
Lastly, so that turning OFF the label can be a userinput, we have to attach the UI to the variable:
Question on Better Bar Timer. New to NT8. When the timer runs (BTW exactly what I wanted), it counts down to zero and its anywhere from 10-20 seconds before the new bar prints and the timer starts again. The timer starts again with 48-40 seconds remaining. I have tried option of bar close vs tick same result. Am I doing someything wrong?
I am looking at 1min charts for NQ or MNQ BTW, I have a lifetime license and I am total confused about this, but have whatever the $12 month some sort of feed fee.
Unfortunately... this behavior is sort of baked into the way the indie works, in the same way the standard one does
I.e., it needs a new tic to come in AFTER a bar closes... before it will start SHOWING the countdown... although it is internally always counting down. So when a bar closes, as soon as the next tic arrives, thats when you see the remaining time on that bar.
The good news, is this is ONLY and issue during slow periods, as there is usually an incoming tic during trading hours.
If you are trading the NQ, it should be a rare occurrence if trading anything other than overnight.
Also, yeah, changing OnBarClose to OnEachTic will have no impact.