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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
Comment