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, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 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
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
Comment