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
Trailing strop on Target price
Collapse
X
-
Hello amiralimadadi,
Thanks for the post.
The error means that you are setting the stop price at the previously set price. "Order already has this stop price/limit price/quantity."
Are you evaluating the price of the stop market order before you try to set it again?
I look forward to assisting further.
-
Trailing strop on Target price
Hello
I want to trail stop price during the strategy. so i used ExitLongStopMarket function to set stop price.
It worked fine but in OnOrderUpdate(), i check Close[0] and under specific conditions, i trail the stop price. one of my conditions in "When Target Price Touched". it means when Close[0]==TargetPrice i call ExitLongStopMarket with a new price but an error rises:
'Order already has this stop price/limit price/quantity.
So what should i do when Target price touched?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by FrazMann, Today, 11:21 AM
|
0 responses
3 views
0 likes
|
Last Post
by FrazMann
Today, 11:21 AM
|
||
Started by geddyisodin, Yesterday, 05:20 AM
|
8 responses
52 views
0 likes
|
Last Post Today, 10:45 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
10 responses
38 views
0 likes
|
Last Post Today, 11:10 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
4 responses
24 views
0 likes
|
Last Post Today, 10:47 AM | ||
Started by George21, Today, 10:07 AM
|
1 response
21 views
0 likes
|
Last Post Today, 10:43 AM |
Leave a comment: