also, how can I determine if the 10th of pip property is set or if it is a whole pip or a half pip?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Futures vs Currency Symbol
Collapse
X
-
Futures vs Currency Symbol
How can I determine if the Symbol is a futures or a currency symbol?
also, how can I determine if the 10th of pip property is set or if it is a whole pip or a half pip?Last edited by NinjaCustomer; 11-21-2014, 12:58 PM.Tags: None
-
Hello NinjaCustomer,
Thank you for your post.
The code sample below will show how check the instrument market type -
The latter part is unsupported programming but you can check the SubPipSupport by using this -Code:if(Instrument.MasterInstrument.InstrumentType == InstrumentType.Currency) { // Do something here }
Let me know if I can be of further assistance.Code:if(Cbi.SubPipSupport == SubPipSupport.TenthPip) { // Do something here }Cal H.NinjaTrader Customer Service
-
Thanks, it didn't work though.. but put me on the right track to finding the correct codeOriginally posted by NinjaTrader_Cal View PostHello NinjaCustomer,
The latter part is unsupported programming but you can check the SubPipSupport by using this -
Let me know if I can be of further assistance.Code:if(Cbi.SubPipSupport == SubPipSupport.TenthPip) { // Do something here }
Cbi.MasterInstrument.SubPipSupport is needed, otherwise it won't compile
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
249 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
161 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
165 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
250 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
203 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment