thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
account live or sim
Collapse
X
-
account live or sim
Hello, i am not sure if this belongs here or in the addon section. I have a question regarding the accounts that are available similar to the drop down in chart trader and when using the account addon. Is there a way to know whether an account is a SIM account or live account. Chart trader has a sim mode color that can be changed. Is the means to know this available as a variable or function or method on the account ie this is live or sim. I have some aspects i would like to code based on whether the account is live or a sim one (knowing there can be multiple sim accounts created).
thanksTags: None
-
Hi soulfx, thanks for your question.
I'm not aware of any undocumented properties. You could look at the account name for a "Sim" prefix and that would be effective in separating simulation accounts from real accounts.
Please let me know if I can assist any further.
Chris L.NinjaTrader Customer Service
-
Following from the above i will parse the account name to check. Can you share or tell me which skin property ninja uses to set the background color of the chart trader panel for a live account vs a SIM account - where are the colors derived from. I have another panel i create which has background black ... presuming it gets this from one of the Skin XAML files and what attribute it uses for this for each. In order to stay in synch with the skins i want to get the correct colors to change the background depending on if SIM or live account (for my own separate panel) so that the colors are aligned with chart trader
thanks
EDIT - update ok i see the Simulation Color is set in trading properties in the options. Is this accessible as a property to ninjascript.
So i know what the simulation color is - can you map that to the correct attribute in the skins XAML file (whether blueprint or .......?)
thanksLast edited by soulfx; 07-08-2020, 11:21 AM.
Comment
-
To be honest that is disappointing to hear. Deferring something to being undocumented as a way to not answer a question is not good support. This is a reply in Addon development yesterday i just happened to notice that is a good example of Chelsea taking the time to resolve the question at hand. Perhaps you can assign this to him if you do not know. Because something is not in ninjatrader Help 8 - does that now mean it is undocumented. Ninja elected to provide and design skins in the way they have. There have been numerous requests for more documentation on this and even an editor to manage the properties and create new skins. I am not asking for that but merely the property of the scenario above. Please advise or pass to someone who will know this
thank you
Hello Waldo,
With your custom controls the color is whatever you choose.
Are you wanting to get a color from the skin?
System.Windows.Application.Current.TryFindResource ()
The FontButtonBrush from blueprint.xaml might be what you are after..
Comment
-
Hello soulfx, thanks for your reply.
I was able to find the simulation color by using the IntelliSense in the NinjaScript editor. The NinjaTrader.Core.Globals.TradingOptions.Simulation Color property holds the simulation color. Another technique you could use to look for colors in the blueprint.xaml is using this tool: http://www.iconico.com/colorpic/ Using that you can pull hex codes out of NinjaTrader and then search the skin files.
Please let me know if I can assist any further.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by KennyK, 05-29-2017, 02:02 AM
|
3 responses
1,278 views
0 likes
|
Last Post
by marcus2300
Today, 09:15 AM
|
||
Started by fernandobr, Today, 09:11 AM
|
0 responses
0 views
0 likes
|
Last Post
by fernandobr
Today, 09:11 AM
|
||
Started by itrader46, Today, 09:04 AM
|
1 response
3 views
0 likes
|
Last Post Today, 09:10 AM | ||
Started by timmbbo, Today, 08:59 AM
|
0 responses
2 views
0 likes
|
Last Post
by timmbbo
Today, 08:59 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
5 responses
33 views
0 likes
|
Last Post Today, 08:34 AM |
Comment