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 mattbsea, Today, 05:44 PM
|
0 responses
3 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
31 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
2 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
2 responses
20 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
Comment