Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How Can I Make a Custom Strategy Reverse at Stop Just as in an ATM Strategy
Collapse
X
-
How Can I Make a Custom Strategy Reverse at Stop Just as in an ATM Strategy
Also, once complete can such a strategy be backtested?Last edited by sampras010; 03-18-2016, 05:13 AM.Tags: None
-
Hello sampras010,
Thank you for writing in.
You can utilize the OnExecution() method: https://ninjatrader.com/support/help...nexecution.htm
Check if your stop loss has filled. If so, then you'll submit a long or short order to reverse your position.
Here is a reference sample from our support forum showing an example of how you can place orders from OnExecution() (and OnOrderUpdate()): http://ninjatrader.com/support/forum...ead.php?t=7499
Please, let us know if we may be of further assistance.Zachary G.NinjaTrader Customer Service
-
Hello sampras010,
Thank you for your response.
You would need to add the instrument to the script and then use it's BarsInProgress index in an additional overload for the Enter and Exit methods. Please refer to the information at the following link: http://ninjatrader.com/support/helpG...nstruments.htm
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,602 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment