My strategy created Stop loss or Take profit, but when I trying to change their prices by dragging them to the another position on my chart. The problem is that they coming back when recent bar closed. Maybe there is a solution to this problem. If it is please tell me about it.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Problem with positions of Stop loss and Take profit
Collapse
X
-
Problem with positions of Stop loss and Take profit
Hello everyone,
My strategy created Stop loss or Take profit, but when I trying to change their prices by dragging them to the another position on my chart. The problem is that they coming back when recent bar closed. Maybe there is a solution to this problem. If it is please tell me about it.Tags: None
-
Hello AntonTymoshchuk,
Thanks for your post.
This would be expected behavior of a strategy that is not specifically built for moving the profit/stops. The strategy is executing according to the code which is putting the profit/stop as coded.
If you wish to directly interact with the strategies stop/profit targets then you would need to create a strategy that calls and uses an ATM template to control the exiting of a position. These type strategies will find the entry conditions specified in the code and place an order, once the order is filled the ATM takes over until either the stop or target is hit, then control returns to the strategy to find the next entry. While the ATM is running, you may adjust the stop/profit as desired.
An example strategy can be found in your NinjaTrader called SampleATMstrategy. This example is well commented/documented internally to help in understanding the special methods and properties that this type strategy uses. In addition you would need to review the helpguide section here: https://ninjatrader.com/support/help...gy_methods.htmPaul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
2 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
943 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment