I'm curious is there any feature for counting the number of trades per day besides the "Orders" or "Executions" tabs(which are not easy to read) ?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Trade Counter
Collapse
X
-
Trade Counter
Hi,
I'm curious is there any feature for counting the number of trades per day besides the "Orders" or "Executions" tabs(which are not easy to read) ?Tags: None
-
Hello itrade4food,
Welcome to the NinjaTrader forums.
Below is a link to a forum post with helpful information about getting started with NinjaScript development and c#.
Are you trying to achieve this in a NinjaScript Strategy that is placing the orders, or are you counting all orders to an Account object including manually placed orders?
Chelsea B.NinjaTrader Customer Service
-
-
Hello itrade4food,
This would use the Addon approach to detect manually placed orders.
You could have a List<order> object with orders added in the <Account>.OrderUpdate event handler method when the OrderState is Accepted or Working and removed when the order is Cancelled, Filled, or Rejected. The list Count would be the number of active orders. Or you could have an integer that is incremented and decremented.
Below is a link to an example you may find helpful that does work with orders in the Addon approach.
Chelsea B.NinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ZeroKuhl, Yesterday, 04:31 PM
|
7 responses
40 views
0 likes
|
Last Post Today, 02:07 PM | ||
Started by xepher101, Today, 12:19 PM
|
1 response
21 views
0 likes
|
Last Post Today, 01:58 PM | ||
Started by jpeep, 08-16-2020, 08:31 AM
|
16 responses
498 views
0 likes
|
Last Post Today, 01:57 PM | ||
Started by sastrades, Today, 09:59 AM
|
1 response
12 views
0 likes
|
Last Post Today, 01:56 PM | ||
Started by DawnTreader, 05-08-2024, 05:58 PM
|
14 responses
46 views
0 likes
|
Last Post
by DawnTreader
Today, 01:47 PM
|
Comment