Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SetTrailStop()
Collapse
X
-
SetTrailStop()
Problem: On enter trade, initial stoploss set to 12 ticks. After a certain profilt is realized I would like to trail with a tighter stoploss, say 6 ticks. Can I do this with the SetTrailStop() in OnBarUpdate? If not, how would this be done? Thank you.Tags: None
-
imported post
Ok, next question, what's the best way to calculate, say, a 10 tick profit? At this point, when a 10 tick profit is reached, I want to set the trailing stop from 12 ticks, to 6 ticks. Do I set it up using the ATM functions? or is there a simpler way to test.
Comment
-
imported post
Sorry, my mistake. I've been working on a strategy that calls a CCI indicator. My strategy was set to
CalculateOnBarClose = false;
but the indicator was still stuck in the world of
CalculateOnBarClose = true;
this is how we learn, right...?
Thanks for your quick response
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
52 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment