Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Compare Results vs previous day range
Collapse
X
-
Compare Results vs previous day range
I am trying to figure out how to group the results of trades based on the range or the close of the previous day. For example, what were the results of all trades where the previous day was a down day. How do I do this in ninjatrader?Tags: None
-
habibalex, interesting question - it sounds like you would need to look into grouping the AllTrades collection you get for your script then according to the price action of the prior day(s). So you would determine the date of the down day for example and then include in your new copied to collection only the trades that would fall on the next day. This would need to be done for all days evaluated of course.BertrandNinjaTrader Customer Service
-
Is there a way to add notes to the trades that appear in the trade output window? That way when i export the trades I can just do it in excel easily. If I use the all trades collection, do I just write the output to a file or something? Where would I put this code?
Comment
-
Hello habibalex,
Thanks for your post. There is no external means put user text next to an executed trade within NinjaTrader window.
If you are writing your own script you could certainly do this and write the trades information and any text you wish to a text file using the streamwriter.
Here is a link to reference sample using streamWriter: http://www.ninjatrader.com/support/f...ead.php?t=3475
Please us know if you have further questions.Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by chbruno, Today, 04:10 PM
|
0 responses
1 view
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
6 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
127 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
Comment