Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Crazy amount of entries
Collapse
X
-
Hi TDHarris5, thanks for your reply. I have an example here that shows how to do one trade per bar in a OnEachTick strategy;
Hi, I'm currently working on a strategy that is utilizing OnTickChange data using the linked method. I am using a Tick Chart. The strategy uses onTickChange to make intrabar entry, and does so fine with the Set1 and Set2, but if/when profit target is hit, it will submit another order after the profit target if the
Kind regards,
-ChrisL
Comment
-
Hi TDHarris5, thanks for the follow up. The code/builder example can be downloaded from Post Albums on that thread. Please first download it and then go to Tools>Import to import the .zip file. After this, you can open up the example through the builder and study how it works. It works by keeping track of two variables, EntryBar and ActiveBar. EntryBar is set when the strategy enters the market, then the strategy won't enter Set 2 again while EntryBar = CurrentBar because part of the entry condition in Set 2 requires EntryBar to = -1. It will get reset in Set 1 when the ActiveBar is no longer equal to CurrentBar.
Kind regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
143 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|
Comment