SetTrailStop(string fromEntrySignal, CalculationMode mode, double value, bool simulated)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Simulated Trail Stop Sample Code
Collapse
X
-
Simulated Trail Stop Sample Code
Would someone please post a sample of code that will Compile. Thanks.
Code:Tags: None
-
Hello mainstream,
An example of SetTrailStop with all overloads:
http://www.ninjatrader.com/support/h...ttrailstop.htmCode:SetTrailStop("entryOrderName", CalculationMode.Ticks, 10, false);Chelsea B.NinjaTrader Customer Service
-
Thanks Chelsea.
I reviewed the results using the simulated data feed and the strategy, could you provide some clarification on the following variable and how they will change the behavior of the Simulated Trail Stop -- with examples?
My thought was that at 10 tick profit the Simulated Trail Stop will follow 2 ticks behind market price, I suppose i was wrong in that assumption.HTML Code:10, false);
When you say Overloads, are you inferring Overfills? That was a question, too, I have not reached that benchmark in development to begin researching Overfills.Last edited by mainstream; 10-25-2014, 09:33 AM.
Comment
-
Hello mainstream,
Thank you for your response.
The 10 would mean the stop trails behind the market by 10 ticks. The simulated bool allows for a simulated stop loss, if true, will simulate the stop order and submit as market once triggered.
Overloads are passed to methods, in this case the SetTrailStop() method. The overloads being currency, mode, simulated, value, and fromEntrySignal.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
144 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
70 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
78 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment