Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
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)
force decimal price marker display different than ticksize
Updated September 26, 2011
force decimal price marker display different than ticksize
September 9th, 2011, 08:49 PM
france
Experience: Beginner
Platform: nt
Posts: 201 since Oct 2009
Thanks Given: 1,776
Thanks Received: 56
Good evening,
On y axis, price markers of indicators are rounded automatically to the ticksize of instrument.
I'd like to get more decimals to show than what I have now.
Can I force more decimals for display on y axis to get more accurate information ? via NinjaScript coding
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 10th, 2011, 03:34 AM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
This is possible by overriding FormatPriceMarker. Just add this to your indicator code:
Code
public override string FormatPriceMarker (double price)
{
string priceMarker = "";
..... // calculate string from price here
return priceMarker;
}
September 26th, 2011, 07:16 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
is there code to set the price marker to false?
Thank You
September 26th, 2011, 07:26 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
is there code to set the price marker to false?
Thank You
You could try something like this:
Code
public override string FormatPriceMarker(double price)
{
string nothing = "";
return nothing;
}
Or you can simply add one line in the Initialize Section of the indicator, such as
Code
PaintPriceMarkers = false;
September 26th, 2011, 07:30 PM
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
Speaking of initializing, is there a list somewhere of the common initialize statements one might use somewhere? Such as the CalculateonBarClose, overlay, MaximumBarsLookBack etc.....
September 26th, 2011, 07:31 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
I was close
PriceMarker = false;
September 26th, 2011, 07:38 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
I was close
PriceMarker = false;
Is that what you state after you have missed your plane?
September 26th, 2011, 07:56 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
lol,
Thanks FatTails
Fat Tails
Is that what you state after you have missed your plane?
Last Updated on September 26, 2011