Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NT7 help - EndDay
Collapse
X
-
hello,
here it is a tiny typo:
in the section Operations--> automated trading:
Running a NinjaScriptStrategy from a Chart (and Running a NinjaScriptStrategy from the Strategies Tab)-->Understanding strategy properties: at the Time in force definition the same with Set order quantity.
and other question: in the performance section there are these expression: synthetic trade, and synthetic entry. what does it exactly mean?
thanks in advance.
Comment
-
marotom,
Thanks for the typo spot.
Synthetic trade means "virtual" trade. All historical trades can be seen as synthetic as they were not real trades that went to your brokerage account.
Synthetic entry is simply a virtual entry price used to match your first real-time order if that happened to be an exit. Since there was no real-time entry to match it against, you have a synthetic entry for performance purposes.Josh P.NinjaTrader Customer Service
Comment
-
Position class
Hello Josh,
I have some typo and question for Position methods and properties.
there are, that I can't exactly understand:
typos:
1.
TradeCollection Class-->The example 2 in
Print("There are " + Performance.LosingTrades.Count + " losing trades.");
foreach (Trade myTrade in Performance.LosingTrades)
the Performance.LosingTrades.Count doesen't work at me. would be maybe insteed of: Performance.AllTrades.LosingTrades.Count?
2.
TradeCollection and Performance Methods & Properties-->TradeCollection Class -->GetTrades() Method would be connect to unique GetTrades() definition.
and in the Example in GetTrades() method section:
example:
TradeCollection myTrades = Performance.AllTrades("MSFT", "myEntrySignal", 1);
maybe miss the GerTrades() method. so: Performance.AllTrades.GetTrades("MSFT", "myEntrySignal", 1);?
3.
TradesPerformance Class-->GetSharpeRatio() Method definition is same with GetTrades() Method
What does it mean? what does it exactly do the GetTrades() Method?
4.
Trade Class -->Methods and Properties-->Commission definition : An int value representing the number of trades in the collection. maybe the definition of it is other.
5.
Performance-->
AllTrades
LongTrades
RealtimeTrades
ShortTrades
in all section in the example are included: .." long trades."); (maybe, inseed of Alltrades, Longtrades, shorttrades..)
6.
Trade Class-->Example
// Get the last completed real-time trade (at index 0)
Trade lastTrade = Performance.RealtimeTrades[Performance.RealtimeTrades.Count - 1];
Is it really the last trade? not the first? because of the example contain in TradeCollection Class:
Trade firstTrade = Performance.AllTrades[Performance.AllTrades.Count - 1];
the index 0 means the last, the Count-1 means the first. is it right?
------------------------------
Questions:
1.
the properties of GetProfitLoss():
PerformanceUnit.Currency
PerformanceUnit.Percent
PerformanceUnit.Points
would be equally with Performance.RealtimeTrades relating ProfitCurrency/ProfitPercent/ProfitPoints?
3.
when will restart counting/storing of the Performance.AllTrades and the whole properties(Trade/TradesPerformance and Values Class) of the all trades? when I'll restart the NT or restart the script?
I'm sorry to be long the post. thanks for answersLast edited by marotom; 02-10-2010, 11:39 AM.
Comment
-
1. Typo. Thanks.
2. Typo. Thanks.
3. Typo. Thanks.
Should use this instead: Performance.AllTrades.TradesPerformance.GetSharpeR atio(double riskFreeReturn)
4. Thanks.
5. Thanks.
6. Count - 1 = first trade. Thanks.
1. Not necessarily. GetProfitLoss() is for unrealized PnL. Performance.____ is completed trades or realized PnL.
2. I did not quite follow what you were asking. Suggest you just print out something from each of the indexes so you can see which one relates to which trade. Then you will have a clearer picture in your mind of what to use.
3. AllTrades count does not reset. It just counts up as each new trade is placed. As you start the strategy up again, it counts the historical and real-time and then thats the number of trades.Josh P.NinjaTrader Customer Service
Comment
-
Hello Josh,
I found a tiny typo:
in Advanced Order Handling-->example
entryOrder = EnterLongLimit(1, true, 1, Low[1][0], "AAPL Order")
entryOrder = EnterLongLimit(1, true, 1, Lows[1][0], "AAPL Order")
miss an "s".
Question:
Please help me! I would like to see other information methods and properties for Market Analyzer to learn. Where can I find it? you used it in example StrategyPlot. can I use it to data scanning in an stragegy?
thanks
Comment
-
Indicators
Hello,
here are some tiny typos:
1.
Market Analyzer-->Creating Alert, Cell and Filter Conditions--->at Understanding cell conditions--> below the 5th point:
Display a lime green background with white text. insteed of white should be black.
Indicator section
2.
HorizontalGridLines-->Syntax is: DayBreakLines
3.
Plot Class-->Definition-->Objects derived from the Line class. is it really derived from Line class?
4.
PlotsConfigurable--->Syntax. it be written to syntax: LinesConfigurable
5.
Value-->Definition. Value references the first DataSeries object Values[0] in the indicator. is it required to be Values[0] or simply Value[0]?
question.
I want to try debug mode using VS pro2008. I installed the VS Pro 2008 trail version and I tried open an file to debug exactly as per your help guide.
As I set my breakpoint, the breakpoint info palette give me this error message: "The Breakpoint will not currently be hit. No symbols have been loaded for this document.' Have you met with this problem yet? do you have any idea to solve it? it works with indicators but doesen't with the strategies . Does it able to work with strategies? if it yes, how?
the picture of it:

thanks in advance!Last edited by marotom; 02-17-2010, 02:26 AM.
Comment
-
Download Replay Data - error
Hello,
I want to download Replay Market Data, using this function but give me always an error message: "You can't download replay data while you have the market replay recorder turned on. Please turn it off."
I don't connected to any data feed providers, as it can be seen on the picture, in spite of it still give me this. I reseted/repaired the database, I connected during downloading to other data feed... what can I do in this scenario?
and why don't give me the PnL and unrealized PnL and comission when I have strategy run via market replay? or is it maybe right?
thanks. Tom
Last edited by marotom; 03-11-2010, 07:38 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
626 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
567 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment