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
Adding sell order 4 ticks above entry price in Ninjascript
Collapse
X
-
Adding sell order 4 ticks above entry price in Ninjascript
Hello, I apologize if this is a amateur question but I cant seem to figure out how to enter a sell order say 4 or however many ticks above my entry price. Same goes for shorts, I can enter a short trade with my script but as soon as I am in the money trading the ES it wont trigger my sell order for however many ticks I set it to. If someone can just point me in the right direction of how to either add or edit my code to where it will set a sell order for long trades or buy order for my short trades. ThanksTags: None
-
Hello Endlessweek122,
Thanks for your post and welcome to the NinjaTrader forums.
If you are the Strategy Builder, you would set your profit target and stop orders in the "Stops and Targets" page.
If you are programming directly in Ninjascript then you can use SetProfitTarget() and SetStopLoss() as these methods will be OCO tied to your entry order.
Here are links to these methods:
I would also suggest reviewing the "Managed approach" document for further guidance: https://ninjatrader.com/support/help...d_approach.htm
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM |
Comment