Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to set new strategy in NT
Collapse
X
-
How to set new strategy in NT
I would like to close positions the output from the 3 BAR or input 4 BAR (3 after the opening position or entering the 4 )Tags: None
-
Hello kubastolarek,
Thank you for your post and welcome to the NinjaTrader forums!
You are asking to submit an exit order either 3 or 4 bars after entering a position depending on which is chosen by the user, is this correct?
Is this being coded with the NinjaScript editor?
If so:- On the User Defined Inputs page create a variable that is an int (integer) that has a default of 3
- In the Conditions and Actions page add a new condition (in another condition set that is not the condition set that creates the entry)
- On the left column choose Misc -> Bars since entry
- On the right column choose User defined inputs -> select the variable you have chosen
- Compile the scripts
Below is a link to the NinjaTrader YouTube Training video on.Automated Strategy Development Level 1 which demonstrates using the Strategy Wizard.
https://www.youtube.com/watch?v=SpwG...DD7105&index=8Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
90 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
92 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
70 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
87 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
64 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment