Thank you.
Announcement
Collapse
No announcement yet.
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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment