NexusFi: Find Your Edge


Home Menu

 





Need Indicator to display tick size & value (NT)


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bobwest with 10 posts (4 thanks)
    2. looks_two kYW42786 with 5 posts (2 thanks)
    3. looks_3 SamirOfSalem with 3 posts (6 thanks)
    4. looks_4 Azzzz with 1 posts (1 thanks)
      Best Posters
    1. looks_one SamirOfSalem with 2 thanks per post
    2. looks_two Azzzz with 1 thanks per post
    3. looks_3 bobwest with 0.4 thanks per post
    4. looks_4 kYW42786 with 0.4 thanks per post
    1. trending_up 4,940 views
    2. thumb_up 14 thanks given
    3. group 6 followers
    1. forum 20 posts
    2. attach_file 3 attachments




 
Search this Thread

Need Indicator to display tick size & value (NT)

  #11 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


kYW42786 View Post
IIs there a set of indicators for ninjatrader 8.0 to show the tick size and the tick value of the instrument?

//TickSize
https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?masterinstrument_ticksize.htm

//PointValue
https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?pointvalue.htm

//TickValue
PointValue * TickSize



.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
 
  #12 (permalink)
 kYW42786 
Thousand Oaks
 
Experience: Intermediate
Platform: TOS
Posts: 11 since Dec 2019
Thanks Given: 0
Thanks Received: 5

Thanks, but I am new to NT.

Can you give some hints on how to put them o charts. What do I click?

Started this thread Reply With Quote
  #13 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292





kYW42786 View Post
Thanks, but I am new to NT.

Can you give some hints on how to put them o charts. What do I click?

These are not indicators, they are NinjaScript keywords that you would use if you were writing an indicator, if you were a programmer. They are components of indicators; you can't use them on charts as-is.

For anyone who wants to help, what the OP needs is an indicator that will show the values, per his chart image in an earlier post. He isn't going to code it himself.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #14 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292


kYW42786 View Post
Here is a screenshot of the Micro mini /MNQ Tick size and Tick value. Of course the dta varies depending on the futures instrument. This is an indicator that displays the label on the chart rather than a plot. THX
Screen Shot 10-07-21 at 04.16 PM

To be clear, something like this is what the idea is. He just needs the labels for tick size and value, displayed in the upper right corner of the chart.

Thanks.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #15 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


bobwest View Post
To be clear, something like this is what the idea is. He just needs the labels for tick size and value, displayed in the upper right corner of the chart.

Thanks.

Bob.

1) Download the attached .cs file to: Documents -> NinjaTrader 8 -> bin -> Custom -> Indicators
2) Open the NinjaScript editor (from Control Centre: New -> NinjaScript Editor)
3) Press F5 to compile (or click the "Compile" button - it has an arrow pointing down)
4) Apply indicator to your chart like any other. Look for "_Tick Size/Value" (it should appear somewhere at the beginning of the list of available indicators.

I hope this helps.

P.S. If you're absolutely positively sure you want it in the same color as the screenshot, uncomment (i.e. remove the two // characters before) the line tf.AreaBrush = Brushes.Magenta; and compile again.


 
Code
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Gui;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Gui.SuperDom;
using NinjaTrader.Gui.Tools;
using NinjaTrader.Data;
using NinjaTrader.NinjaScript;
using NinjaTrader.Core.FloatingPoint;
using NinjaTrader.NinjaScript.DrawingTools;
#endregion

//This namespace holds Indicators in this folder and is required. Do not change it. 
namespace NinjaTrader.NinjaScript.Indicators
{
	public class fio_TickSizeAndValue : Indicator
	{
		protected override void OnStateChange()
		{
			if (State == State.SetDefaults)
			{
                Description = @"https://nexusfi.com/ninjatrader/57732-need-indicator-display-tick-size-value-ninjatrader-2.html";
				Name										= "_Tick Size/Value";
				Calculate									= Calculate.OnBarClose;
				IsOverlay									= true;
				DrawOnPricePanel							= true;
                IsAutoScale                                 = false;
				//Disable this property if your indicator requires custom values that cumulate with each new market data event. 
				//See Help Guide for additional information.
				IsSuspendedWhileInactive					= true;
			}
		}

		protected override void OnBarUpdate()
		{
			//Add your custom indicator logic here.
			if (CurrentBar == Count - 2)
			{
			    string text = "Tick Size = " + Bars.Instrument.MasterInstrument.TickSize;
			    text = text + " Tick Value = " + Bars.Instrument.MasterInstrument.PointValue * Bars.Instrument.MasterInstrument.TickSize;
                TextFixed tf = Draw.TextFixed(this, "Tick Size/Value", text, TextPosition.TopRight, ChartControl.Properties.ChartBackground, ChartControl.Properties.LabelFont, Brushes.Transparent, ChartControl.Properties.ChartText, 100);
				//tf.AreaBrush = Brushes.Magenta;				
			}
		}
	}
}

Attached Files
Elite Membership required to download: fio_TickSizeAndValue.cs
Reply With Quote
Thanked by:
  #16 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292


SamirOfSalem View Post
1) Download the attached .cs file to: Documents -> NinjaTrader 8 -> bin -> Custom -> Indicators
2) Open the NinjaScript editor (from Control Centre: New -> NinjaScript Editor)
3) Press F5 to compile (or click the "Compile" button - it has an arrow pointing down)
4) Apply indicator to your chart like any other. Look for "_Tick Size/Value" (it should appear somewhere at the beginning of the list of available indicators.

I hope this helps.

Excellent. I was hoping someone in the community would come through.

@kYW42786, the instructions given about the .cs file is the alternative way to load NT indicators. It's not quite as simple as the method of importing an NT zip file, but it actually does exactly what the other type of import does. The NT zip file includes a .cs file, which is what you need. You're just getting it by itself this way.

Let us know how this works for you.

And thanks, @SamirOfSalem.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
  #17 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


bobwest View Post
Excellent. I was hoping someone in the community would come through.

@kYW42786, the instructions given about the .cs file is the alternative way to load NT indicators. It's not quite as simple as the method of importing an NT zip file, but it actually does exactly what the other type of import does. The NT zip file includes a .cs file, which is what you need. You're just getting it by itself this way.

Let us know how this works for you.

And thanks, @SamirOfSalem.

Bob.

sorry if i complicated things. i was under the impression uploading .zip's was not allowed.

Reply With Quote
  #18 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292


SamirOfSalem View Post
sorry if i complicated things. i was under the impression uploading .zip's was not allowed.

Uploading zips is OK, just not something like a dll or an exe (or a zip that contains them.)

In fact, since @kYW42786 already has experience with loading NT zips, if you could do that it might work better. But it's really no problem either way, and since the .cs file is a type that is often used when new indicators are being shared here, it's a type that is good for someone to have the experience of loading in.

So, your choice if you want to put up a new zip, or just leave it as-is. You've already done the work that was needed.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
  #19 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


bobwest View Post
Uploading zips is OK, just not something like a dll or an exe (or a zip that contains them.)

In fact, since @kYW42786 already has experience with loading NT zips, if you could do that it might work better. But it's really no problem either way, and since the .cs file is a type that is often used when new indicators are being shared here, it's a type that is good for someone to have the experience of loading in.

So, your choice if you want to put up a new zip, or just leave it as-is. You've already done the work that was needed.

Bob.

Thanks @bobwest

@kYW42786 Here's a .zip of an updated version: now you can choose where the text strip appears, colors, opacity, font size and weight.

In the indicator pane, configuring your options and then saving the template with the name "Default" will make the indicator use the same settings every time you apply it.

Attached Files
Elite Membership required to download: fio_TickSizeAndValue.zip
Reply With Quote
Thanked by:
  #20 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,514
Thanks Received: 26,292



SamirOfSalem View Post
Thanks @bobwest

@kYW42786 Here's a .zip of an updated version: now you can choose where the text strip appears, colors, opacity, font size and weight.

In the indicator pane, configuring your options and then saving the template with the name "Default" will make the indicator use the same settings every time you apply it.

So we have a successful conclusion. Thanks.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote




Last Updated on January 17, 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