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
SetStopLoss. X ExitlongStopMarket. (Short)
Collapse
X
-
SetStopLoss. X ExitlongStopMarket. (Short)
what is the difference between ? When should I use one or the other?Tags: None
-
Hello,
Thank you for your note.
SetStopLoss() was meant to be a shortcut to make adding a stop loss easier. This is really meant to be set once before the script starts and will be applied to all future orders.
ExitLongStopMarket() is meant to be submitted after the entry is filled (for example from OnExecutionUpdate()) and is the more direct way of placing an exit.
Below are links to examples.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by nleitman, Yesterday, 11:46 AM
|
12 responses
31 views
0 likes
|
Last Post
by nleitman
Today, 09:14 AM
|
||
Started by MSerag, Yesterday, 11:52 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 08:52 AM | ||
Started by dcriador, Yesterday, 01:43 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 08:51 AM | ||
Started by James650, Today, 08:25 AM
|
1 response
2 views
0 likes
|
Last Post Today, 08:35 AM | ||
Started by Rogers101, 05-05-2024, 11:30 AM
|
14 responses
40 views
0 likes
|
Last Post Today, 08:32 AM |
Comment