TIA
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
Clearing Stops?
Collapse
X
-
Clearing Stops?
I'm experimenting with adjusting stops and targets dynamically, is there a way to clear profit targets without resetting them to a new value. Also is there a way to determine what the current stops and targets for the current position are in a script?
TIATags: None
-
Well the problem i'm encountering is that when i put on a trade i am specifying a stoploss for every trade. then at some point durring the trade i am specifying a target. it seems if the trade gets stopped out instead of hitting the target what happens is that if the next trade is in the opposite direction the profittarget from the old trade activates and the trade gets closed out immediately by the profittarget. This new trade only has had its stop loss set when the trade was put on, is there a way to clear the profittarget from the old trade with out setting a value for it?
Comment
-
darckeen,
It sounds like you are using Set() methods. Remember, to attach stops/targets to an entry with Set() methods you need to call the set methods before you make the entry. Otherwise it will only attach to subsequent orders if you call it after you already acquired a position. This is exactly what you are experiencing.Josh P.NinjaTrader Customer Service
Comment
-
Ah i see. So instead of using a SetProfitTarget() I should just place a limit order? And if so, can i attach it to my position so that if the trade gets stopped out rather then hitting the limit order the limit order will be cancelled?
Also is there a ninja script API documentation available that is oriented to programmers and would give me a better understanding of these kinda nuances. I find the F1 help to be pretty limited as far as the ninja script and strategy programming goes?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bee1943, Today, 09:55 AM
|
1 response
10 views
0 likes
|
Last Post Today, 10:14 AM | ||
Started by FAQtrader, 04-25-2024, 12:00 PM
|
7 responses
99 views
0 likes
|
Last Post Today, 10:10 AM | ||
Started by giulyko00, Yesterday, 11:49 AM
|
4 responses
28 views
0 likes
|
Last Post
by giulyko00
Today, 10:10 AM
|
||
Started by Sebastian - TwinPeaks, Yesterday, 01:31 PM
|
4 responses
25 views
0 likes
|
Last Post Today, 10:07 AM | ||
Started by NUVERSA, Today, 09:31 AM
|
1 response
11 views
0 likes
|
Last Post Today, 09:49 AM |
Comment