Thank you.
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
One Trade Per Day
Collapse
X
-
Hello JerryA,
Thank you for your post.
The ease of implementing will depend on your knowledge of NinjaScript. You would use Bars.FirstBarOfSession and a user defined input.
Bars.FirstBarOfSession: http://www.ninjatrader.com/support/h...ncesession.htm
Information on user defined input: http://www.ninjatrader.com/support/f...ead.php?t=5782
Please let me know if you have any questions.
-
Hi Jerry,
I would simply add a parameter of how many trades per day you want to do.
Then I would use OnPositionUpdate to increment a variable everytime my position goes from flat to something. In addition to this, OnBarUpdate I would reset that variable each time Bars.GetTimeEnd(CurrentBar).Day != Bars.GetTimeEnd(CurrentBar - 1).Day.
Needless to say that you must have CurrentBar > 0 and that you will enter a trade only if your variable is < how many trades you want to take in a day.
Cheers!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by terofs, Today, 04:18 PM
|
0 responses
5 views
0 likes
|
Last Post
by terofs
Today, 04:18 PM
|
||
Started by nandhumca, Today, 03:41 PM
|
0 responses
5 views
0 likes
|
Last Post
by nandhumca
Today, 03:41 PM
|
||
Started by The_Sec, Today, 03:37 PM
|
0 responses
3 views
0 likes
|
Last Post
by The_Sec
Today, 03:37 PM
|
||
Started by GwFutures1988, Today, 02:48 PM
|
1 response
9 views
0 likes
|
Last Post Today, 03:09 PM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
6 responses
33 views
0 likes
|
Last Post
by ScottWalsh
Today, 02:57 PM
|
Comment