Does it show the same as when a sto loss using ATM strategy?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop Loss display
Collapse
X
-
Stop Loss display
When coding a stop loss in my ninjascript strategy, does the stop loss show in the market before it excutes? can other trades see my stop loss before it excutes?
Does it show the same as when a sto loss using ATM strategy?Tags: None
-
Hello, thanks for writing in. A resting stop loss is visible to the market because it's at the exchange. The SetStopLoss has an overload where you can turn it into a simulated stop:
SetStopLoss(string fromEntrySignal, CalculationMode mode, double value, bool isSimulatedStop)
This will keep the stop local to your PC and send a market order once the stop price is hit.
-
Hi Chris, thank for the reply
My stoploss is like this:
Is this visible to the market?Code:if (Position.GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0]) < -500) { ExitLong(100, "MaxLoss L", ""); }
and if yes, what do I need to add in that line of code to make simulated?
And beside being hidden from the market, is simulated stoploss different in any other way than normal stoploss?
Comment
-
Hello, thanks for the follow up. ExitLong() submits a market order so this is not going to be resting at the exchange. A normal stop loss (SetStopLoss()) rests at the exchange, so its included in the Level 2 data that others can view. Simulated stop losses are local to your PC, then when the price is reached a market order is sent out.
Comment
-
Beside resting at the exchange or not, what are other advantages of using ExitLong() or using (SetStopLoss()) ?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
52 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment