SetTrailStop("myLongEntry", CalculationMode.Ticks, ticksTrailingStop, bSimStop);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SetTrailStop clarification desired
Collapse
X
-
SetTrailStop clarification desired
When using SetTrailStop in ninjascript, is it called just once after the trade is entered and the stop automatically adjusted or does it have to be called every time the price moves up/down the specified amount?
SetTrailStop("myLongEntry", CalculationMode.Ticks, ticksTrailingStop, bSimStop); -
Hello Ricktek,
Thank you for your note.
The order will get place as you enter into a position and will start working off of live data at that point.
Please note that in a backtest, we don't have the intrabar data so it will update once and accordingly with the close price of each bar. I.E. the number ticks the close is from the Entry pointCal H.NinjaTrader Customer Service
-
Originally posted by ricktek View PostWhen using SetTrailStop in ninjascript, is it called just once after the trade is entered and the stop automatically adjusted or does it have to be called every time the price moves up/down the specified amount?
SetTrailStop("myLongEntry", CalculationMode.Ticks, ticksTrailingStop, bSimStop);
That is why we tell you to reset the TrailStop when the trade goes flat. Of course, if you never changed it, the point is moot.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,290 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
7 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
24 views
0 likes
|
Last Post Today, 09:41 AM |
Comment