Not sure this is possible if so I have a few different ideas I would like to try. Thanks in advance for any help. Very new to the strategy building.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limiting trade execution to only first time of session, if possible?
Collapse
X
-
Limiting trade execution to only first time of session, if possible?
Is it possible to limit a trade execution to only happen the first time it appears in a session? For example If using the (current day OHL) indicator and price is below the Open and comes up and touches the open I want to sell short, however if it touches that line again later in the day I do not want the strategy to execute a trade.
Not sure this is possible if so I have a few different ideas I would like to try. Thanks in advance for any help. Very new to the strategy building.Tags: None
-
You can do this by creating a bool type variable that would be set True initially. The bool would be part of the entry conditions. When the first entry occurs you can set the bool false so that the entry conditions are no longer true and further touches/crosses would not generate an entry condition. You will want to "reset" the bool to true and you can do this when the condition of First bar of session is true.
Reference:
-
Hi James, thanks for posting. Thank you for the answer too Tasker-182
I agree with the use of bools that tasker suggested. You can make a boolean variable in the inputs and variables section, defaulted to true. Then you can use it as a flag in your entry condition and set it to false once the condition becomes true e.g.
Kind regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment