i am getting frustrated with this nonsense.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
requesting again to change default account
Collapse
X
-
requesting again to change default account
i am going to make the requst again to allow the user the ability to choose the trading account. half my trades goto the sim account becuase i forget to change the default when i setup my strategy.
i am getting frustrated with this nonsense.Tags: None
-
i run my ninja strategy thro the chart. all the parameters that i need for my strategy is customisable thro the api except the account. it is so painful that my strategies are going to paper instead of real account.
i could use a work around or something that i can hack quickly as it is affecting my bottomline.
Comment
-
then i would suggest that the ability to direct a target account for a strategy programatically or thro preferences would be a high or even highest priority feature.
remember, for all the power that NT has, it may end up with profits to the SIM trader which is of use to no one.
Comment
-
You might try something like the following...
Code:if (Account.Name != Connection.SimulationAccountName) { Alert( "SimDisplay", Priority.Low, "Warning: Strategy is being run in Simulation mode", "Alert1.wav", 1, Color.Aquamarine, Color.Black ); }
Comment
-
it works as is.
interestingly, reflection shows that the account has a get set property
Time 19:00:53:138
Thread 0x01
Traces Account
public class NinjaTrader.Cbi.Account
Properties
Id {get} e13590676f9049d9a751e52d8a21b902 public string
Name {get} {set} Sim101 public string
Simulation {get} {set} True public bool
Connection {get} {set} NinjaTrader.Cbi.Connection public NinjaTrader.Cbi.Connection
Currencies {get} NinjaTrader.Cbi.Currency[] public NinjaTrader.Cbi.Currency[]
Executions {get} NinjaTrader.Cbi.ExecutionCollection public NinjaTrader.Cbi.ExecutionCollection
LastUpdate {get} 25/02/2009 6:50:12 PM public System.DateTime
Orders {get} NinjaTrader.Cbi.OrderCollection public NinjaTrader.Cbi.OrderCollection
Positions {get} NinjaTrader.Cbi.PositionCollection public NinjaTrader.Cbi.PositionCollection
Strategies {get} NinjaTrader.Strategy.StrategyCollection public NinjaTrader.Strategy.StrategyCollection
UserData {get} {set} System.Xml.XmlDocument public System.Xml.XmlDocument
UserLink {get} {set} null public object
this [string memberName] {get} {set} [default] public [interface] object
has anyone tried to set to different account thro this. i am sure that the mods are going to say "its not supported".
Comment
-
Originally posted by junkone View Posthas anyone tried to set to different account thro this. i am sure that the mods are going to say "its not supported".
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by set2win, 08-04-2021, 09:23 AM
|
39 responses
998 views
0 likes
|
Last Post Today, 08:20 PM | ||
Started by md4866, Today, 08:15 PM
|
0 responses
1 view
0 likes
|
Last Post
by md4866
Today, 08:15 PM
|
||
Started by mjbatts91, Yesterday, 04:48 PM
|
2 responses
23 views
0 likes
|
Last Post
by mjbatts91
Today, 07:52 PM
|
||
Workspaces
by pibrew
Started by pibrew, Today, 06:10 PM
|
1 response
17 views
0 likes
|
Last Post Today, 07:31 PM | ||
Started by actualfacts.2021, 07-25-2021, 03:11 PM
|
8 responses
1,184 views
0 likes
|
Last Post
by linkcou
Today, 07:11 PM
|
Comment