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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
358 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
278 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
Comment