NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-29-2012, 06:58 AM   #1
ckkoh_sgp
Junior Member
 
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 2 times in 2 posts
Default Detect Tenth pips programmitically

Hi,

How can I detect tenth pips configuration programmitically in my indicator?

Thanks in advance.
ckkoh_sgp is offline  
Reply With Quote
Old 06-29-2012, 07:36 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

You can do this two ways, check the number of numerals after the decimal by converting the Close[0] price to a string to count it.

You can also use this code segment however it is officially not supported as its not in our help guide.

if (SubPipSupport.TenthPip == Cbi.MasterInstrument.SubPipSupport)
{
Print("TenthPip is Selected");
}

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forex DOM tenth pip? Halfpip? jeff p SuperDOM and other Order Entry Windows 11 03-01-2011 10:22 PM
Fractional pips? Heavenforex Miscellaneous Support 1 11-28-2010 12:21 PM
Using pips with MBTrading StyckwithChrist Connecting 3 07-26-2010 03:45 AM
PnL in pips nicknamed Suggestions And Feedback 1 05-19-2009 09:48 AM
Value of pips... behealed General Programming 1 04-05-2008 01:47 AM


All times are GMT -6. The time now is 04:59 AM.