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 rhyminkevin, Today, 04:58 PM
|
4 responses
52 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment