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.JesseNinjaTrader Customer Service
Comment
-
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 frslvr, 04-11-2024, 07:26 AM
|
8 responses
111 views
1 like
|
Last Post Today, 10:30 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
10 responses
44 views
0 likes
|
Last Post
by stafe
Today, 10:29 AM
|
||
Started by rocketman7, Today, 09:41 AM
|
3 responses
8 views
0 likes
|
Last Post Today, 10:07 AM | ||
Started by traderqz, Today, 09:44 AM
|
2 responses
5 views
0 likes
|
Last Post Today, 10:00 AM | ||
Started by rocketman7, Today, 02:12 AM
|
7 responses
31 views
0 likes
|
Last Post Today, 09:23 AM |
Comment