How can I also plot (DrawText?) along with the TextAndMarker the gains/losses for each trade ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Plot exections plus gains/losses
Collapse
X
-
Hello 2Look4me,
Thank you for writing in. You could loop through the account.Executions object.
For example:
Please let me know if this is not what you are looking for or if I may be of further assistance.Code:foreach(Execution e in Account.Executions) { DrawText(e.ExecutionId.ToString(), "Entry: " + e.Entry.ToString() + " & Exit: " + e.Exit.ToString(), CurrentBar - e.BarIndex, Low[CurrentBar - e.BarIndex] - 2 * TickSize, Color.Blue); }Michael M.NinjaTrader Quality Assurance
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
57 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
30 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
41 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment