NexusFi: Find Your Edge


Home Menu

 





My Indicator Thread- Just a placeholder


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 33 posts (33 thanks)
    2. looks_two Kharmaz with 4 posts (1 thanks)
    3. looks_3 maxuscz with 4 posts (0 thanks)
    4. looks_4 jmont1 with 3 posts (1 thanks)
      Best Posters
    1. looks_one forrestang with 1 thanks per post
    2. looks_two SDR2014BMT with 1 thanks per post
    3. looks_3 brettji with 1 thanks per post
    4. looks_4 lesterb with 0.3 thanks per post
    1. trending_up 17,633 views
    2. thumb_up 40 thanks given
    3. group 19 followers
    1. forum 61 posts
    2. attach_file 29 attachments




 
Search this Thread

My Indicator Thread- Just a placeholder

  #31 (permalink)
 
lesterb's Avatar
 lesterb 
Toronto, Ontario
 
Experience: Intermediate
Platform: NT8
Trading: ES
Posts: 70 since Mar 2012
Thanks Given: 296
Thanks Received: 92

good morning forrestang,

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

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
 
  #32 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lesterb View Post
good morning forrestang,

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

Yo,

You have to use [IMG] tags. So to add additional images, you need to host it somewhere, like imgur, and link it with the image tags.

Or you can host in your "indicator thread" beforehand, grab the link from there, and post in your indie description.

Started this thread Reply With Quote
Thanked by:
  #33 (permalink)
 
lesterb's Avatar
 lesterb 
Toronto, Ontario
 
Experience: Intermediate
Platform: NT8
Trading: ES
Posts: 70 since Mar 2012
Thanks Given: 296
Thanks Received: 92


thx forrestang

Reply With Quote
  #34 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lesterb View Post
good morning forrestang,

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

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]


 
Code
Note: If you find bugs, have feature requests, or anything else, post in  THIS thread.

This is a BETTER 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.

FONT CONTROL: It will allow you complete control over the text.  This includes font style, font weight, text size, the color, etc.

FONT PLACEMENT: 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.

OFFSETS: 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.

PRETEXT: 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 CUSTOM text.  So if you like the standard timer, you could input "Time remaining = " for example, and it would be like the standard one.  DO NOT USE  escape characters, like backslashes in the pretext input field.

See image below for example of adding pretext.


NOTE: Installing this indicator will create a folder called "BTMM," that's where the indicator will be.


---EDIT - V4 20January2020---
As per suggestion of @locky, 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.



---EDIT - V3 19January2020---
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 @mrlucky1x for finding this bug  

---EDIT - V2 16January2020---
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.

Started this thread Reply With Quote
  #35 (permalink)
 
lesterb's Avatar
 lesterb 
Toronto, Ontario
 
Experience: Intermediate
Platform: NT8
Trading: ES
Posts: 70 since Mar 2012
Thanks Given: 296
Thanks Received: 92

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

Reply With Quote
Thanked by:
  #36 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Tech Tip:

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:
 
Code
private bool displayIndicatorName 	= true;
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.
 
Code
		public override string DisplayName
		{
    			get { if  (State == State.SetDefaults) 
						return Name; 	
						else  if (displayIndicatorName)
						return Name+"("+period+")";
						else return "";  }	
		}

Lastly, so that turning OFF the label can be a userinput, we have to attach the UI to the variable:
 
Code
		[Display(ResourceType = typeof(Custom.Resource), Name="Show Label on-chart", Description="", GroupName="1) BASIC", Order=2)]
		public bool DisplayIndicatorName
		{ 
			get { return displayIndicatorName; } 
			set { displayIndicatorName = value; } 
		}

Started this thread Reply With Quote
Thanked by:
  #37 (permalink)
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5

Can someone please help me to create a strategy on Absolute Strength V2. I tried but it is not allowing me to choose Period and MA type from strategy.

Yhanks

Reply With Quote
  #38 (permalink)
 adigati 
redlands, CA
 
Experience: Intermediate
Posts: 1 since Nov 2021
Thanks Given: 1
Thanks Received: 0

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.

Thanks, Tony

Reply With Quote
  #39 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


dR5ERNCmCmUYmDcU View Post
Can someone please help me to create a strategy on Absolute Strength V2. I tried but it is not allowing me to choose Period and MA type from strategy.

Yhanks

I see the issue, there is no ninjascript property in the enum setup, but I can't seem to add it the standard way.

I will post on NT support to figure out how to fix it, standby.

Started this thread Reply With Quote
  #40 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



adigati View Post
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.

Thanks, Tony

Howdy.

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.

Started this thread Reply With Quote
Thanked by:




Last Updated on May 12, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts