Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
price line line
Collapse
X
-
Hello Jason. The PriceLineWH works very well. However, since the 6E went to 5 decimal places, I just see a 1. on the line as opposed to 1.12345 - On the M6E as it's 4 decimal places, I see 1.1234 which is great. I've looked at the code and I can't for the life of me see how I can make it display 5 decimal places for the 6E. Can you help ?
-
Hello ZOTICUS,
Thank you for the post.
You likely can use FormatPriceMarker for this however you would need to add some code to the script and recompile it.
There is a sample that shows how toy use 4 decimals in the following page: https://ninjatrader.com/support/help...ub=formatprice
If you wanted to force it to have 5 you could add that code and change it to N5.
I look forward to being of further assistance.
Comment
-
Are you using NT7 or NT8 version of PriceLineWH?Originally posted by ZOTICUS View PostHello Jason. The PriceLineWH works very well. However, since the 6E went to 5 decimal places, I just see a 1. on the line as opposed to 1.12345 - On the M6E as it's 4 decimal places, I see 1.1234 which is great. I've looked at the code and I can't for the life of me see how I can make it display 5 decimal places for the 6E. Can you help ?
AFAIK, neither one of these indicators displays the price itself, they only
draw a horizontal line (or ray) at the last Close price.
I agree that FormatPrice may provide the solution here -- but, this code,
would not go into PriceLineWH itself, since that indicator only draws the
price line. FormatPrice probably needs to be added some where else.
What indicator are you using to draw/display the price on the drawn line?
Perhaps the indicator known as LabelHorzLineAlerts?
Otherwise, can you post a screenshot of what you're seeing?
You might want to review this and this, which shows a technique whereby
FormatPriceMarker can provide a universal fix for every price format for every
instrument for every indicator for every chart, esp for treasury bonds.Last edited by bltdavid; 06-05-2020, 01:19 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment