Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How indicator can determinate acc. live or demo?
Collapse
X
-
Hello Daniel11,
(edited)
You can use:
If you are wanting to check Sim101 vs a connected account.Code:if (Account.Provider == Cbi.Provider.Simulation)
You can also check the name of an account in a NinjaScript strategy with Account.Name. Compare to "Sim101", or if you are referring to demos from NinjaTrader, these have account names that start with DEMONT. Use substring or regex and you can match this.Last edited by NinjaTrader_ChelseaB; 08-23-2016, 12:23 PM.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
135 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
290 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
238 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
331 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
171 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment